android_kernel_xiaomi_sm7250/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 Hexagon: Add processor and system headers 2011-11-01 07:34:18 -07:00
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 Hexagon: set ARCH_DMA_MINALIGN 2014-12-16 13:27:30 -06:00
cacheflush.h hexagon: Fix build failures in linux-next 2014-12-16 13:27:12 -06:00
checksum.h ipv4: Update parameters for csum_tcpudp_magic to their original types 2016-03-13 23:55:13 -04:00
cmpxchg.h arch: Remove __ARCH_HAVE_CMPXCHG 2015-05-13 10:55:42 +02:00
delay.h arch: hexagon: kernel: add export symbol function __delay() 2014-04-04 18:19:59 -05:00
dma-mapping.h hexagon: use the generic dma_capable helper 2018-01-10 16:41:13 +01:00
dma.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
elf.h Hexagon: update CR year for elf.h 2014-04-04 18:20:02 -05:00
exec.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
fixmap.h hexagon: use generic fixmap.h 2014-01-23 16:36:54 -08:00
fpu.h
futex.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hexagon_vm.h hexagon: Fix misspellings in comments. 2016-04-18 12:45:54 +02:00
intrinsics.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
io.h hexagon: add memset_io() helper 2018-05-01 15:49:46 -05:00
irq.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
irqflags.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
Kbuild time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
kgdb.h hexagon: include: asm: kgdb: extend DBG_MAX_REG_NUM for "cs0/1" 2014-04-04 18:19:59 -05:00
linkage.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
mem-layout.h Hexagon: use correct translation for VMALLOC_START 2013-04-30 19:40:29 -05:00
mmu_context.h sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h> 2017-03-02 08:42:37 +01:00
mmu.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
module.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
page.h Hexagon: use correct translations for DMA mappings 2013-04-30 19:40:28 -05:00
perf_event.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
pgalloc.h tree wide: get rid of __GFP_REPEAT for order-0 allocations part I 2016-06-24 17:23:52 -07:00
pgtable.h hexagon: drop the unused variable zero_page_mask 2018-06-15 07:55:25 +09:00
processor.h arch: remove unused macro/function thread_saved_pc() 2017-06-28 16:13:57 -07:00
smp.h smp, hexagon: kill SMP single function call interrupt 2014-04-04 18:20:01 -05:00
spinlock_types.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
spinlock.h locking/arch: Remove dummy arch_{read,spin,write}_lock_flags() implementations 2017-10-10 11:50:19 +02:00
string.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
suspend.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
switch_to.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
syscall.h take sys_fork/sys_vfork/sys_clone prototypes to linux/syscalls.h 2012-11-28 23:43:27 -05:00
thread_info.h Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
time.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
timer-regs.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
timex.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
tlb.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
tlbflush.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
traps.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
uaccess.h hexagon: switch to RAW_COPY_USER 2017-04-24 20:28:29 -04:00
vdso.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
vm_fault.h Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
vm_mmu.h hexagon: Fix misspellings in comments. 2016-04-18 12:45:54 +02:00