Skip to content

Commit a9c621a

Browse files
jmflinuxtxojeda
authored andcommitted
rust: kbuild: add -fzero-init-padding-bits to bindgen_skip_cflags
This seems to break the build when building with gcc15: Unable to generate bindings: ClangDiagnostic("error: unknown argument: '-fzero-init-padding-bits=all'\n") Thus skip that flag. Signed-off-by: Justin M. Forbes <[email protected]> Fixes: dce4aab ("kbuild: Use -fzero-init-padding-bits=all") Reviewed-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Slightly reworded commit. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent c21bdb3 commit a9c621a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
240240
-fzero-call-used-regs=% -fno-stack-clash-protection \
241241
-fno-inline-functions-called-once -fsanitize=bounds-strict \
242242
-fstrict-flex-arrays=% -fmin-function-alignment=% \
243+
-fzero-init-padding-bits=% \
243244
--param=% --param asan-%
244245

245246
# Derived from `scripts/Makefile.clang`.

0 commit comments

Comments
 (0)