aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/unistd.h
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2022-04-05 15:12:59 +0800
committerPalmer Dabbelt <palmer@rivosinc.com>2022-04-26 13:35:45 -0700
commitf18ed30db299458f809aec55bf1800dbeebeb953 (patch)
tree0288b5a1de164a136a9219d3f2853720fa7286cf /arch/mips/include/asm/unistd.h
parentarch: Add SYSVIPC_COMPAT for all architectures (diff)
downloadlinux-dev-f18ed30db299458f809aec55bf1800dbeebeb953.tar.xz
linux-dev-f18ed30db299458f809aec55bf1800dbeebeb953.zip
fs: stat: compat: Add __ARCH_WANT_COMPAT_STAT
RISC-V doesn't neeed compat_stat, so using __ARCH_WANT_COMPAT_STAT to exclude unnecessary SYSCALL functions. Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Guo Ren <guoren@kernel.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Tested-by: Heiko Stuebner <heiko@sntech.de> Acked-by: Helge Deller <deller@gmx.de> # parisc Link: https://lore.kernel.org/r/20220405071314.3225832-6-guoren@kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/mips/include/asm/unistd.h')
-rw-r--r--arch/mips/include/asm/unistd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/unistd.h b/arch/mips/include/asm/unistd.h
index c2196b1b6604..25a5253db7f4 100644
--- a/arch/mips/include/asm/unistd.h
+++ b/arch/mips/include/asm/unistd.h
@@ -50,6 +50,8 @@
# ifdef CONFIG_32BIT
# define __ARCH_WANT_STAT64
# define __ARCH_WANT_SYS_TIME32
+# else
+# define __ARCH_WANT_COMPAT_STAT
# endif
# ifdef CONFIG_MIPS32_O32
# define __ARCH_WANT_SYS_TIME32