summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@fedoraproject.org>2025-01-29 14:50:02 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-21 14:01:39 +0100
commit86f563c7431a6f98f4b37b1bd653004e08ce4b1b (patch)
tree1de4c291f1104264d10bd57301af82f96884df91 /rust
parent7d46869aa7bd0a16d17e93a34dbb58089f23731b (diff)
downloadlinux-86f563c7431a6f98f4b37b1bd653004e08ce4b1b.tar.gz
linux-86f563c7431a6f98f4b37b1bd653004e08ce4b1b.tar.bz2
linux-86f563c7431a6f98f4b37b1bd653004e08ce4b1b.zip
rust: kbuild: add -fzero-init-padding-bits to bindgen_skip_cflags
[ Upstream commit a9c621a217128eb3fb7522cf763992d9437fd5ba ] 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 <jforbes@fedoraproject.org> Fixes: dce4aab8441d ("kbuild: Use -fzero-init-padding-bits=all") Reviewed-by: Kees Cook <kees@kernel.org> Link: https://lore.kernel.org/r/20250129215003.1736127-1-jforbes@fedoraproject.org [ Slightly reworded commit. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'rust')
-rw-r--r--rust/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/Makefile b/rust/Makefile
index 9f59baacaf77..45779a064fa4 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -229,6 +229,7 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
-fzero-call-used-regs=% -fno-stack-clash-protection \
-fno-inline-functions-called-once -fsanitize=bounds-strict \
-fstrict-flex-arrays=% -fmin-function-alignment=% \
+ -fzero-init-padding-bits=% \
--param=% --param asan-%
# Derived from `scripts/Makefile.clang`.