mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
3fc2579e6f
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> |
||
---|---|---|
.. | ||
asm-offsets.h | ||
bitops.h | ||
bug.h | ||
cache.h | ||
cacheflush.h | ||
checksum.h | ||
clock.h | ||
cmpxchg.h | ||
delay.h | ||
dscr.h | ||
elf.h | ||
flat.h | ||
ftrace.h | ||
hardirq.h | ||
irq.h | ||
irqflags.h | ||
Kbuild | ||
linkage.h | ||
megamod-pic.h | ||
module.h | ||
page.h | ||
pgtable.h | ||
processor.h | ||
procinfo.h | ||
ptrace.h | ||
sections.h | ||
setup.h | ||
soc.h | ||
special_insns.h | ||
string.h | ||
switch_to.h | ||
syscall.h | ||
syscalls.h | ||
thread_info.h | ||
timer64.h | ||
timex.h | ||
tlb.h | ||
traps.h | ||
uaccess.h | ||
unaligned.h |