summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/unistd.h
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2018-09-05 17:36:06 +0300
committerArnd Bergmann <arnd@arndb.de>2018-09-05 23:44:21 +0300
commit67314ec7b0250290cc85eaa7a2f88a8ddb9e8547 (patch)
tree3207995766ab5664c60026daae5da268806a3262 /arch/riscv/include/asm/unistd.h
parent49c39f8464a9af702e9d45800c00a572753aeb06 (diff)
downloadlinux-67314ec7b0250290cc85eaa7a2f88a8ddb9e8547.tar.xz
RISC-V: Request newstat syscalls
Since commit 82b355d161c9 ("y2038: Remove newstat family from default syscall set"), riscv images fail to boot with the following error. /sbin/init: error while loading shared libraries: libc.so.6: cannot stat shared object: Error 38 Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 Explicitly request newstat syscalls to fix the problem. Fixes: 82b355d161c9 ("y2038: Remove newstat family from default syscall set") Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/riscv/include/asm/unistd.h')
-rw-r--r--arch/riscv/include/asm/unistd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/unistd.h b/arch/riscv/include/asm/unistd.h
index 0caea01d5cca..eff7aa9aa163 100644
--- a/arch/riscv/include/asm/unistd.h
+++ b/arch/riscv/include/asm/unistd.h
@@ -16,6 +16,7 @@
* be included multiple times. See uapi/asm/syscalls.h for more info.
*/
+#define __ARCH_WANT_NEW_STAT
#define __ARCH_WANT_SYS_CLONE
#include <uapi/asm/unistd.h>
#include <uapi/asm/syscalls.h>