]> Git Repo - linux.git/commitdiff
RISC-V: Request newstat syscalls
authorGuenter Roeck <[email protected]>
Wed, 5 Sep 2018 14:36:06 +0000 (07:36 -0700)
committerArnd Bergmann <[email protected]>
Wed, 5 Sep 2018 20:44:21 +0000 (22:44 +0200)
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 <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
arch/riscv/include/asm/unistd.h

index 0caea01d5ccabf58de5e7199c77ae38d650f13c0..eff7aa9aa1637851aadd871807644560bef5c412 100644 (file)
@@ -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>
This page took 0.059248 seconds and 4 git commands to generate.