• Randy Dunlap's avatar
    MIPS: boot/compressed/: add __bswapdi2() to target for ZSTD decompression · e2f4b3be
    Randy Dunlap authored
    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: 0652035a ("asm-generic: unaligned: remove byteshift helpers")
    Fixes: cddc40f5 ("mips: always link byteswap helpers into decompressor")
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Reported-by: default avatarkernel 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: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
    e2f4b3be
Makefile 6.07 KB