Commit c01013a2 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Arnd Bergmann

powerpc: add asm/stat.h to UAPI compile-test coverage

asm/stat.h is currently excluded from the UAPI compile-test for
ARCH=powerpc because of the errors like follows:

    HDRTEST usr/include/asm/stat.h
  In file included from <command-line>:32:
  ./usr/include/asm/stat.h:32:2: error: unknown type name 'ino_t'
     32 |  ino_t  st_ino;
        |  ^~~~~
  ./usr/include/asm/stat.h:35:2: error: unknown type name 'mode_t'
     35 |  mode_t  st_mode;
        |  ^~~~~~
  ./usr/include/asm/stat.h:40:2: error: unknown type name 'uid_t'
     40 |  uid_t  st_uid;
        |  ^~~~~
  ./usr/include/asm/stat.h:41:2: error: unknown type name 'gid_t'
     41 |  gid_t  st_gid;
        |  ^~~~~

The errors can be fixed by prefixing the types with __kernel_.

Then, remove the no-header-test entry from user/include/Makefile.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 8c1a381a
...@@ -29,16 +29,16 @@ struct __old_kernel_stat { ...@@ -29,16 +29,16 @@ struct __old_kernel_stat {
struct stat { struct stat {
unsigned long st_dev; unsigned long st_dev;
ino_t st_ino; __kernel_ino_t st_ino;
#ifdef __powerpc64__ #ifdef __powerpc64__
unsigned long st_nlink; unsigned long st_nlink;
mode_t st_mode; __kernel_mode_t st_mode;
#else #else
mode_t st_mode; __kernel_mode_t st_mode;
unsigned short st_nlink; unsigned short st_nlink;
#endif #endif
uid_t st_uid; __kernel_uid_t st_uid;
gid_t st_gid; __kernel_gid_t st_gid;
unsigned long st_rdev; unsigned long st_rdev;
long st_size; long st_size;
unsigned long st_blksize; unsigned long st_blksize;
......
...@@ -66,7 +66,6 @@ no-header-test += linux/if_bonding.h ...@@ -66,7 +66,6 @@ no-header-test += linux/if_bonding.h
endif endif
ifeq ($(SRCARCH),powerpc) ifeq ($(SRCARCH),powerpc)
no-header-test += asm/stat.h
no-header-test += linux/bpf_perf_event.h no-header-test += linux/bpf_perf_event.h
endif endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment