Skip to content

Commit c01013a

Browse files
masahir0yarndb
authored andcommitted
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: Masahiro Yamada <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent 8c1a381 commit c01013a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

arch/powerpc/include/uapi/asm/stat.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ struct __old_kernel_stat {
2929

3030
struct stat {
3131
unsigned long st_dev;
32-
ino_t st_ino;
32+
__kernel_ino_t st_ino;
3333
#ifdef __powerpc64__
3434
unsigned long st_nlink;
35-
mode_t st_mode;
35+
__kernel_mode_t st_mode;
3636
#else
37-
mode_t st_mode;
37+
__kernel_mode_t st_mode;
3838
unsigned short st_nlink;
3939
#endif
40-
uid_t st_uid;
41-
gid_t st_gid;
40+
__kernel_uid_t st_uid;
41+
__kernel_gid_t st_gid;
4242
unsigned long st_rdev;
4343
long st_size;
4444
unsigned long st_blksize;

usr/include/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ no-header-test += linux/if_bonding.h
6666
endif
6767

6868
ifeq ($(SRCARCH),powerpc)
69-
no-header-test += asm/stat.h
7069
no-header-test += linux/bpf_perf_event.h
7170
endif
7271

0 commit comments

Comments
 (0)