Skip to content

Commit

Permalink
fsmap.h: add linux/fsmap.h to UAPI compile-test coverage
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
  • Loading branch information
masahir0y authored and arndb committed Feb 17, 2022
1 parent 169adc2 commit cbf2820
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion include/uapi/linux/fsmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct fsmap_head {
};

/* Size of an fsmap_head with room for nr records. */
static inline size_t
static inline __kernel_size_t
fsmap_sizeof(
unsigned int nr)
{
Expand Down
1 change: 0 additions & 1 deletion usr/include/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ no-header-test += linux/am437x-vpfe.h
no-header-test += linux/coda.h
no-header-test += linux/cyclades.h
no-header-test += linux/errqueue.h
no-header-test += linux/fsmap.h
no-header-test += linux/hdlc/ioctl.h
no-header-test += linux/ivtv.h
no-header-test += linux/kexec.h
Expand Down

0 comments on commit cbf2820

Please sign in to comment.