[drm-misc:topic/rust-drm 12/20] error: cannot find macro `define_pci_id_table` in this scope

[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: 40ece0eeffd16953a9a20d50a4a3b35f87016556 [12/20] rust: add basic PCI driver abstractions
config: riscv-randconfig-r121-20240609 (https://download.01.org/0day-ci/archive/20240610/202406100506.3t1KzbEQ-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/202406100506.3t1KzbEQ-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/202406100506.3t1KzbEQ-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> error[E0412]: cannot find type `MyDriver` in this scope
   --> rust/doctests_kernel_generated.rs:2331:23
   |
   2331 |  impl pci::Driver for MyDriver {
   |                       ^^^^^^^^ not found in this scope
--
>> error[E0412]: cannot find type `Arc` in this scope
   --> rust/doctests_kernel_generated.rs:2332:18
   |
   2332 |      type Data = Arc<MyDeviceData>;
   |                  ^^^ not found in this scope
   |
   help: consider importing this struct
   |
   3    + use kernel::sync::Arc;
   |
--
>> error[E0412]: cannot find type `MyDeviceData` in this scope
   --> rust/doctests_kernel_generated.rs:2332:22
   |
   2332 |      type Data = Arc<MyDeviceData>;
   |                      ^^^^^^^^^^^^ not found in this scope
   |
   help: you might be missing a type parameter
   |
   2331 |  impl<MyDeviceData> pci::Driver for MyDriver {
   |      ++++++++++++++
--
>> error[E0412]: cannot find type `Arc` in this scope
   --> rust/doctests_kernel_generated.rs:2345:18
   |
   2345 |      ) -> Result<Arc<Self::Data>> {
   |                  ^^^ not found in this scope
   |
   help: consider importing this struct
   |
   3    + use kernel::sync::Arc;
   |
--
>> error[E0412]: cannot find type `MyDriver` in this scope
   --> rust/doctests_kernel_generated.rs:2355:12
   |
   2355 |      type: MyDriver,
   |            ^^^^^^^^ not found in this scope
--
>> error: missing type for `static` item
   --> rust/doctests_kernel_generated.rs:2354:2
   |
   2354 | /  kernel::module_pci_driver! {
   2355 | |      type: MyDriver,
   2356 | |      name: "Module name",
   2357 | |      author: "Author name",
   2358 | |      description: "Description",
   2359 | |      license: "GPL v2",
   2360 | |  }
   | |__^ help: provide a type for the item: `: <type>`
   |
   = note: this error originates in the macro `$crate::prelude::module` which comes from the expansion of the macro `kernel::module_pci_driver` (in Nightly builds, run with -Z macro-backtrace for more info)
--
>> error: unexpected token: `...`
   --> rust/doctests_kernel_generated.rs:2346:10
   |
   2346 |          ...
   |          ^^^
   |
   help: use `..` for an exclusive range
   |
   2346 |          ..
   |
   help: or `..=` for an inclusive range
   |
   2346 |          ..=
   |
--
>> error[E0586]: inclusive range with no end
   --> rust/doctests_kernel_generated.rs:2346:10
   |
   2346 |          ...
   |          ^^^ help: use `..` instead
   |
   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
--
>> error: unexpected token: `...`
   --> rust/doctests_kernel_generated.rs:2350:10
   |
   2350 |          ...
   |          ^^^
   |
   help: use `..` for an exclusive range
   |
   2350 |          ..
   |
   help: or `..=` for an inclusive range
   |
   2350 |          ..=
   |
--
>> error[E0586]: inclusive range with no end
   --> rust/doctests_kernel_generated.rs:2350:10
   |
   2350 |          ...
   |          ^^^ help: use `..` instead
   |
   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
--
>> error: expected one of `:`, `;`, or `=`, found `name_initcall`
   --> rust/doctests_kernel_generated.rs:2354:2
   |
   2354 | /  kernel::module_pci_driver! {
   2355 | |      type: MyDriver,
   2356 | |      name: "Module name",
   2357 | |      author: "Author name",
   2358 | |      description: "Description",
   2359 | |      license: "GPL v2",
   2360 | |  }
   | |__^ expected one of `:`, `;`, or `=`
   |
   = note: this error originates in the macro `$crate::prelude::module` which comes from the expansion of the macro `kernel::module_pci_driver` (in Nightly builds, run with -Z macro-backtrace for more info)
..

sparse warnings: (new ones prefixed by >>)
>> rust/helpers.c:203:5: sparse: sparse: symbol 'rust_helper_pci_resource_len' was not declared. Should it be static?
   rust/helpers.c:62:6: sparse: sparse: context imbalance in 'rust_helper_spin_lock' - wrong count at exit
   rust/helpers.c:68:6: sparse: sparse: context imbalance in 'rust_helper_spin_unlock' - unexpected unlock
   rust/helpers.c:172:6: sparse: sparse: context imbalance in 'rust_helper_rcu_read_lock' - wrong count at exit
   rust/helpers.c:178:6: sparse: sparse: context imbalance in 'rust_helper_rcu_read_unlock' - unexpected unlock

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