Skip to content

Commit eadf7b8

Browse files
committed
rust: Makefile: add -mfunction-return=thunk-extern to bindgen skip flags
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 9a9d6ee commit eadf7b8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rust/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,10 @@ else
266266
bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
267267
-mskip-rax-setup -mgeneral-regs-only -msign-return-address=% \
268268
-mindirect-branch=thunk-extern -mindirect-branch-register \
269-
-mrecord-mcount -mabi=lp64 -mstack-protector-guard% -mtraceback=no \
270-
-mno-pointers-to-nested-functions -mno-string -mno-strict-align \
271-
-mstrict-align \
269+
-mfunction-return=thunk-extern -mrecord-mcount -mabi=lp64 \
270+
-mstack-protector-guard% -mtraceback=no \
271+
-mno-pointers-to-nested-functions -mno-string \
272+
-mno-strict-align -mstrict-align \
272273
-fconserve-stack -falign-jumps=% -falign-loops=% \
273274
-femit-struct-debug-baseonly -fno-ipa-cp-clone -fno-ipa-sra \
274275
-fno-partial-inlining -fplugin-arg-arm_ssp_per_task_plugin-% \

0 commit comments

Comments
 (0)