From: Miguel Ojeda Date: Sun, 5 Apr 2026 23:52:38 +0000 (+0200) Subject: rust: kbuild: remove "`try` keyword" workaround for `bindgen` < 0.59.2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=518b9ad2fab3843ad50b776a55cec96c9503de51;p=thirdparty%2Fkernel%2Flinux.git rust: kbuild: remove "`try` keyword" workaround for `bindgen` < 0.59.2 There is a workaround that has not been needed, even already after commit 08ab786556ff ("rust: bindgen: upgrade to 0.65.1"), but it does not hurt. Thus remove it. Reviewed-by: Tamir Duberstein Reviewed-by: Gary Guo Link: https://patch.msgid.link/20260405235309.418950-3-ojeda@kernel.org Signed-off-by: Miguel Ojeda --- diff --git a/rust/bindgen_parameters b/rust/bindgen_parameters index fd2fd1c3cb9a5..112ec197ef0a2 100644 --- a/rust/bindgen_parameters +++ b/rust/bindgen_parameters @@ -15,10 +15,6 @@ --opaque-type x86_msi_data --opaque-type x86_msi_addr_lo -# `try` is a reserved keyword since Rust 2018; solved in `bindgen` v0.59.2, -# commit 2aed6b021680 ("context: Escape the try keyword properly"). ---opaque-type kunit_try_catch - # If SMP is disabled, `arch_spinlock_t` is defined as a ZST which triggers a Rust # warning. We don't need to peek into it anyway. --opaque-type spinlock