[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANiq72=ph_XG0TtkdsNJCUZMiAMYBo11eJaCTLCTpTAFXtcNMA@mail.gmail.com>
Date: Mon, 9 Jun 2025 16:50:21 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Igor Korotin <igor.korotin.linux@...il.com>
Cc: Danilo Krummrich <dakr@...nel.org>, Benno Lossin <lossin@...nel.org>, Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>, "Rafael J . Wysocki" <rafael@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>, linux-kernel@...r.kernel.org,
rust-for-linux@...r.kernel.org, linux-acpi@...r.kernel.org,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <benno.lossin@...ton.me>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>, Len Brown <lenb@...nel.org>,
Wedson Almeida Filho <wedsonaf@...il.com>, Viresh Kumar <viresh.kumar@...aro.org>,
Alex Hung <alex.hung@....com>, Xiang Fei Ding <dingxiangfei2009@...il.com>
Subject: Re: [PATCH v3 2/4] rust: driver: Add ACPI id table support to Adapter trait
On Mon, Jun 9, 2025 at 4:07 PM Igor Korotin
<igor.korotin.linux@...il.com> wrote:
>
> 1. rename it to `_dev`. This is nasty to my opinion, because it is misleading.
Yes, please do not change the name that would be use in the "normal/full case".
> 2. add #[alloc(unused_variables)] on top of it. Also not good since it
> will suppress
> all other possible unused_variables as well.
This can be done conditionally with `cfg_attr`, but it is not great.
> 3. The third option is `let _ = dev;` in `#[cfg(not(CONFIG_OF))]`
> section. I came to
> it while I was writing this reply. This looks like the best option of
> three in my opinion.
Yeah.
Cheers,
Miguel
Powered by blists - more mailing lists