Skip to content

Commit 80851e4

Browse files
ojedaaliceinwire
authored andcommitted
build-configs: rust: disable IBT/Retpoline/Rethunk for the moment
Until we have the needed pieces in place in `rustc` and the kernel to support IBT/Retpoline/Rethunk; disable the relevant configs for the moment. This avoids the 2000+ warnings from `objtool` that we currently generate in the logs. Link: https://storage.kernelci.org/mainline/master/v6.1-11554-g785d21ba2f44/x86_64/x86_64_defconfig+rust/rustc-1.62/logs/build-warnings.log Link: Rust-for-Linux/linux#945 Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent d90d6b4 commit 80851e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/core/build-configs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ fragments:
281281
rust:
282282
path: "kernel/configs/rust.config"
283283
configs:
284+
- '# CONFIG_X86_KERNEL_IBT is not set'
285+
- '# CONFIG_RETPOLINE is not set'
286+
- '# CONFIG_RETHUNK is not set'
284287
- 'CONFIG_RUST=y'
285288

286289
rust-for-linux-samples:

0 commit comments

Comments
 (0)