From: Anton Blanchard Date: Wed, 17 Sep 2014 12:15:37 +0000 (+1000) Subject: powerpc: make __ffs return unsigned long X-Git-Tag: omap-for-v3.20/drop-legacy-3517~120^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e4c632cdff7bf0238a2543dfe98bd1ad40313c2;p=pandora-kernel.git 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 Tested-by: Emil Medve Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed