linux/arch/csky
Matthew Wilcox 3fc2579e6f fls: change parameter to unsigned int
When testing in userspace, UBSAN pointed out that shifting into the sign
bit is undefined behaviour.  It doesn't really make sense to ask for the
highest set bit of a negative value, so just turn the argument type into
an unsigned int.

Some architectures (eg ppc) already had it declared as an unsigned int,
so I don't expect too many problems.

Link: http://lkml.kernel.org/r/20181105221117.31828-1-willy@infradead.org
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-01-04 13:13:46 -08:00
..
abiv1 csky: Misc headers 2018-10-26 00:54:26 +08:00
abiv2 csky: Misc headers 2018-10-26 00:54:26 +08:00
boot csky: use common dtb build rules 2018-11-01 10:52:27 +08:00
configs
include fls: change parameter to unsigned int 2019-01-04 13:13:46 -08:00
kernel mm: remove CONFIG_HAVE_MEMBLOCK 2018-10-31 08:54:15 -07:00
lib csky: User access 2018-10-26 00:54:25 +08:00
mm Merge branch 'akpm' (patches from Andrew) 2018-12-28 16:55:46 -08:00
Kconfig dma-mapping: always build the direct mapping code 2018-12-13 21:06:11 +01:00
Kconfig.debug csky: remove builtin-dtb Kbuild 2018-11-01 10:52:26 +08:00
Makefile csky: use common dtb build rules 2018-11-01 10:52:27 +08:00