diff options
author | Masahiro Yamada <[email protected]> | 2022-06-02 03:19:41 +0900 |
---|---|---|
committer | Arnd Bergmann <[email protected]> | 2022-06-02 17:38:15 +0200 |
commit | 3cbcff691173adf13c40ead37f2f628e2db52909 (patch) | |
tree | 6ff699ef0debd2880c443aa4c70dfc313e8476c1 /tools/perf/scripts/python/check-perf-trace.py | |
parent | d39e06154024b08a856767a70b7f8215e0af6ace (diff) |
sparc: fix mis-use of __kernel_{uid,gid}_t in uapi/asm/stat.h
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/[email protected]/
Fixes: 31a088b664d6 ("sparc: add asm/stat.h to UAPI compile-test coverage")
Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions