Patch "rust: kbuild: add -fzero-init-padding-bits to bindgen_skip_cflags" has been added to the 6.13-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    rust: kbuild: add -fzero-init-padding-bits to bindgen_skip_cflags

to the 6.13-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rust-kbuild-add-fzero-init-padding-bits-to-bindgen_s.patch
and it can be found in the queue-6.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7135c6ca6952e39b35856546f51da533d3f8145c
Author: Justin M. Forbes <jforbes@xxxxxxxxxxxxxxxxx>
Date:   Wed Jan 29 14:50:02 2025 -0700

    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@xxxxxxxxxxxxxxxxx>
    Fixes: dce4aab8441d ("kbuild: Use -fzero-init-padding-bits=all")
    Reviewed-by: Kees Cook <kees@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20250129215003.1736127-1-jforbes@xxxxxxxxxxxxxxxxx
    [ Slightly reworded commit. - Miguel ]
    Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/rust/Makefile b/rust/Makefile
index a40a3936126d6..43cd7f845a9a3 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -238,6 +238,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`.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux