Re: [PATCH v3 2/7] arch: add #define for each of optimized find bitops

From: Geert Uytterhoeven
Date: Wed Apr 27 2011 - 10:00:36 EST


On Wed, Apr 27, 2011 at 15:20, Akinobu Mita <akinobu.mita@xxxxxxxxx> 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@xxxxxxxx>
> Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>
> Acked-by: Hans-Christian Egtvedt <hans-christian.egtvedt@xxxxxxxxx>
> Acked-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>
> Acked-by: Greg Ungerer <gerg@xxxxxxxxxxx>
> Cc: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
> Cc: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
> Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Acked-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Gr{oetje,eeting}s,

            Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
             Â Â -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/