Commit 31a088b664d6 ("sparc: add asm/stat.h to UAPI compile-test coverage") converted as follows: uid_t --> __kernel_uid_t gid_t --> __kernel_gid_t It changed the field widths of struct stat because Sparc uses 16-bits for ___kernel_{uid,gid}_t as in arch/sparc/include/uapi/asm/posix_types.h. The safe replacements across all architectures are: uid_t --> __kernel_uid32_t gid_t --> __kernel_gid32_t as defined in include/linux/types.h. A similar issue was reported for the android binder. [1] [1]: https://lore.kernel.org/all/20220601010017.2639048-1-cmllamas@google.com/
Unified · Split
| @@ -11,8 +11,8 @@ struct stat { · 10 unmodified lines | |||
| 11 | __kernel_ino_t st_ino; | 11 | __kernel_ino_t st_ino; |
| 12 | __kernel_mode_t st_mode; | 12 | __kernel_mode_t st_mode; |
| 13 | short st_nlink; | 13 | short st_nlink; |
| 14 | __kernel_uid_t st_uid; | 14 | __kernel_uid32_t st_uid; |
| 15 | __kernel_gid_t st_gid; | 15 | __kernel_gid32_t st_gid; |
| 16 | unsigned int st_rdev; | 16 | unsigned int st_rdev; |
| 17 | long st_size; | 17 | long st_size; |
| 18 | long st_atime; | 18 | long st_atime; |