public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: x86: ppc fixes for find_first_bit
@ 2008-04-14 16:48 Alexander van Heukelum
  2008-04-16 12:57 ` Ingo Molnar
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander van Heukelum @ 2008-04-14 16:48 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: Ingo Molnar, Alexander van Heukelum, linux-kernel

Hello Thomas,

I see Ingo has applied three fixes to the x86-tree:
    find_first_bit() ppc fix
    powerpc: fix powerpc build
    find_next_bit() fix

Could you please give some insight in what went wrong with
ppc and powerpc?

"find_first_bit() ppc fix" disables the use of find_first_bit
for every user of GENERIC_FIND_NEXT_BIT=y. It replaces it by a
macro to call find_next_bit with offset=0. It should be possible
for an arch to use GENERIC_FIND_NEXT_BIT=y and implement 
find_first_bit by itself.

"powerpc: fix powerpc build" removes the private 'implementation'
of asm-generic/bitops/find.h. It seems correct code to me. What
was the problem here? If it is duplicate declarations, then
I would suggest putting #ifndef GENERIC_FIND_NEXT_BIT around
them.

"find_next_bit() fix" changes asm-generic/bitops/find.h to
declare find_next_bit only if CONFIG_GENERIC_FIND_NEXT_BIT=n.
That is indeed a good change. It would be better if this
file disappeared completely, though.

Greetings,
    Alexander
-- 
  Alexander van Heukelum
  heukelum@fastmail.fm

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-04-17  9:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-14 16:48 x86: ppc fixes for find_first_bit Alexander van Heukelum
2008-04-16 12:57 ` Ingo Molnar
2008-04-16 13:55   ` [PATCH] x86: fix find_next_bit breakage on ppc and powerpc Alexander van Heukelum
2008-04-16 14:40     ` Ingo Molnar
2008-04-16 15:03       ` Alexander van Heukelum
2008-04-16 22:55       ` Paul Mackerras
2008-04-17  9:04         ` Alexander van Heukelum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox