Skip to contentSkip to conversation

arm: rust: Enable Rust support for ARMv7

PATCH Benno Lossin 3 participants 3 messages Apr 7, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 6 lines · Miguel Ojeda
Quoted 3 lines · Benno Lossin

Maybe we should rename it to something more discouraging then. Eg CONFIG_RUST_BUILD_ASSERT_DISABLE.

To clarify: it doesn't disable them, but rather converts them to runtime checks.

Yeah I checked what it does before. I still think that we should consider this as disabling the build asserts.

Quoted 2 lines

Perhaps it should be _ESCAPE_HATCH or _KEEP_DISABLED or _AT_RUNTIME or similar -- though changing it now may be even more confusing.

I don't understand what _KEEP_DISABLED would mean. For me, _DISABLE sounds much more "threatening" than the other options.

Maybe we should also hide it behind CONFIG_EXPERT?

Quoted 5 lines

The description already mentions it should not happen, and that is an escape hatch, and the recommendation and the default is N. So if someone enables it in production, they really went out of their way to do so, and even then they are protected by the panics (that they shouldn't hit at all).

I suspect that most of the people sadly don't read the description.

Quoted 3 lines

Eventually, we may just want to remove it entirely if we never see a case failing and/or if we get proper support for those from upstream Rust for this.

Yeah, the upstream support would be the best. Did we ever need to enable this option?

---
Cheers,
Benno

#1 lore raw
Quoted 2 lines · Benno Lossin

Maybe we should also hide it behind CONFIG_EXPERT?

Maybe -- it is already inside the "Kernel hacking" menu, but it could help.

Quoted 2 lines

Yeah, the upstream support would be the best. Did we ever need to enable this option?

Not that I am aware of / recall. So far all the ones that we got a report for were actually expected cases.

Cheers,
Miguel

#2 lore raw
In reply to Benno Lossin
Quoted 2 lines · Benno Lossin

I suspect that most of the people sadly don't read the description.

I must admit I didn't read the description. I was trying to get as much as info. Since it was my first time building kernel with rust support.