Skip to content

Commit 8b4bca2

Browse files
masahir0yarndb
authored andcommitted
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>
1 parent cbf2820 commit 8b4bca2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

include/uapi/linux/kexec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
*/
5555
struct kexec_segment {
5656
const void *buf;
57-
size_t bufsz;
57+
__kernel_size_t bufsz;
5858
const void *mem;
59-
size_t memsz;
59+
__kernel_size_t memsz;
6060
};
6161

6262
#endif /* __KERNEL__ */

usr/include/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ no-header-test += linux/cyclades.h
2828
no-header-test += linux/errqueue.h
2929
no-header-test += linux/hdlc/ioctl.h
3030
no-header-test += linux/ivtv.h
31-
no-header-test += linux/kexec.h
3231
no-header-test += linux/matroxfb.h
3332
no-header-test += linux/omap3isp.h
3433
no-header-test += linux/omapfb.h

0 commit comments

Comments
 (0)