linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs/select: remove __COMPAT_NFDBITS
@ 2020-01-21  8:49 Alex Shi
  0 siblings, 0 replies; only message in thread
From: Alex Shi @ 2020-01-21  8:49 UTC (permalink / raw)
  Cc: Alexander Viro, linux-fsdevel, linux-kernel

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 <alex.shi@linux.alibaba.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk> 
Cc: linux-fsdevel@vger.kernel.org 
Cc: linux-kernel@vger.kernel.org 
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-21  8:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21  8:49 [PATCH] fs/select: remove __COMPAT_NFDBITS Alex Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).