Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARC: bitops: fls/ffs to take int (vs long) per asm-generic defines

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>

+2 -2
+2 -2
arch/arc/include/asm/bitops.h
··· 114 114 * @result: [1-32] 115 115 * fls(1) = 1, fls(0x80000000) = 32, fls(0) = 0 116 116 */ 117 - static inline __attribute__ ((const)) int fls(unsigned long x) 117 + static inline __attribute__ ((const)) int fls(unsigned int x) 118 118 { 119 119 int n; 120 120 ··· 141 141 * ffs = Find First Set in word (LSB to MSB) 142 142 * @result: [1-32], 0 if all 0's 143 143 */ 144 - static inline __attribute__ ((const)) int ffs(unsigned long x) 144 + static inline __attribute__ ((const)) int ffs(unsigned int x) 145 145 { 146 146 int n; 147 147