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: <202601202126.NVP5cs8k-lkp@intel.com>
Date: Tue, 20 Jan 2026 21:37:11 +0800
From: kernel test robot <lkp@...el.com>
To: Zhi Wang <zhiw@...dia.com>, rust-for-linux@...r.kernel.org,
	linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev, dakr@...nel.org,
	aliceryhl@...gle.com, bhelgaas@...gle.com, kwilczynski@...nel.org,
	ojeda@...nel.org, alex.gaynor@...il.com, boqun.feng@...il.com,
	gary@...yguo.net, bjorn3_gh@...tonmail.com, lossin@...nel.org,
	a.hindborg@...nel.org, tmgross@...ch.edu, markus.probst@...teo.de,
	helgaas@...nel.org, cjia@...dia.com, smitra@...dia.com,
	ankita@...dia.com, aniketa@...dia.com, kwankhede@...dia.com,
	targupta@...dia.com, acourbot@...dia.com, joelagnelf@...dia.com,
	jhubbard@...dia.com, zhiwang@...nel.org,
	daniel.almeida@...labora.com, Zhi Wang <zhiw@...dia.com>
Subject: Re: [PATCH v10 2/5] rust: io: separate generic I/O helpers from MMIO
 implementation

Hi Zhi,

kernel test robot noticed the following build errors:

