tools/nolibc/std: move the standard type definitions to std.h
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Feb 2022 16:23:15 +0000 (17:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:48:55 +0000 (11:48 +0100)
commit4fceecdeaa8a88e668243db8f2a072b65b257f4c
tree8fad6b489c14ecc3548d51374315ddd2ce16b750
parent1792136f228e45421489825ef07d212d5a60a706
tools/nolibc/std: move the standard type definitions to std.h

[ Upstream commit 967cce191f50090d5cbd3841ee2bbb7835afeae2 ]

The ordering of includes and definitions for now is a bit of a mess, as
for example asm/signal.h is included after int definitions, but plenty of
structures are defined later as they rely on other includes.

Let's move the standard type definitions to a dedicated file that is
included first. We also move NULL there. This way all other includes
are aware of it, and we can bring asm/signal.h back to the top of the
file.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Stable-dep-of: 184177c3d6e0 ("tools/nolibc: restore mips branch ordering in the _start block")
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/include/nolibc/nolibc.h
tools/include/nolibc/std.h [new file with mode: 0644]