summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2025-11-09 11:01:50 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-24 12:35:49 +0300
commit22511faf140ae44959accc2614532d682f4cee8c (patch)
treeab6a9338778325c6097eb54bb79cb8760a255733 /rust
parent347bf638d39ff924741c9cd8256c0d700e7e9f98 (diff)
downloadlinux-22511faf140ae44959accc2614532d682f4cee8c.tar.xz
rust: Add -fno-isolate-erroneous-paths-dereference to bindgen_skip_c_flags
[ Upstream commit fe4b3a34e9a9654d98d274218dac0270779db0ae ] It's used to work around an objtool issue since commit abb2a5572264 ("LoongArch: Add cflag -fno-isolate-erroneous-paths-dereference"), but it's then passed to bindgen and cause an error because Clang does not have this option. Fixes: abb2a5572264 ("LoongArch: Add cflag -fno-isolate-erroneous-paths-dereference") Acked-by: Miguel Ojeda <ojeda@kernel.org> Tested-by: Mingcong Bai <jeffbai@aosc.io> Signed-off-by: Xi Ruoyao <xry111@xry111.site> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'rust')
-rw-r--r--rust/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/Makefile b/rust/Makefile
index 07c13100000c..c68c147205ed 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -249,7 +249,7 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
-fno-inline-functions-called-once -fsanitize=bounds-strict \
-fstrict-flex-arrays=% -fmin-function-alignment=% \
-fzero-init-padding-bits=% -mno-fdpic \
- --param=% --param asan-%
+ --param=% --param asan-% -fno-isolate-erroneous-paths-dereference
# Derived from `scripts/Makefile.clang`.
BINDGEN_TARGET_x86 := x86_64-linux-gnu