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

kexec.h: add linux/kexec.h to UAPI compile-test coverage

linux/kexec.h is currently excluded from the UAPI compile-test because
of the errors like follows:

HDRTEST usr/include/linux/kexec.h
In file included from <command-line>:
./usr/include/linux/kexec.h:56:9: error: unknown type name ‘size_t’
56 | size_t bufsz;
| ^~~~~~
./usr/include/linux/kexec.h:58:9: error: unknown type name ‘size_t’
58 | size_t memsz;
| ^~~~~~

The errors can be fixed by replacing size_t with __kernel_size_t.

Then, remove the no-header-test entry from user/include/Makefile.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Masahiro Yamada and committed by
Arnd Bergmann
8b4bca21 cbf28203

+2 -3
+2 -2
include/uapi/linux/kexec.h
··· 54 54 */ 55 55 struct kexec_segment { 56 56 const void *buf; 57 - size_t bufsz; 57 + __kernel_size_t bufsz; 58 58 const void *mem; 59 - size_t memsz; 59 + __kernel_size_t memsz; 60 60 }; 61 61 62 62 #endif /* __KERNEL__ */
-1
usr/include/Makefile
··· 28 28 no-header-test += linux/errqueue.h 29 29 no-header-test += linux/hdlc/ioctl.h 30 30 no-header-test += linux/ivtv.h 31 - no-header-test += linux/kexec.h 32 31 no-header-test += linux/matroxfb.h 33 32 no-header-test += linux/omap3isp.h 34 33 no-header-test += linux/omapfb.h