linux-ia64.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ia64: use asm-generic/bitops/builtin-ffs.h
@ 2013-08-14 13:06 Akinobu Mita
  0 siblings, 0 replies; only message in thread
From: Akinobu Mita @ 2013-08-14 13:06 UTC (permalink / raw)
  To: linux-kernel; +Cc: Akinobu Mita, Tony Luck, Fenghua Yu, linux-ia64

The definision of ffs() for ia64 is almost same as
asm-generic/bitops/builtin-ffs.h.  The only difference is that it is
defined as inline function or macro function.  So this switches to use
the header.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: linux-ia64@vger.kernel.org
---
 arch/ia64/include/asm/bitops.h | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/arch/ia64/include/asm/bitops.h b/arch/ia64/include/asm/bitops.h
index 8e20bff..c27eccd 100644
--- a/arch/ia64/include/asm/bitops.h
+++ b/arch/ia64/include/asm/bitops.h
@@ -425,13 +425,7 @@ __fls (unsigned long x)
 
 #include <asm-generic/bitops/fls64.h>
 
-/*
- * ffs: find first bit set. This is defined the same way as the libc and
- * compiler builtin ffs routines, therefore differs in spirit from the above
- * ffz (man ffs): it operates on "int" values only and the result value is the
- * bit number + 1.  ffs(0) is defined to return zero.
- */
-#define ffs(x)	__builtin_ffs(x)
+#include <asm-generic/bitops/builtin-ffs.h>
 
 /*
  * hweightN: returns the hamming weight (i.e. the number
-- 
1.8.3.1


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

only message in thread, other threads:[~2013-08-14 13:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-14 13:06 [PATCH] ia64: use asm-generic/bitops/builtin-ffs.h Akinobu Mita

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