Skip to content

Commit 929b4fd

Browse files
committed
rust: ignore a few more warning-triggering flags in GCC builds
Link: https://lore.kernel.org/lkml/[email protected]/ Reported-by: kernel test robot <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 17c1154 commit 929b4fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rust/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,13 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
200200
-mindirect-branch=thunk-extern -mindirect-branch-register -mrecord-mcount \
201201
-mabi=lp64 -mstack-protector-guard% -mtraceback=no \
202202
-mno-pointers-to-nested-functions -mno-string -mno-strict-align \
203+
-mstrict-align \
203204
-fconserve-stack -falign-jumps=% -falign-loops=% \
204205
-femit-struct-debug-baseonly -fno-ipa-cp-clone -fno-ipa-sra \
205206
-fno-partial-inlining -fplugin-arg-arm_ssp_per_task_plugin-% \
206207
-fno-reorder-blocks -fno-allow-store-data-races -fasan-shadow-offset=% \
207-
-fzero-call-used-regs=% \
208+
-fzero-call-used-regs=% -fno-stack-clash-protection \
209+
-fno-inline-functions-called-once \
208210
--param=% --param asan-%
209211

210212
# Derived from `scripts/Makefile.clang`

0 commit comments

Comments
 (0)