]> git.baikalelectronics.ru Git - kernel.git/commit
tools/nolibc/types: move makedev to types.h and make it a macro
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Feb 2022 16:23:25 +0000 (17:23 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 21 Apr 2022 00:05:43 +0000 (17:05 -0700)
commitd468109f737f8caabf6cb9b6a9e84ed6ad0b44ba
tree91a2ca56b83b772b0ef6af563ea25b1fbdffa49b
parent8a078ee7f544e143b65e642f381156b45a3265be
tools/nolibc/types: move makedev to types.h and make it a macro

The makedev() man page says it's supposed to be a macro and that some
OSes have it with the other ones in sys/types.h so it now makes sense
to move it to types.h as a macro. Let's also define major() and
minor() that perform the reverse operation.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/nolibc.h
tools/include/nolibc/types.h