Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

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>

authored by

Arnd Bergmann and committed by
Greg Kroah-Hartman
f580ff0e 8ff0c566

+1
+1
include/uapi/linux/aspeed-lpc-ctrl.h
··· 11 11 #define _UAPI_LINUX_ASPEED_LPC_CTRL_H 12 12 13 13 #include <linux/ioctl.h> 14 + #include <linux/types.h> 14 15 15 16 /* Window types */ 16 17 #define ASPEED_LPC_CTRL_WINDOW_FLASH 1