[auto build test ERROR on driver-core/driver-core-testing]
[also build test ERROR on driver-core/driver-core-next]
[cannot apply to driver-core/driver-core-linus pci/next pci/for-linus drm-rust/drm-rust-next linus/master v6.19-rc6 next-20260119]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Zhi-Wang/rust-devres-style-for-imports/20260120-042526
base:   driver-core/driver-core-testing
patch link:    https://lore.kernel.org/r/20260119202250.870588-3-zhiw%40nvidia.com
patch subject: [PATCH v10 2/5] rust: io: separate generic I/O helpers from MMIO implementation
config: x86_64-buildonly-randconfig-004-20260120 (https://download.01.org/0day-ci/archive/20260120/202601202126.NVP5cs8k-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260120/202601202126.NVP5cs8k-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/202601202126.NVP5cs8k-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error[E0599]: no method named `try_read32` found for reference `&Mmio<176>` in the current scope
   --> drivers/pwm/pwm_th1520.rs:241:26
   |
   241 |         let ctrl = iomap.try_read32(th1520_pwm_ctrl(hwpwm))?;
   |                          ^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
   help: trait `Io` which provides `try_read32` is implemented but not in scope; perhaps you want to import it
   |
   23  + use kernel::io::Io;
   |
   help: there is a method `try_read` with a similar name
   |
   241 -         let ctrl = iomap.try_read32(th1520_pwm_ctrl(hwpwm))?;
   241 +         let ctrl = iomap.try_read(th1520_pwm_ctrl(hwpwm))?;
   |
--
>> error[E0599]: no method named `try_read32` found for reference `&Mmio<176>` in the current scope
   --> drivers/pwm/pwm_th1520.rs:242:35
   |
   242 |         let period_cycles = iomap.try_read32(th1520_pwm_per(hwpwm))?;
   |                                   ^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
   help: trait `Io` which provides `try_read32` is implemented but not in scope; perhaps you want to import it
   |
   23  + use kernel::io::Io;
   |
   help: there is a method `try_read` with a similar name
   |
   242 -         let period_cycles = iomap.try_read32(th1520_pwm_per(hwpwm))?;
   242 +         let period_cycles = iomap.try_read(th1520_pwm_per(hwpwm))?;
   |
--
>> error[E0599]: no method named `try_write32` found for reference `&Mmio<176>` in the current scope
   --> drivers/pwm/pwm_th1520.rs:294:15
   |
   294 |         iomap.try_write32(
   |         ------^^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
   help: trait `Io` which provides `try_write32` is implemented but not in scope; perhaps you want to import it
   |
   23  + use kernel::io::Io;
   |
   help: there is a method `try_write` with a similar name
   |
   294 -         iomap.try_write32(
   294 +         iomap.try_write(
   |
--
>> error[E0599]: no method named `try_write32` found for reference `&Mmio<176>` in the current scope
   --> drivers/pwm/pwm_th1520.rs:302:19
   |
   302 |             iomap.try_write32(wfhw.ctrl_val | TH1520_PWM_START, th1520_pwm_ctrl(hwpwm))?;
   |                   ^^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
   help: trait `Io` which provides `try_write32` is implemented but not in scope; perhaps you want to import it
   |
   23  + use kernel::io::Io;
   |
   help: there is a method `try_write` with a similar name
   |
   302 -             iomap.try_write32(wfhw.ctrl_val | TH1520_PWM_START, th1520_pwm_ctrl(hwpwm))?;
   302 +             iomap.try_write(wfhw.ctrl_val | TH1520_PWM_START, th1520_pwm_ctrl(hwpwm))?;
   |
--
>> error[E0599]: no method named `try_read32` found for reference `&Mmio<176>` in the current scope
   --> drivers/pwm/pwm_th1520.rs:243:33
   |
   243 |         let duty_cycles = iomap.try_read32(th1520_pwm_fp(hwpwm))?;
   |                                 ^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
   help: trait `Io` which provides `try_read32` is implemented but not in scope; perhaps you want to import it
   |
   23  + use kernel::io::Io;
   |
   help: there is a method `try_read` with a similar name
   |
   243 -         let duty_cycles = iomap.try_read32(th1520_pwm_fp(hwpwm))?;
   243 +         let duty_cycles = iomap.try_read(th1520_pwm_fp(hwpwm))?;
   |
--
>> error[E0599]: no method named `try_read32` found for reference `&Mmio<176>` in the current scope
   --> drivers/pwm/pwm_th1520.rs:275:33
   |
   275 |         let duty_cycles = iomap.try_read32(th1520_pwm_fp(hwpwm))?;
   |                                 ^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
   help: trait `Io` which provides `try_read32` is implemented but not in scope; perhaps you want to import it
   |
   23  + use kernel::io::Io;
   |
   help: there is a method `try_read` with a similar name
   |
   275 -         let duty_cycles = iomap.try_read32(th1520_pwm_fp(hwpwm))?;
   275 +         let duty_cycles = iomap.try_read(th1520_pwm_fp(hwpwm))?;
   |
--
>> error[E0599]: no method named `try_write32` found for reference `&Mmio<176>` in the current scope
   --> drivers/pwm/pwm_th1520.rs:281:23
   |
   281 |                 iomap.try_write32(wfhw.ctrl_val, th1520_pwm_ctrl(hwpwm))?;
   |                       ^^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
   help: trait `Io` which provides `try_write32` is implemented but not in scope; perhaps you want to import it
   |
   23  + use kernel::io::Io;
   |
   help: there is a method `try_write` with a similar name
   |
   281 -                 iomap.try_write32(wfhw.ctrl_val, th1520_pwm_ctrl(hwpwm))?;
   281 +                 iomap.try_write(wfhw.ctrl_val, th1520_pwm_ctrl(hwpwm))?;
   |
--
>> error[E0599]: no method named `try_write32` found for reference `&Mmio<176>` in the current scope
   --> drivers/pwm/pwm_th1520.rs:282:23
   |
   282 |                 iomap.try_write32(0, th1520_pwm_fp(hwpwm))?;
   |                       ^^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
   help: trait `Io` which provides `try_write32` is implemented but not in scope; perhaps you want to import it
   |
   23  + use kernel::io::Io;
   |
   help: there is a method `try_write` with a similar name
   |
   282 -                 iomap.try_write32(0, th1520_pwm_fp(hwpwm))?;
   282 +                 iomap.try_write(0, th1520_pwm_fp(hwpwm))?;
   |
--
>> error[E0599]: no method named `try_write32` found for reference `&Mmio<176>` in the current scope
   --> drivers/pwm/pwm_th1520.rs:283:23
   |
   283 |                 iomap.try_write32(
   |                 ------^^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
   help: trait `Io` which provides `try_write32` is implemented but not in scope; perhaps you want to import it
   |
   23  + use kernel::io::Io;
   |
   help: there is a method `try_write` with a similar name
   |
   283 -                 iomap.try_write32(
   283 +                 iomap.try_write(
   |
--
>> error[E0599]: no method named `try_write32` found for reference `&Mmio<176>` in the current scope
   --> drivers/pwm/pwm_th1520.rs:291:15
   |
   291 |         iomap.try_write32(wfhw.ctrl_val, th1520_pwm_ctrl(hwpwm))?;
   |               ^^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
   help: trait `Io` which provides `try_write32` is implemented but not in scope; perhaps you want to import it
   |
   23  + use kernel::io::Io;
   |
   help: there is a method `try_write` with a similar name
   |
   291 -         iomap.try_write32(wfhw.ctrl_val, th1520_pwm_ctrl(hwpwm))?;
   291 +         iomap.try_write(wfhw.ctrl_val, th1520_pwm_ctrl(hwpwm))?;
   |
--
>> error[E0599]: no method named `try_write32` found for reference `&Mmio<176>` in the current scope
   --> drivers/pwm/pwm_th1520.rs:292:15
   |
   292 |         iomap.try_write32(wfhw.period_cycles, th1520_pwm_per(hwpwm))?;
   |               ^^^^^^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
   help: trait `Io` which provides `try_write32` is implemented but not in scope; perhaps you want to import it
   |
   23  + use kernel::io::Io;
   |
   help: there is a method `try_write` with a similar name
   |
   292 -         iomap.try_write32(wfhw.period_cycles, th1520_pwm_per(hwpwm))?;
   292 +         iomap.try_write(wfhw.period_cycles, th1520_pwm_per(hwpwm))?;
   |
..

-- 
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