Anton Blanchard 6e4c632cdf powerpc: make __ffs return unsigned long
I'm seeing a build warning in mm/nobootmem.c after removing
bootmem:

mm/nobootmem.c: In function '__free_pages_memory':
include/linux/kernel.h:713:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  (void) (&_min1 == &_min2);  \
                 ^
mm/nobootmem.c:90:11: note: in expansion of macro 'min'
   order = min(MAX_ORDER - 1UL, __ffs(start));
           ^

The rest of the worlds seems to define __ffs as returning unsigned long,
so lets do that.

Signed-off-by: Anton Blanchard <anton@samba.org>
Tested-by: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2014-11-10 09:59:27 +11:00
..
2014-11-03 12:12:32 +11:00
2014-09-25 23:14:46 +10:00
2010-03-04 10:43:58 -06:00
2013-10-09 20:04:11 -05:00
2014-03-04 17:37:51 +01:00
2013-10-09 20:04:11 -05:00
2013-10-09 20:04:11 -05:00
2014-09-25 23:14:46 +10:00
2013-10-09 20:04:11 -05:00
2013-11-06 14:13:50 +11:00
2014-09-25 23:14:46 +10:00