Patch "arch: um: rust: Use the generated target.json again" has been added to the 6.10-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

    arch: um: rust: Use the generated target.json again

to the 6.10-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:
     arch-um-rust-use-the-generated-target.json-again.patch
and it can be found in the queue-6.10 subdirectory.

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



commit d5264b91fa6beae8f50c21c806a06fcc8591ae60
Author: David Gow <davidgow@xxxxxxxxxx>
Date:   Wed May 29 17:33:35 2024 +0800

    arch: um: rust: Use the generated target.json again
    
    [ Upstream commit 9a2123b397bbe0da5e853273369d63779ac97c8c ]
    
    The Rust compiler can take a target config from 'target.json', which is
    generated by scripts/generate_rust_target.rs. It used to be that all
    Linux architectures used this to generate a target.json, but now
    architectures must opt-in to this, or they will default to the Rust
    compiler's built-in target definition.
    
    This is mostly okay for (64-bit) x86 and UML, except that it can
    generate SSE instructions, which we can't use in the kernel. So
    re-instate the custom target.json, which disables SSE (and generally
    enables the 'soft-float' feature). This fixes the following compile
    error:
    
    error: <unknown>:0:0: in function _RNvMNtCs5QSdWC790r4_4core3f32f7next_up float (float): SSE register return with SSE disabled
    
    Fixes: f82811e22b48 ("rust: Refactor the build target to allow the use of builtin targets")
    Signed-off-by: David Gow <davidgow@xxxxxxxxxx>
    Reviewed-by: Boqun Feng <boqun.feng@xxxxxxxxx>
    Tested-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
    Reviewed-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
    Link: https://patch.msgid.link/20240529093336.4075206-1-davidgow@xxxxxxxxxx
    Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/x86/Makefile.um b/arch/x86/Makefile.um
index 2106a2bd152bf..a46b1397ad01c 100644
--- a/arch/x86/Makefile.um
+++ b/arch/x86/Makefile.um
@@ -9,6 +9,7 @@ core-y += arch/x86/crypto/
 #
 ifeq ($(CONFIG_CC_IS_CLANG),y)
 KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx
+KBUILD_RUSTFLAGS += --target=$(objtree)/scripts/target.json
 KBUILD_RUSTFLAGS += -Ctarget-feature=-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-avx,-avx2
 endif
 




[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