]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rust: kbuild: add -fzero-init-padding-bits to bindgen_skip_cflags
authorJustin M. Forbes <jforbes@fedoraproject.org>
Wed, 29 Jan 2025 21:50:02 +0000 (14:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 13:01:39 +0000 (14:01 +0100)
commit86f563c7431a6f98f4b37b1bd653004e08ce4b1b
tree1de4c291f1104264d10bd57301af82f96884df91
parent7d46869aa7bd0a16d17e93a34dbb58089f23731b
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>
rust/Makefile