2020-01-21 08:52:16

by Alex Shi

[permalink] [raw]
Subject: [PATCH] fs/select: remove __COMPAT_NFDBITS

No one use this macro after commit 464d62421cb8 ("select: switch
compat_{get,put}_fd_set() to compat_{get,put}_bitmap()")
so remove it.

Signed-off-by: Alex Shi <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
fs/select.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/select.c b/fs/select.c
index 11d0285d46b7..f2f4fbcf0c93 100644
--- a/fs/select.c
+++ b/fs/select.c
@@ -1130,7 +1130,6 @@ static long do_restart_poll(struct restart_block *restart_block)
#endif

#ifdef CONFIG_COMPAT
-#define __COMPAT_NFDBITS (8 * sizeof(compat_ulong_t))

/*
* Ooo, nasty. We need here to frob 32-bit unsigned longs to
--
1.8.3.1