lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202410271331.Kh0GAuXf-lkp@intel.com>
Date: Sun, 27 Oct 2024 13:30:16 +0800
From: kernel test robot <lkp@...el.com>
To: Daniel Almeida <daniel.almeida@...labora.com>,
	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>,
	Benno Lossin <benno.lossin@...ton.me>,
	Andreas Hindborg <a.hindborg@...nel.org>,
	Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	linux-kernel@...r.kernel.org, rust-for-linux@...r.kernel.org,
	Daniel Almeida <daniel.almeida@...labora.com>
Subject: Re: [PATCH] rust: irq: add support for request_irq()

Hi Daniel,

kernel test robot noticed the following build errors:

[auto build test ERROR on 33c255312660653cf54f8019896b5dca28e3c580]

url:    https://github.com/intel-lab-lkp/linux/commits/Daniel-Almeida/rust-irq-add-support-for-request_irq/20241024-222633
base:   33c255312660653cf54f8019896b5dca28e3c580
patch link:    https://lore.kernel.org/r/20241024-topic-panthor-rs-request_irq-v1-1-7cbc51c182ca%40collabora.com
patch subject: [PATCH] rust: irq: add support for request_irq()
config: riscv-randconfig-001-20241027 (https://download.01.org/0day-ci/archive/20241027/202410271331.Kh0GAuXf-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241027/202410271331.Kh0GAuXf-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410271331.Kh0GAuXf-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error[E0432]: unresolved import `kernel::irq::Registration`
   --> rust/doctests_kernel_generated.rs:1837:5
   |
   1837 | use kernel::irq::Registration;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ no `Registration` in `irq`
   |
   help: consider importing one of these items instead
   |
   1837 | use kernel::irq::request::Registration;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1837 | use kernel::net::phy::Registration;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
>> error[E0432]: unresolved import `kernel::sync::lock::SpinLock`
   --> rust/doctests_kernel_generated.rs:1839:5
   |
   1839 | use kernel::sync::lock::SpinLock;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SpinLock` in `sync::lock`
   |
   help: a similar name exists in the module
   |
   1839 | use kernel::sync::lock::spinlock;
   |                         ~~~~~~~~
   help: consider importing this type alias instead
   |
   1839 | use kernel::sync::SpinLock;
   |     ~~~~~~~~~~~~~~~~~~~~~~
--
>> error[E0412]: cannot find type `ThreadedIrqReturn` in module `irq`
   --> rust/doctests_kernel_generated.rs:1955:34
   |
   1955 |     fn handle_irq(&self) -> irq::ThreadedIrqReturn {
   |                                  ^^^^^^^^^^^^^^^^^ not found in `irq`
   |
   help: consider importing this enum
   |
   3    + use kernel::irq::request::ThreadedIrqReturn;
   |
   help: if you import `ThreadedIrqReturn`, refer to it directly
   |
   1955 -     fn handle_irq(&self) -> irq::ThreadedIrqReturn {
   1955 +     fn handle_irq(&self) -> ThreadedIrqReturn {
   |
--
>> error[E0433]: failed to resolve: use of undeclared type `ThreadedIrqReturn`
   --> rust/doctests_kernel_generated.rs:1963:9
   |
   1963 |         ThreadedIrqReturn::WakeThread
   |         ^^^^^^^^^^^^^^^^^ use of undeclared type `ThreadedIrqReturn`
   |
   help: consider importing this enum
   |
   3    + use kernel::irq::request::ThreadedIrqReturn;
   |
--
>> error[E0412]: cannot find type `ThreadedFnReturn` in module `irq`
   --> rust/doctests_kernel_generated.rs:1968:33
   |
   1968 |     fn thread_fn(&self) -> irq::ThreadedFnReturn {
   |                                 ^^^^^^^^^^^^^^^^ not found in `irq`
   |
   help: consider importing this enum
   |
   3    + use kernel::irq::request::ThreadedFnReturn;
   |
   help: if you import `ThreadedFnReturn`, refer to it directly
   |
   1968 -     fn thread_fn(&self) -> irq::ThreadedFnReturn {
   1968 +     fn thread_fn(&self) -> ThreadedFnReturn {
   |
--
>> error[E0412]: cannot find type `Registration` in module `irq`
   --> rust/doctests_kernel_generated.rs:1975:64
   |
   1975 |     fn register_irq(irq: u32, handler: Handler) -> Result<irq::Registration<Handler>> {
   |                                                                ^^^^^^^^^^^^ not found in `irq`
   |
   help: consider importing one of these items
   |
   3    + use kernel::irq::request::Registration;
   |
   3    + use kernel::net::phy::Registration;
   |
   help: if you import `Registration`, refer to it directly
   |
   1975 -     fn register_irq(irq: u32, handler: Handler) -> Result<irq::Registration<Handler>> {
   1975 +     fn register_irq(irq: u32, handler: Handler) -> Result<Registration<Handler>> {
   |
--
>> error[E0433]: failed to resolve: use of undeclared type `ThreadedRegistration`
   --> rust/doctests_kernel_generated.rs:1976:28
   |
   1976 |         let registration = ThreadedRegistration::register(irq, irq::flags::SHARED, "my-device", handler)?;
   |                            ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ThreadedRegistration`
   |
   help: consider importing this struct
   |
   3    + use kernel::irq::request::ThreadedRegistration;
   |
--
>> error[E0433]: failed to resolve: could not find `flags` in `irq`
   --> rust/doctests_kernel_generated.rs:1976:69
   |
   1976 |         let registration = ThreadedRegistration::register(irq, irq::flags::SHARED, "my-device", handler)?;
   |                                                                     ^^^^^ could not find `flags` in `irq`
   |
   help: consider importing this module
   |
   3    + use kernel::irq::request::flags;
   |
   help: if you import `flags`, refer to it directly
   |
   1976 -         let registration = ThreadedRegistration::register(irq, irq::flags::SHARED, "my-device", handler)?;
   1976 +         let registration = ThreadedRegistration::register(irq, flags::SHARED, "my-device", handler)?;
   |
--
>> error[E0432]: unresolved import `kernel::irq::Registration`
   --> rust/doctests_kernel_generated.rs:1934:5
   |
   1934 | use kernel::irq::Registration;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ no `Registration` in `irq`
   |
   help: consider importing one of these items instead
   |
   1934 | use kernel::irq::request::Registration;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1934 | use kernel::net::phy::Registration;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
>> error[E0432]: unresolved import `kernel::sync::lock::SpinLock`
   --> rust/doctests_kernel_generated.rs:1936:5
   |
   1936 | use kernel::sync::lock::SpinLock;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `SpinLock` in `sync::lock`
   |
   help: a similar name exists in the module
   |
   1936 | use kernel::sync::lock::spinlock;
   |                         ~~~~~~~~
   help: consider importing this type alias instead
   |
   1936 | use kernel::sync::SpinLock;
   |     ~~~~~~~~~~~~~~~~~~~~~~
--
>> error[E0405]: cannot find trait `Handler` in module `kernel::irq`
   --> rust/doctests_kernel_generated.rs:1855:19
   |
   1855 | impl kernel::irq::Handler for Handler {
   |                   ^^^^^^^ not found in `kernel::irq`
   |
   help: consider importing this trait
   |
   3    + use kernel::irq::request::Handler;
   |
   help: if you import `Handler`, refer to it directly
   |
   1855 - impl kernel::irq::Handler for Handler {
   1855 + impl Handler for Handler {
   |
..

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