summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-09-22 15:49:39 +0200
committerMark Brown <broonie@kernel.org>2026-09-22 15:49:39 +0200
commitf3115f0f8da1bf68ade9ede3422b01b2849e39d6 (patch)
tree4823f9ec3b5d38aae282fc5699e0a35d1c79e328 /scripts
parent67d0d03da16df245704922813a51e76e323e967f (diff)
parentd16ef5debccc4289c1f25309a2cccfbbe879601a (diff)
regulator: mp886x: fix two issues reported by sashiko
Jisheng Zhang <jszhang@kernel.org> says: Fix two issues reported by sashiko. https://sashiko.dev/#/patchset/20260901043123.5401-1-jszhang@kernel.org?part=1 Link: https://patch.msgid.link/20260909143957.9284-1-jszhang@kernel.org
Diffstat (limited to 'scripts')
-rw-r--r--scripts/generate_rust_target.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/generate_rust_target.rs b/scripts/generate_rust_target.rs
index 3bf296581a88..7687b0dd5474 100644
--- a/scripts/generate_rust_target.rs
+++ b/scripts/generate_rust_target.rs
@@ -224,6 +224,11 @@ fn main() {
features += ",+harden-sls-ijmp";
features += ",+harden-sls-ret";
}
+ if cfg.has("X86_NATIVE_CPU") {
+ // Prevent the backend from generating APX instructions. The kernel is not yet prepared
+ // for general in-kernel EGPR use.
+ features += ",-apxf";
+ }
ts.push("features", features);
ts.push("llvm-target", "x86_64-linux-gnu");
ts.push("supported-sanitizers", ["kcfi", "kernel-address"]);