]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
aspeed-lpc-ctrl: include linux/types.h for uapi header
authorArnd Bergmann <arnd@arndb.de>
Tue, 28 Mar 2017 14:10:32 +0000 (16:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:37:20 +0000 (17:37 +0200)
The newly added header file triggers a sanity check:

usr/include/linux/aspeed-lpc-ctrl.h:44: found __[us]{8,16,32,64} type without #include <linux/types.h>

We should include linux/types.h explicitly to ensure the header
can be included from user space.

Fixes: 6c4e97678501 ("drivers/misc: Add Aspeed LPC control driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/aspeed-lpc-ctrl.h

index f96fa995a3f0c9091d67a377555b71aefb93d352..c328c976c684cb0b5add21c26de7c96c273dc787 100644 (file)
@@ -11,6 +11,7 @@
 #define _UAPI_LINUX_ASPEED_LPC_CTRL_H
 
 #include <linux/ioctl.h>
+#include <linux/types.h>
 
 /* Window types */
 #define ASPEED_LPC_CTRL_WINDOW_FLASH   1