tools/nolibc: fix the O_* fcntl/open macro definitions for riscv
authorWilly Tarreau <w@1wt.eu>
Mon, 9 Jan 2023 07:54:42 +0000 (08:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:58:27 +0000 (11:58 +0100)
commitcd57d5e5e28e8b51fea428ebc7780aecb46abd02
tree3384cb85173b12d1e45efa9152b6f237df48eaa5
parent91fa2bd352807bc0be4ae707321c7e7e01c7f040
tools/nolibc: fix the O_* fcntl/open macro definitions for riscv

[ Upstream commit 00b18da4089330196906b9fe075c581c17eb726c ]

When RISCV port was imported in 5.2, the O_* macros were taken with
their octal value and written as-is in hex, resulting in the getdents64()
to fail in nolibc-test.

Fixes: 582e84f7b779 ("tool headers nolibc: add RISCV support") #5.2
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/include/nolibc/arch-riscv.h