[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <871pp5dfc0.fsf@t14s.mail-host-address-is-not-set>
Date: Wed, 20 Aug 2025 20:21:19 +0200
From: Andreas Hindborg <a.hindborg@...nel.org>
To: Darin Morrison <darinmorrison@...il.com>
Cc: Miguel Ojeda <ojeda@...nel.org>, Alex Gaynor <alex.gaynor@...il.com>,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy
Baron <bjorn3_gh@...tonmail.com>, Alice Ryhl <aliceryhl@...gle.com>,
Masahiro
Yamada <masahiroy@...nel.org>, Nathan Chancellor <nathan@...nel.org>, Luis
Chamberlain <mcgrof@...nel.org>, Danilo Krummrich <dakr@...nel.org>, Benno
Lossin <lossin@...nel.org>, Nicolas Schier <nicolas.schier@...ux.dev>,
Trevor Gross <tmgross@...ch.edu>, Adam
Bratschi-Kaye <ark.email@...il.com>, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-kbuild@...r.kernel.org, Petr
Pavlu <petr.pavlu@...e.com>, Sami Tolvanen <samitolvanen@...gle.com>,
Daniel Gomez <da.gomez@...sung.com>, Simona Vetter
<simona.vetter@...ll.ch>, Greg KH <gregkh@...uxfoundation.org>, Fiona
Behrens <me@...enk.dev>, Daniel Almeida <daniel.almeida@...labora.com>,
linux-modules@...r.kernel.org
Subject: Re: [v17,6/7] rust: samples: add a module parameter to the
rust_minimal sample
"Darin Morrison" <darinmorrison@...il.com> writes:
>> Showcase the rust module parameter support by adding a module parameter to
>> the `rust_minimal` sample.
>>
>> Reviewed-by: Benno Lossin <lossin@...nel.org>
>> Signed-off-by: Andreas Hindborg <a.hindborg@...nel.org>
>> ---
>> samples/rust/rust_minimal.rs | 10 ++++++++++
>> 1 file changed, 10 insertions(+)
>> diff --git a/samples/rust/rust_minimal.rs b/samples/rust/rust_minimal.rs
>> index 1fc7a1be6b6d..8eb9583571d7 100644
>> --- a/samples/rust/rust_minimal.rs
>> +++ b/samples/rust/rust_minimal.rs
>> @@ -10,6 +10,12 @@
>> authors: ["Rust for Linux Contributors"],
>> description: "Rust minimal sample",
>> license: "GPL",
>> + params: {
>> + test_parameter: i64 {
>> + default: 1,
>> + description: "This parameter has a default of 1",
>> + },
>> + },
>
> Thanks for the patches.
>
> I've been using these in a new PCI device driver module and noticed
> that the inclusion of `params:` in the rustdoc test here causes the
> `rusttest` target to fail with a linker error (below) complaining about
> undefined references for `rust_helper_atomic_try_cmpxchg_relaxed` and
> `rust_helper_atomic_set_release`.
>
> Building a real module and using the `params:` field seems to work
> fine though so it must be something specific to the test configuration.
>
> Any ideas how to fix this?
Thanks for reporting! I don't have that issue locally. Do you have a
tree and a config you can point me to, so I can try to reproduce?
Best regards,
Andreas Hindborg
Powered by blists - more mailing lists