Skip to contentSkip to conversation

error[E0425]: cannot find function `pm_runtime_barrier` in crate `bindings`

PATCH kernel test robot 1 participant 1 message Nov 5

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git test/sound-rust-v7.3
head:   070444a8abf14da700680a5331d0a95cd11e578b
commit: d5dd8d4a1fbe95ad79dc47b8b6606b6fcece0c82 [7/56] rust: add runtime PM support
config: s390-randconfig-2000-20261105 (https://download.01.org/0day-ci/archive/20261105/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 0fa861dbbf46e5a75f621406fd91cb015d8754bf)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261105/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All error/warnings (new ones prefixed by >>):

>> error[E0425]: cannot find function `pm_runtime_barrier` in crate `bindings`

--> rust/kernel/pm.rs:1004:23
|
1004 | bindings::pm_runtime_barrier(self.ctx.inner.dev.as_raw());
| ^^^^^^^^^^^^^^^^^^
|
::: rust/bindings/bindings_helpers_generated.rs:1555:5 |
1555 | pub fn pm_runtime_active(dev: *mut device) -> bool_;
| ---------------------------------------------------- similarly named function pm_runtime_active defined here
|
help: a function with a similar name exists
|
1004 - bindings::pm_runtime_barrier(self.ctx.inner.dev.as_raw());
1004 + bindings::pm_runtime_active(self.ctx.inner.dev.as_raw());
|
--

>> warning: unused variable: `dev`

--> rust/kernel/pm.rs:380:15
|
380 | fn active(dev: &device::Device<device::Bound>) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: _dev
|
= note: #[warn(unused_variables)] (part of #[warn(unused)]) on by default
--

>> warning: unused variable: `dev`

--> rust/kernel/pm.rs:385:18
|
385 | fn suspended(dev: &device::Device<device::Bound>) -> bool {
| ^^^ help: if this is intentional, prefix it with an underscore: _dev
--

>> warning: unused variable: `dev`

--> rust/kernel/pm.rs:408:22
|
408 | fn get_if_active(dev: &device::Device<device::Bound>) -> Result {
| ^^^ help: if this is intentional, prefix it with an underscore: _dev
--

>> warning: unused variable: `dev`

--> rust/kernel/pm.rs:416:24
|
416 | fn runtime_disable(dev: &device::Device<device::Bound>) {}
| ^^^ help: if this is intentional, prefix it with an underscore: _dev
--

>> error[E0425]: cannot find function `__pm_runtime_disable` in crate `bindings`

--> rust/kernel/pm.rs:1003:23
|
1003 | bindings::__pm_runtime_disable(self.ctx.inner.dev.as_raw(), true);
| ^^^^^^^^^^^^^^^^^^^^ not found in bindings

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