]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:12:25 +0000 (14:12 +0200)
commit6133444518b7abc53304ea4d5c636bfe029061be
treeaf0d42a28b35930b4ea17c6ce5f2466703517002
parentf521c2a0c0c4585f36d912bf62c852b88682c4f2
LoongArch: Explicitly specify code model in Makefile

commit e67e0eb6a98b261caf45048f9eb95fd7609289c0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/loongarch/Makefile