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

sparc64: repair calling incorrect hweight function from stubs

Commit v4.12-rc4-1-g9289ea7f952b introduced a mistake that made the
64-bit hweight stub call the 16-bit hweight function.

Fixes: 9289ea7f952b ("sparc64: Use indirect calls in hamming weight stubs")
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jan Engelhardt and committed by
David S. Miller
59585b4b 5f520fc3

+2 -2
+2 -2
arch/sparc/lib/hweight.S
··· 44 44 .previous 45 45 46 46 ENTRY(__arch_hweight64) 47 - sethi %hi(__sw_hweight16), %g1 48 - jmpl %g1 + %lo(__sw_hweight16), %g0 47 + sethi %hi(__sw_hweight64), %g1 48 + jmpl %g1 + %lo(__sw_hweight64), %g0 49 49 nop 50 50 ENDPROC(__arch_hweight64) 51 51 EXPORT_SYMBOL(__arch_hweight64)