Messages in this thread |  | | Date | Sat, 16 May 2026 00:45:57 +0800 | | From | kernel test robot <> | | Subject | Re: [PATCH] rust: io: convert `PhysAddr` type alias to newtype |
| |
Hi Albab,
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 driver-core/driver-core-linus rust/rust-next linus/master v7.1-rc3 next-20260508] [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/Albab-Hasan/rust-io-convert-PhysAddr-type-alias-to-newtype/20260515-155255 base: driver-core/driver-core-testing patch link: https://lore.kernel.org/r/20260504045714.59248-1-albabhasan276%40gmail.com patch subject: [PATCH] rust: io: convert `PhysAddr` type alias to newtype config: loongarch-randconfig-002-20260515 (https://download.01.org/0day-ci/archive/20260516/202605160005.NTpIKu0B-lkp@intel.com/config) compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3) rustc: rustc 1.88.0 (6b00bc388 2025-06-23) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260516/202605160005.NTpIKu0B-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@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202605160005.NTpIKu0B-lkp@intel.com/
All errors (new ones prefixed by >>):
>> error[E0308]: mismatched types --> rust/kernel/io/mem.rs:257:43 | 257 | unsafe { bindings::ioremap_np(res_start, size) } | -------------------- ^^^^^^^^^ expected `u64`, found `PhysAddr` | | | arguments to this function are incorrect | note: function defined here --> rust/bindings/bindings_helpers_generated.rs:1272:12 | 1272 | pub fn ioremap_np(offset: phys_addr_t, size: usize) -> *mut ffi::c_void; | ^^^^^^^^^^ help: call `Into::into` on this expression to convert `PhysAddr` into `u64` | 257 | unsafe { bindings::ioremap_np(res_start.into(), size) } | +++++++ -- >> error[E0308]: mismatched types --> rust/kernel/io/mem.rs:262:40 | 262 | unsafe { bindings::ioremap(res_start, size) } | ----------------- ^^^^^^^^^ expected `u64`, found `PhysAddr` | | | arguments to this function are incorrect | note: function defined here --> rust/bindings/bindings_helpers_generated.rs:1268:12 | 1268 | pub fn ioremap(offset: phys_addr_t, size: usize) -> *mut ffi::c_void; | ^^^^^^^ help: call `Into::into` on this expression to convert `PhysAddr` into `u64` | 262 | unsafe { bindings::ioremap(res_start.into(), size) } | +++++++
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
|  |