linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mips: CONFIG_KERNEL_LZ4 needs obj/bswapsi.o
@ 2021-07-04 23:02 Randy Dunlap
  2021-07-05 15:09 ` Thomas Bogendoerfer
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2021-07-04 23:02 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, kernel test robot, Thomas Bogendoerfer, linux-mips

Add obj/bswapsi.o for CONFIG_KERNEL_LZ4 to fix undefined references
during linking.

mips64-linux-ld: arch/mips/boot/compressed/decompress.o: in function `decompress_kernel':
decompress.c:(.text+0x34e0): undefined reference to `__bswapsi2'
mips64-linux-ld: decompress.c:(.text+0x3504): undefined reference to `__bswapsi2'
mips64-linux-ld: decompress.c:(.text+0x3530): undefined reference to `__bswapsi2'

#Fixes: d0nt0110kn0w ("I couldn't find where __bswapsi2 is used.")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
---
 arch/mips/boot/compressed/Makefile |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20210701.orig/arch/mips/boot/compressed/Makefile
+++ linux-next-20210701/arch/mips/boot/compressed/Makefile
@@ -55,6 +55,7 @@ $(obj)/uart-ath79.c: $(srctree)/arch/mip
 	$(call cmd,shipped)
 
 vmlinuzobjs-$(CONFIG_KERNEL_XZ) += $(obj)/ashldi3.o $(obj)/bswapsi.o
+vmlinuzobjs-$(CONFIG_KERNEL_LZ4) += $(obj)/bswapsi.o
 
 extra-y += ashldi3.c
 $(obj)/ashldi3.c: $(obj)/%.c: $(srctree)/lib/%.c FORCE

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] mips: CONFIG_KERNEL_LZ4 needs obj/bswapsi.o
  2021-07-04 23:02 [PATCH] mips: CONFIG_KERNEL_LZ4 needs obj/bswapsi.o Randy Dunlap
@ 2021-07-05 15:09 ` Thomas Bogendoerfer
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2021-07-05 15:09 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-kernel, kernel test robot, linux-mips

On Sun, Jul 04, 2021 at 04:02:38PM -0700, Randy Dunlap wrote:
> Add obj/bswapsi.o for CONFIG_KERNEL_LZ4 to fix undefined references
> during linking.
> 
> mips64-linux-ld: arch/mips/boot/compressed/decompress.o: in function `decompress_kernel':
> decompress.c:(.text+0x34e0): undefined reference to `__bswapsi2'
> mips64-linux-ld: decompress.c:(.text+0x3504): undefined reference to `__bswapsi2'
> mips64-linux-ld: decompress.c:(.text+0x3530): undefined reference to `__bswapsi2'
> 
> #Fixes: d0nt0110kn0w ("I couldn't find where __bswapsi2 is used.")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
> Cc: linux-mips@vger.kernel.org
> ---
>  arch/mips/boot/compressed/Makefile |    1 +
>  1 file changed, 1 insertion(+)

Arnd sent a little bit different fix, which I've applied instead.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-05 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-04 23:02 [PATCH] mips: CONFIG_KERNEL_LZ4 needs obj/bswapsi.o Randy Dunlap
2021-07-05 15:09 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).