aspeed-lpc-ctrl: include linux/types.h for uapi header
PATCH 1/1 aspeed-lpc-ctrl: include linux/types.h for uapi header
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.
--- include/uapi/linux/aspeed-lpc-ctrl.h | 1 + 1 file changed, 1 insertion(+)
include/uapi/linux/aspeed-lpc-ctrl.h +1 -0
@@ -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
Signature · 1 line
2.9.0
Quoted 3 lines · Arnd Bergmann
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>
Thanks Arnd.
What tool are you running to do this check?
Quoted 5 lines
We should include
linux/types.hexplicitly to ensure the header can be included from user space.Fixes 6c4e97678501 ("drivers/misc: Add Aspeed LPC control driver")Signed-off-by Arnd Bergmann <[email protected]>
Cheers,
Joel
Quoted 19 lines
--- include/uapi/linux/aspeed-lpc-ctrl.h | 1 + 1 file changed, 1 insertion(+)include/uapi/linux/aspeed-lpc-ctrl.h +1
-1@@ -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 --2.9.0
Quoted 8 lines · Joel Stanley
Quoted 3 lines · Arnd Bergmann
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>Thanks Arnd.
What tool are you running to do this check?
I was running 'make randconfig' builds.
The warning came from scripts/headers_check.pl.
Arnd