]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: Fix build errors due to wrong instructions for 32BIT
authorHuacai Chen <chenhuacai@loongson.cn>
Thu, 23 Jul 2026 14:27:16 +0000 (22:27 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 23 Jul 2026 14:27:16 +0000 (22:27 +0800)
commit7ea74820edcb22ffa3fb068076d73c6821d7e6d2
tree2b8d4f687a6ac35b741bfa8d0f69a6c69e050f88
parent7917d16d14fb512f8ffe3815b7940b6c93ff4fde
LoongArch: Fix build errors due to wrong instructions for 32BIT

In some assembly files there are some instructions that only valid for
64BIT, but those files can be compiled for 32BIT and cause build errors.

So, replace those instructions with macros:
li.d --> LONG_LI (li.w or li.d), addi.d --> PTR_ADDI (addi.w or addi.d).

BTW, Re-tab the indention in the assembly files for alignment.

Cc: stable@vger.kernel.org # 6.19+
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/rethook_trampoline.S