]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rust: Fix enabling Rust and building with GCC for LoongArch
authorWANG Rui <wangrui@loongson.cn>
Sun, 30 Mar 2025 08:30:20 +0000 (16:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:36 +0000 (14:39 +0200)
commitdc07c4698587bc9e1040a24d9a4e739c4f2caa75
treedc8a0687c817cfce6dca988a083cefade422baa8
parentd689645cd1594ea1d13cb0c404f8ad1011353e0e
rust: Fix enabling Rust and building with GCC for LoongArch

commit 13c23cb4ed09466d73f1beae8956810b95add6ef upstream.

This patch fixes a build issue on LoongArch when Rust is enabled and
compiled with GCC by explicitly setting the bindgen target and skipping
C flags that Clang doesn't support.

Cc: stable@vger.kernel.org
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: WANG Rui <wangrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rust/Makefile