[drm-misc:topic/rust-drm 11/20] error: expected one of `:`, `@`, or `|`, found `paddr`

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://anongit.freedesktop.org/drm/drm-misc topic/rust-drm
head:   508348922df19178b613531fb6cc7beb624642ae
commit: e98a3de09cfc9fae923c259a48e3622cc2a6bb2e [11/20] rust: add devres abstraction
config: riscv-randconfig-r121-20240609 (https://download.01.org/0day-ci/archive/20240610/202406100042.hx2LJmfc-lkp@xxxxxxxxx/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project d7d2d4f53fc79b4b58e8d8d08151b577c3699d4a)
reproduce: (https://download.01.org/0day-ci/archive/20240610/202406100042.hx2LJmfc-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406100042.hx2LJmfc-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> error: expected one of `:`, `@`, or `|`, found `paddr`
   --> rust/doctests_kernel_generated.rs:793:18
   |
   793 |     fn new(usize paddr, usize len) -> Result<Self>{
   |            ------^^^^^
   |            |     |
   |            |     expected one of `:`, `@`, or `|`
   |            help: declare the type after the parameter binding: `<identifier>: <type>`
--
>> error: expected one of `:`, `@`, or `|`, found `len`
   --> rust/doctests_kernel_generated.rs:793:31
   |
   793 |     fn new(usize paddr, usize len) -> Result<Self>{
   |                         ------^^^
   |                         |     |
   |                         |     expected one of `:`, `@`, or `|`
   |                         help: declare the type after the parameter binding: `<identifier>: <type>`
--
>> error[E0412]: cannot find type `IoMem` in this scope
   --> rust/doctests_kernel_generated.rs:790:16
   |
   790 | struct IoRemap(IoMem);
   |                ^^^^^ not found in this scope
--
>> error[E0405]: cannot find trait `Deref` in this scope
   --> rust/doctests_kernel_generated.rs:808:6
   |
   808 | impl Deref for IoRemap {
   |      ^^^^^ not found in this scope
   |
   help: consider importing this trait
   |
   3   + use core::ops::Deref;
   |
--
>> error[E0412]: cannot find type `IoMem` in this scope
   --> rust/doctests_kernel_generated.rs:809:18
   |
   809 |    type Target = IoMem;
   |                  ^^^^^ not found in this scope
--
>> error[E0425]: cannot find value `dev` in this scope
   --> rust/doctests_kernel_generated.rs:816:26
   |
   816 | let devres = Devres::new(dev, IoRemap::new(0xBAAAAAAD, 0x4)?, GFP_KERNEL)?;
   |                          ^^^ not found in this scope
--
>> error[E0433]: failed to resolve: use of undeclared type `IoMem`
   --> rust/doctests_kernel_generated.rs:796:21
   |
   796 |         let iomem = IoMem::new(addr, len)?;
   |                     ^^^^^ use of undeclared type `IoMem`

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



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux