]> git.baikalelectronics.ru Git - kernel.git/commit
nolibc: fix fd_set type
authorSven Schnelle <svens@linux.ibm.com>
Mon, 9 Jan 2023 07:54:37 +0000 (08:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:30 +0000 (08:34 +0100)
commit78c80fd2c397ec9ba7c5139df6d7a34058f09890
tree0f485fb5c010cdd4c6dc43300e75f40a5b03b222
parent6fa35acbba3ebfdaed9023bf892237001d69b012
nolibc: fix fd_set type

[ Upstream commit 8142e9f995e63911ff212422b198811f4f304901 ]

The kernel uses unsigned long for the fd_set bitmap,
but nolibc use u32. This works fine on little endian
machines, but fails on big endian. Convert to unsigned
long to fix this.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
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/types.h