android_kernel_msm-6.1_noth.../arch/hexagon/include/asm
Randy Dunlap 5c41aaad40 hexagon: modify ffs() and fls() to return int
Building drivers/mtd/nand/raw/nandsim.c on arch/hexagon/ produces a
printk format build warning.  This is due to hexagon's ffs() being
coded as returning long instead of int.

Fix the printk format warning by changing all of hexagon's ffs() and
fls() functions to return int instead of long.  The variables that
they return are already int instead of long.  This return type
matches the return type in <asm-generic/bitops/>.

../drivers/mtd/nand/raw/nandsim.c: In function 'init_nandsim':
../drivers/mtd/nand/raw/nandsim.c:760:2: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat]

There are no ffs() or fls() allmodconfig build errors after making this
change.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Richard Kuo <rkuo@codeaurora.org>
Cc: linux-hexagon@vger.kernel.org
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Patch-mainline: linux-kernel @ 07/22/2018, 16:03
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
2018-09-10 19:42:15 -05:00
..
asm-offsets.h
atomic.h atomics/treewide: Make unconditional inc/dec ops optional 2018-06-21 14:25:24 +02:00
bitops.h hexagon: modify ffs() and fls() to return int 2018-09-10 19:42:15 -05:00
cache.h
cacheflush.h
checksum.h
cmpxchg.h
delay.h
dma-mapping.h
dma.h
elf.h
exec.h
fixmap.h
fpu.h
futex.h
hexagon_vm.h
intrinsics.h
io.h hexagon: add memset_io() helper 2018-05-01 15:49:46 -05:00
irq.h
irqflags.h
Kbuild time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
kgdb.h
linkage.h
mem-layout.h
mmu.h
mmu_context.h
module.h
page.h
perf_event.h
pgalloc.h
pgtable.h hexagon: drop the unused variable zero_page_mask 2018-06-15 07:55:25 +09:00
processor.h
smp.h
spinlock.h
spinlock_types.h
string.h
suspend.h
switch_to.h
syscall.h
thread_info.h
time.h
timer-regs.h
timex.h
tlb.h
tlbflush.h
traps.h
uaccess.h
vdso.h
vm_fault.h
vm_mmu.h