]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
MIPS: boot/compressed/: add __bswapdi2() to target for ZSTD decompression
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 10 Nov 2021 03:09:44 +0000 (19:09 -0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:47 +0000 (09:48 +0100)
commit5766ed7fdb06b1491ff21f1647f48329c46205f1
treeefcd933f5230b8d684b3e9654a75f14a37e04da3
parentbdae950171e47b4be286e65e0ae19e3c49bcf876
MIPS: boot/compressed/: add __bswapdi2() to target for ZSTD decompression

BugLink: https://bugs.launchpad.net/bugs/1952579
[ Upstream commit e2f4b3be1d3c73176db734565b160250cc1300dd ]

For MIPS pre-boot, when CONFIG_KERNEL_ZSTD=y, the decompressor
function uses __bswapdi2(), so this object file should be added to
the target object file.

Fixes these build errors:

mips-linux-ld: arch/mips/boot/compressed/decompress.o: in function `xxh64':
decompress.c:(.text+0x8be0): undefined reference to `__bswapdi2'
mips-linux-ld: decompress.c:(.text+0x8c78): undefined reference to `__bswapdi2'
mips-linux-ld: decompress.c:(.text+0x8d04): undefined reference to `__bswapdi2'
mips-linux-ld: arch/mips/boot/compressed/decompress.o:decompress.c:(.text+0xa010): more undefined references to `__bswapdi2' follow

Fixes: 0652035a5794 ("asm-generic: unaligned: remove byteshift helpers")
Fixes: cddc40f5617e ("mips: always link byteswap helpers into decompressor")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
arch/mips/boot/compressed/Makefile