All of lore.kernel.org
 help / color / mirror / Atom feed
* + signals-kill-sigfindinword.patch added to -mm tree
@ 2014-04-15 19:28 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2014-04-15 19:28 UTC (permalink / raw)
  To: mm-commits, viro, tj, rostedt, richard, peterz, mingo,
	mathieu.desnoyers, geert, fweisbec, dwmw2, oleg

Subject: + signals-kill-sigfindinword.patch added to -mm tree
To: oleg@redhat.com,dwmw2@infradead.org,fweisbec@gmail.com,geert@linux-m68k.org,mathieu.desnoyers@efficios.com,mingo@kernel.org,peterz@infradead.org,richard@nod.at,rostedt@goodmis.org,tj@kernel.org,viro@ZenIV.linux.org.uk
From: akpm@linux-foundation.org
Date: Tue, 15 Apr 2014 12:28:44 -0700


The patch titled
     Subject: signals: kill sigfindinword()
has been added to the -mm tree.  Its filename is
     signals-kill-sigfindinword.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/signals-kill-sigfindinword.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/signals-kill-sigfindinword.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Oleg Nesterov <oleg@redhat.com>
Subject: signals: kill sigfindinword()

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>
---

 arch/m68k/include/asm/signal.h |    9 ---------
 arch/x86/include/asm/signal.h  |    6 ------
 include/linux/signal.h         |    5 -----
 3 files changed, 20 deletions(-)

diff -puN arch/m68k/include/asm/signal.h~signals-kill-sigfindinword arch/m68k/include/asm/signal.h
--- a/arch/m68k/include/asm/signal.h~signals-kill-sigfindinword
+++ a/arch/m68k/include/asm/signal.h
@@ -60,15 +60,6 @@ static inline int __gen_sigismember(sigs
 	 __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__
diff -puN arch/x86/include/asm/signal.h~signals-kill-sigfindinword arch/x86/include/asm/signal.h
--- a/arch/x86/include/asm/signal.h~signals-kill-sigfindinword
+++ a/arch/x86/include/asm/signal.h
@@ -92,12 +92,6 @@ static inline int __gen_sigismember(sigs
 	 ? __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__ */
diff -puN include/linux/signal.h~signals-kill-sigfindinword include/linux/signal.h
--- a/include/linux/signal.h~signals-kill-sigfindinword
+++ a/include/linux/signal.h
@@ -63,11 +63,6 @@ static inline int sigismember(sigset_t *
 		return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW));
 }
 
-static inline int sigfindinword(unsigned long word)
-{
-	return ffz(~word);
-}

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

only message in thread, other threads:[~2014-04-15 19:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-15 19:28 + signals-kill-sigfindinword.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.