kernel/include/asm-generic/bitops/builtin-fls.h
.. .. @@ -9,7 +9,7 @@ 9 9 * This is defined the same way as ffs. 10 10 * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. 11 11 */ 12 -static __always_inline int fls(int x)12 +static __always_inline int fls(unsigned int x)13 13 { 14 14 return x ? sizeof(x) * 8 - __builtin_clz(x) : 0; 15 15 }