]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mips: use __kernel_{uid,gid}32_t in uapi/asm/stat.h
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 1 Jun 2022 18:19:39 +0000 (03:19 +0900)
committerArnd Bergmann <arnd@arndb.de>
Thu, 2 Jun 2022 15:38:15 +0000 (17:38 +0200)
commit6cd6356206605f283f82210918049465d0a08670
treebb7a4ac13d8dcec6fba47f6c3a1f7047308ed681
parentb2441b3bdce6c02cb96278d98c620d7ba1d41b7b
mips: use __kernel_{uid,gid}32_t in uapi/asm/stat.h

Commit 8c1a381a4fbb ("mips: add asm/stat.h to UAPI compile-test
coverage") converted as follows:

  uid_t  -->  __kernel_uid_t
  gid_t  -->  __kernel_gid_t

The bit width of __kernel_{uid,gid}_t is 16 or 32-bits depending on
architectures.

MIPS uses 32-bits for them as in include/uapi/asm-generic/posix_types.h,
so the previous conversion is probably fine, but let's stick to the
arch-independent conversion just in case.

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/

Fixes: 8c1a381a4fbb ("mips: add asm/stat.h to UAPI compile-test coverage")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/mips/include/uapi/asm/stat.h