[drm-misc:topic/rust-drm 10/18] error[E0425]: cannot find function `my_get_param_handler` 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:   42abbd1bc1f3362a9adee3d05e54518de90f2205
commit: 6f60fd0a4eca6108d590543d3ce3707706dedaa2 [10/18] rust: drm: ioctl: Add DRM ioctl abstraction
config: x86_64-randconfig-r113-20240315 (https://download.01.org/0day-ci/archive/20240316/202403161916.bAUNmINI-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240316/202403161916.bAUNmINI-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/202403161916.bAUNmINI-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> error: expected one of `->`, `where`, or `{`, found `}`
   --> rust/doctests_kernel_generated.rs:352:1
   |
   348 | fn foo(device: &kernel::drm::device::Device<Self>,
   |    --- while parsing this `fn`
   ...
   351 | )
   |  - expected one of `->`, `where`, or `{`
   352 | } _doctest_main__kbuild_src_consumer_rust_kernel_drm_ioctl_rs_81_0() }
   | ^ unexpected token
--
>> error: free function without a body
   --> rust/doctests_kernel_generated.rs:348:1
   |
   348 | / fn foo(device: &kernel::drm::device::Device<Self>,
   349 | |        data: &mut bindings::argument_type,
   350 | |        file: &kernel::drm::file::File<Self::File>,
   351 | | )
   | | ^- help: provide a definition for the function: `{ <body> }`
   | |_|
   |
--
>> error[E0425]: cannot find function `my_get_param_handler` in this scope
   --> rust/doctests_kernel_generated.rs:400:61
   |
   400 |     (FOO_GET_PARAM, drm_foo_get_param, ioctl::RENDER_ALLOW, my_get_param_handler),
   |                                                             ^^^^^^^^^^^^^^^^^^^^ not found in this scope
--
>> error[E0599]: no method named `to_errno` found for type `u32` in the current scope
   --> rust/doctests_kernel_generated.rs:399:1
   |
   399 | / kernel::declare_drm_ioctls! {
   400 | |     (FOO_GET_PARAM, drm_foo_get_param, ioctl::RENDER_ALLOW, my_get_param_handler),
   401 | | }
   | |_^ method not found in `u32`
   |
   = note: this error originates in the macro `kernel::declare_drm_ioctls` (in Nightly builds, run with -Z macro-backtrace for more info)
--
>> error[E0433]: failed to resolve: use of undeclared crate or module `bindings`
   --> rust/doctests_kernel_generated.rs:349:19
   |
   349 |        data: &mut bindings::argument_type,
   |                   ^^^^^^^^ use of undeclared crate or module `bindings`
--
>> error[E0433]: failed to resolve: `Self` is only available in impls, traits, and type definitions
   --> rust/doctests_kernel_generated.rs:350:39
   |
   350 |        file: &kernel::drm::file::File<Self::File>,
   |                                       ^^^^ `Self` is only available in impls, traits, and type definitions
--
>> error[E0411]: cannot find type `Self` in this scope
   --> rust/doctests_kernel_generated.rs:348:45
   |
   348 | fn foo(device: &kernel::drm::device::Device<Self>,
   |    --- `Self` not allowed in a function     ^^^^ `Self` is only available in impls, traits, and type definitions
--
>> error[E0425]: cannot find value `DRM_IOCTL_FOO_GET_PARAM` in this scope
   --> rust/doctests_kernel_generated.rs:400:6
   |
   400 |     (FOO_GET_PARAM, drm_foo_get_param, ioctl::RENDER_ALLOW, my_get_param_handler),
   |      ^^^^^^^^^^^^^ not found in this scope
--
>> error[E0412]: cannot find type `drm_foo_get_param` in crate `$crate::uapi`
   --> rust/doctests_kernel_generated.rs:400:21
   |
   400 |     (FOO_GET_PARAM, drm_foo_get_param, ioctl::RENDER_ALLOW, my_get_param_handler),
   |                     ^^^^^^^^^^^^^^^^^ not found in `$crate::uapi`
--
>> error[E0433]: failed to resolve: use of undeclared crate or module `ioctl`
   --> rust/doctests_kernel_generated.rs:400:40
   |
   400 |     (FOO_GET_PARAM, drm_foo_get_param, ioctl::RENDER_ALLOW, my_get_param_handler),
   |                                        ^^^^^ use of undeclared crate or module `ioctl`
   |
   help: consider importing this module
   |
   3   + use kernel::drm::ioctl;
   |

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