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

sparc64: Fix boot on T4 and later.

If we don't put the NG4fls.o object into the same part of
the link as the generic sparc64 objects for fls() and __fls()
then the relocation in the branch we use for patching will
not fit.

Move NG4fls.o into lib-y to fix this problem.

Fixes: 46ad8d2d22c1 ("sparc64: Use sparc optimized fls and __fls for T4 and above")
Signed-off-by: David S. Miller <davem@davemloft.net>
Reported-by: Anatoly Pugachev <matorola@gmail.com>
Tested-by: Anatoly Pugachev <matorola@gmail.com>

+1 -1
+1 -1
arch/sparc/lib/Makefile
··· 19 19 lib-$(CONFIG_SPARC64) += multi3.o 20 20 lib-$(CONFIG_SPARC64) += fls.o 21 21 lib-$(CONFIG_SPARC64) += fls64.o 22 - obj-$(CONFIG_SPARC64) += NG4fls.o 22 + lib-$(CONFIG_SPARC64) += NG4fls.o 23 23 24 24 lib-$(CONFIG_SPARC64) += copy_page.o clear_page.o bzero.o 25 25 lib-$(CONFIG_SPARC64) += csum_copy.o csum_copy_from_user.o csum_copy_to_user.o