RISC-V: Request newstat syscalls
authorGuenter Roeck <linux@roeck-us.net>
Wed, 5 Sep 2018 14:36:06 +0000 (07:36 -0700)
committerArnd Bergmann <arnd@arndb.de>
Wed, 5 Sep 2018 20:44:21 +0000 (22:44 +0200)
commit67314ec7b0250290cc85eaa7a2f88a8ddb9e8547
tree3207995766ab5664c60026daae5da268806a3262
parent49c39f8464a9af702e9d45800c00a572753aeb06
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>
arch/riscv/include/asm/unistd.h