* error[E0609]: no field `cpu` on type `&bindings::cpufreq_policy`
@ 2025-12-03 4:09 kernel test robot
2025-12-03 7:26 ` Viresh Kumar
0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2025-12-03 4:09 UTC (permalink / raw)
To: Viresh Kumar; +Cc: oe-kbuild-all, linux-kernel
Hi Viresh,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3f9f0252130e7dd60d41be0802bf58f6471c691d
commit: 6ebdd7c9317737123b260a24e2780018008f1295 rust: cpufreq: Extend abstractions for policy and driver ops
date: 7 months ago
config: arm-randconfig-r121-20251201 (https://download.01.org/0day-ci/archive/20251203/202512031219.3OgecL5W-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project b3428bb966f1de8aa48375ffee0eba04ede133b7)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251203/202512031219.3OgecL5W-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/202512031219.3OgecL5W-lkp@intel.com/
All errors (new ones prefixed by >>):
>> error[E0609]: no field `cpu` on type `&bindings::cpufreq_policy`
--> rust/kernel/cpufreq.rs:462:23
|
462 | self.as_ref().cpu
| ^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `min` on type `&bindings::cpufreq_policy`
--> rust/kernel/cpufreq.rs:468:39
|
468 | Hertz::from_khz(self.as_ref().min as usize)
| ^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `min` on type `&mut bindings::cpufreq_policy`
--> rust/kernel/cpufreq.rs:474:27
|
474 | self.as_mut_ref().min = min.as_khz() as u32;
| ^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `max` on type `&bindings::cpufreq_policy`
--> rust/kernel/cpufreq.rs:481:39
|
481 | Hertz::from_khz(self.as_ref().max as usize)
| ^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `max` on type `&mut bindings::cpufreq_policy`
--> rust/kernel/cpufreq.rs:487:27
|
487 | self.as_mut_ref().max = max.as_khz() as u32;
| ^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `cur` on type `&bindings::cpufreq_policy`
--> rust/kernel/cpufreq.rs:494:39
|
494 | Hertz::from_khz(self.as_ref().cur as usize)
| ^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `suspend_freq` on type `&bindings::cpufreq_policy`
--> rust/kernel/cpufreq.rs:500:39
|
500 | Hertz::from_khz(self.as_ref().suspend_freq as usize)
| ^^^^^^^^^^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `suspend_freq` on type `&mut bindings::cpufreq_policy`
--> rust/kernel/cpufreq.rs:506:27
|
506 | self.as_mut_ref().suspend_freq = freq.as_khz() as u32;
| ^^^^^^^^^^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `cpus` on type `&mut bindings::cpufreq_policy`
--> rust/kernel/cpufreq.rs:537:73
|
537 | unsafe { cpumask::CpumaskVar::as_mut_ref(&mut self.as_mut_ref().cpus) }
| ^^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `clk` on type `&mut bindings::cpufreq_policy`
--> rust/kernel/cpufreq.rs:549:27
|
549 | self.as_mut_ref().clk = clk.as_raw();
| ^^^ unknown field
|
= note: available field is: `_address`
--
>> error[E0609]: no field `dvfs_possible_from_any_cpu` on type `&mut bindings::cpufreq_policy`
--> rust/kernel/cpufreq.rs:556:27
|
556 | self.as_mut_ref().dvfs_possible_from_any_cpu = val;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ unknown field
|
= note: available field is: `_address`
..
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: error[E0609]: no field `cpu` on type `&bindings::cpufreq_policy`
2025-12-03 4:09 error[E0609]: no field `cpu` on type `&bindings::cpufreq_policy` kernel test robot
@ 2025-12-03 7:26 ` Viresh Kumar
2025-12-04 4:50 ` Oliver Sang
0 siblings, 1 reply; 4+ messages in thread
From: Viresh Kumar @ 2025-12-03 7:26 UTC (permalink / raw)
To: kernel test robot; +Cc: oe-kbuild-all, linux-kernel
On 03-12-25, 12:09, kernel test robot wrote:
> Hi Viresh,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 3f9f0252130e7dd60d41be0802bf58f6471c691d
> commit: 6ebdd7c9317737123b260a24e2780018008f1295 rust: cpufreq: Extend abstractions for policy and driver ops
> date: 7 months ago
> config: arm-randconfig-r121-20251201 (https://download.01.org/0day-ci/archive/20251203/202512031219.3OgecL5W-lkp@intel.com/config)
> compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project b3428bb966f1de8aa48375ffee0eba04ede133b7)
> rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251203/202512031219.3OgecL5W-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/202512031219.3OgecL5W-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> >> error[E0609]: no field `cpu` on type `&bindings::cpufreq_policy`
> --> rust/kernel/cpufreq.rs:462:23
> |
> 462 | self.as_ref().cpu
> | ^^^ unknown field
Is this still the case ? I wasn't able to reproduce the LKP setup, getting some
failures. Can you provide: rust/bindings/bindings_generated.rs from the build
folder ?
--
viresh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: error[E0609]: no field `cpu` on type `&bindings::cpufreq_policy`
2025-12-03 7:26 ` Viresh Kumar
@ 2025-12-04 4:50 ` Oliver Sang
2025-12-04 5:14 ` Viresh Kumar
0 siblings, 1 reply; 4+ messages in thread
From: Oliver Sang @ 2025-12-04 4:50 UTC (permalink / raw)
To: Viresh Kumar; +Cc: kernel test robot, oe-kbuild-all, linux-kernel, oliver.sang
hi, Viresh,
On Wed, Dec 03, 2025 at 12:56:10PM +0530, Viresh Kumar wrote:
> On 03-12-25, 12:09, kernel test robot wrote:
> > Hi Viresh,
> >
> > FYI, the error/warning still remains.
> >
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: 3f9f0252130e7dd60d41be0802bf58f6471c691d
> > commit: 6ebdd7c9317737123b260a24e2780018008f1295 rust: cpufreq: Extend abstractions for policy and driver ops
> > date: 7 months ago
> > config: arm-randconfig-r121-20251201 (https://download.01.org/0day-ci/archive/20251203/202512031219.3OgecL5W-lkp@intel.com/config)
> > compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project b3428bb966f1de8aa48375ffee0eba04ede133b7)
> > rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251203/202512031219.3OgecL5W-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/202512031219.3OgecL5W-lkp@intel.com/
> >
> > All errors (new ones prefixed by >>):
> >
> > >> error[E0609]: no field `cpu` on type `&bindings::cpufreq_policy`
> > --> rust/kernel/cpufreq.rs:462:23
> > |
> > 462 | self.as_ref().cpu
> > | ^^^ unknown field
>
> Is this still the case ? I wasn't able to reproduce the LKP setup, getting some
> failures. Can you provide: rust/bindings/bindings_generated.rs from the build
> folder ?
sorry for false positive. we confirmed this is an issue caused by a bug in
bindgen - https://github.com/rust-lang/rust-bindgen/issues/3264
after we upgrading to bindgen-0.72.1, the issue gone.
>
> --
> viresh
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: error[E0609]: no field `cpu` on type `&bindings::cpufreq_policy`
2025-12-04 4:50 ` Oliver Sang
@ 2025-12-04 5:14 ` Viresh Kumar
0 siblings, 0 replies; 4+ messages in thread
From: Viresh Kumar @ 2025-12-04 5:14 UTC (permalink / raw)
To: Oliver Sang; +Cc: kernel test robot, oe-kbuild-all, linux-kernel
On 04-12-25, 12:50, Oliver Sang wrote:
> hi, Viresh,
>
> On Wed, Dec 03, 2025 at 12:56:10PM +0530, Viresh Kumar wrote:
> > On 03-12-25, 12:09, kernel test robot wrote:
> > > Hi Viresh,
> > >
> > > FYI, the error/warning still remains.
> > >
> > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > > head: 3f9f0252130e7dd60d41be0802bf58f6471c691d
> > > commit: 6ebdd7c9317737123b260a24e2780018008f1295 rust: cpufreq: Extend abstractions for policy and driver ops
> > > date: 7 months ago
> > > config: arm-randconfig-r121-20251201 (https://download.01.org/0day-ci/archive/20251203/202512031219.3OgecL5W-lkp@intel.com/config)
> > > compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project b3428bb966f1de8aa48375ffee0eba04ede133b7)
> > > rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
> > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251203/202512031219.3OgecL5W-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/202512031219.3OgecL5W-lkp@intel.com/
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > > >> error[E0609]: no field `cpu` on type `&bindings::cpufreq_policy`
> > > --> rust/kernel/cpufreq.rs:462:23
> > > |
> > > 462 | self.as_ref().cpu
> > > | ^^^ unknown field
> >
> > Is this still the case ? I wasn't able to reproduce the LKP setup, getting some
> > failures. Can you provide: rust/bindings/bindings_generated.rs from the build
> > folder ?
>
> sorry for false positive. we confirmed this is an issue caused by a bug in
> bindgen - https://github.com/rust-lang/rust-bindgen/issues/3264
>
> after we upgrading to bindgen-0.72.1, the issue gone.
Thanks Oliver.
--
viresh
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-12-04 5:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-03 4:09 error[E0609]: no field `cpu` on type `&bindings::cpufreq_policy` kernel test robot
2025-12-03 7:26 ` Viresh Kumar
2025-12-04 4:50 ` Oliver Sang
2025-12-04 5:14 ` Viresh Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox