signals: kill sigfindinword()
authorOleg Nesterov <oleg@redhat.com>
Fri, 6 Jun 2014 21:36:45 +0000 (14:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2014 23:08:11 +0000 (16:08 -0700)
It has no users and it doesn't look useful.  I do not know why/when it was
introduced, I can't even find any user in the git history.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m68k/include/asm/signal.h
arch/x86/include/asm/signal.h
include/linux/signal.h

index 214320b5038440be179cd557479dddb7bd58eaa2..8c8ce5e1ee0e67124e17bd3b0f58233094f22780 100644 (file)
@@ -60,15 +60,6 @@ static inline int __gen_sigismember(sigset_t *set, int _sig)
         __const_sigismember(set,sig) :         \
         __gen_sigismember(set,sig))
 
-static inline int sigfindinword(unsigned long word)
-{
-       asm ("bfffo %1{#0,#0},%0"
-               : "=d" (word)
-               : "d" (word & -word)
-               : "cc");
-       return word ^ 31;
-}
-
 #endif /* !CONFIG_CPU_HAS_NO_BITFIELDS */
 
 #ifndef __uClinux__
index 35e67a457182f7f90b62248d5d4044c6a14bf989..31eab867e6d359d0da8ebfe5637368d19cbff516 100644 (file)
@@ -92,12 +92,6 @@ static inline int __gen_sigismember(sigset_t *set, int _sig)
         ? __const_sigismember((set), (sig))    \
         : __gen_sigismember((set), (sig)))
 
-static inline int sigfindinword(unsigned long word)
-{
-       asm("bsfl %1,%0" : "=r"(word) : "rm"(word) : "cc");
-       return word;
-}
-
 struct pt_regs;
 
 #else /* __i386__ */
index 2ac423bdb6766f7aa4f50f87093374ce59ea49f7..ae744c314630c9a0ee2167e6381a4f1042cab364 100644 (file)
@@ -63,11 +63,6 @@ static inline int sigismember(sigset_t *set, int _sig)
                return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW));
 }
 
-static inline int sigfindinword(unsigned long word)
-{
-       return ffz(~word);
-}
-
 #endif /* __HAVE_ARCH_SIG_BITOPS */
 
 static inline int sigisemptyset(sigset_t *set)