[PATCH 1/6] arch: add #define for each of optimized find bitops

Hans-Christian Egtvedt hans-christian.egtvedt at atmel.com
Tue Apr 26 08:23:20 EDT 2011


On Sun, 2011-04-24 at 18:51 +0900, Akinobu Mita wrote:
> The style that we normally use in asm-generic is to test the macro itself
> for existence, so in asm-generic, do:
> 
> 	#ifndef find_next_zero_bit_le
> 	extern unsigned long find_next_zero_bit_le(const void *addr,
> 		unsigned long size, unsigned long offset);
> 	#endif
> 
> and in the architectures, write
> 
> 	static inline unsigned long find_next_zero_bit_le(const void *addr,
> 		unsigned long size, unsigned long offset)
> 	#define find_next_zero_bit_le find_next_zero_bit_le
> 
> This adds the #define for each of the optimized find bitops in the
> architectures.
> 
> Suggested-by: Arnd Bergmann <arnd at arndb.de>
> Signed-off-by: Akinobu Mita <akinobu.mita at gmail.com>
> Cc: Russell King <linux at arm.linux.org.uk>
> Cc: linux-arm-kernel at lists.infradead.org
> Cc: Martin Schwidefsky <schwidefsky at de.ibm.com>
> Cc: Heiko Carstens <heiko.carstens at de.ibm.com>
> Cc: linux390 at de.ibm.com
> Cc: linux-s390 at vger.kernel.org
> Cc: Hans-Christian Egtvedt <hans-christian.egtvedt at atmel.com>
> Cc: Geert Uytterhoeven <geert at linux-m68k.org>
> Cc: linux-m68k at lists.linux-m68k.org
> Cc: Greg Ungerer <gerg at uclinux.org>

For the arch/avr32/include/asm/bitops.h changes.

Acked-by: Hans-Christian Egtvedt <hans-christian.egtvedt at atmel.com>

-- 
Hans-Christian Egtvedt




More information about the linux-arm-kernel mailing list