]> www.infradead.org Git - users/jedix/linux-maple.git/commit
LoongArch: Explicitly specify code model in Makefile
authorHuacai Chen <chenhuacai@loongson.cn>
Fri, 22 Nov 2024 07:47:47 +0000 (15:47 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 26 Nov 2024 10:06:03 +0000 (18:06 +0800)
commite67e0eb6a98b261caf45048f9eb95fd7609289c0
tree0369bfafef6960d3c09e9c9860438f164ba3b41e
parent1b9bc4207e81206ea6b6a906e01438b7782c3a58
LoongArch: Explicitly specify code model in Makefile

LoongArch's toolchain may change the default code model from normal to
medium. This is unnecessary for kernel, and generates some relocations
which cannot be handled by the module loader. So explicitly specify the
code model to normal in Makefile (for Rust 'normal' is 'small').

Cc: stable@vger.kernel.org
Tested-by: Haiyong Sun <sunhaiyong@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Makefile