Skip to content

Commit cbf2820

Browse files
masahir0yarndb
authored andcommitted
fsmap.h: add linux/fsmap.h to UAPI compile-test coverage
linux/fsmap.h is currently excluded from the UAPI compile-test because of the error like follows: HDRTEST usr/include/linux/fsmap.h In file included from <command-line>: ./usr/include/linux/fsmap.h:72:19: error: unknown type name ‘size_t’ 72 | static __inline__ size_t | ^~~~~~ The error 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 169adc2 commit cbf2820

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/uapi/linux/fsmap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ struct fsmap_head {
6969
};
7070

7171
/* Size of an fsmap_head with room for nr records. */
72-
static inline size_t
72+
static inline __kernel_size_t
7373
fsmap_sizeof(
7474
unsigned int nr)
7575
{

usr/include/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ no-header-test += linux/am437x-vpfe.h
2626
no-header-test += linux/coda.h
2727
no-header-test += linux/cyclades.h
2828
no-header-test += linux/errqueue.h
29-
no-header-test += linux/fsmap.h
3029
no-header-test += linux/hdlc/ioctl.h
3130
no-header-test += linux/ivtv.h
3231
no-header-test += linux/kexec.h

0 commit comments

Comments
 (0)