]> git.hungrycats.org Git - linux/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, 5 Dec 2024 13:02:45 +0000 (14:02 +0100)
commit7b3a7918f10dbc312e36c7363be0788a596d94d5
treeb26c92cd23d8a76164fd8e72cd0c25e784e29e06
parent69d2ceac11acf8579d58d55c9c5b65fb658f916e
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