public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the cpufreq-arm tree
@ 2025-04-28  1:57 Stephen Rothwell
  2025-04-29  4:48 ` Viresh Kumar
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2025-04-28  1:57 UTC (permalink / raw)
  To: Viresh Kumar; +Cc: Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1523 bytes --]

Hi all,

After merging the cpufreq-arm tree, today's linux-next build (x86_64
allmodconfig) failed like this:

error[E0308]: mismatched types
   --> rust/kernel/cpufreq.rs:950:18
    |
950 |             Some(Self::update_limits_callback)
    |             ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected fn pointer, found fn item
    |             |
    |             arguments to this enum variant are incorrect
    |
    = note: expected fn pointer `unsafe extern "C" fn(*mut bindings::cpufreq_policy)`
                  found fn item `extern "C" fn(u32) {cpufreq::Registration::<T>::update_limits_callback}`
help: the type constructed contains `extern "C" fn(u32) {cpufreq::Registration::<T>::update_limits_callback}` due to the type of the argument passed
   --> rust/kernel/cpufreq.rs:950:13
    |
950 |             Some(Self::update_limits_callback)
    |             ^^^^^----------------------------^
    |                  |
    |                  this argument influences the type of `Some`
note: tuple variant defined here
   --> /usr/lib/rustlib/src/rust/library/core/src/option.rs:580:5
    |
580 |     Some(#[stable(feature = "rust1", since = "1.0.0")] T),
    |     ^^^^

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.

Caused by commit

  c490d1f07bec ("rust: cpufreq: Extend abstractions for driver registration")

I have used the cpufreq-arm tree from next-20250424 for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* linux-next: build failure after merge of the cpufreq-arm tree
@ 2024-08-02  0:57 Stephen Rothwell
  2024-08-02  5:43 ` Viresh Kumar
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2024-08-02  0:57 UTC (permalink / raw)
  To: Viresh Kumar
  Cc: Rob Herring (Arm), Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]

Hi all,

After merging the cpufreq-arm tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:

In file included from include/linux/cpufreq.h:17,
                 from drivers/cpufreq/spear-cpufreq.c:17:
drivers/cpufreq/spear-cpufreq.c: In function 'spear_cpufreq_probe':
include/linux/of.h:1435:51: error: lvalue required as unary '&' operand
 1435 |                  of_prop_next_u32(_it.prop, NULL, &u)};                 \
      |                                                   ^
drivers/cpufreq/spear-cpufreq.c:201:9: note: in expansion of macro 'of_property_for_each_u32'
  201 |         of_property_for_each_u32(np, "cpufreq_tbl", &val)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/of.h:1437:62: error: lvalue required as unary '&' operand
 1437 |              _it.item = of_prop_next_u32(_it.prop, _it.item, &u))
      |                                                              ^
drivers/cpufreq/spear-cpufreq.c:201:9: note: in expansion of macro 'of_property_for_each_u32'
  201 |         of_property_for_each_u32(np, "cpufreq_tbl", &val)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

  e960bbac0af4 ("cpufreq: spear: Use of_property_for_each_u32() instead of open coding")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* linux-next: build failure after merge of the cpufreq-arm tree
@ 2024-03-05  0:09 Stephen Rothwell
  2024-03-05  4:35 ` Viresh Kumar
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2024-03-05  0:09 UTC (permalink / raw)
  To: Viresh Kumar
  Cc: Kathiravan Thirumoorthy, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 650 bytes --]

Hi all,

After merging the cpufreq-arm tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:

drivers/cpufreq/qcom-cpufreq-nvmem.c: In function 'qcom_cpufreq_kryo_name_version':
drivers/cpufreq/qcom-cpufreq-nvmem.c:194:14: error: 'QCOM_ID_IPQ5321' undeclared (first use in this function); did you mean 'QCOM_ID_IPQ5312'?
  194 |         case QCOM_ID_IPQ5321:
      |              ^~~~~~~~~~~~~~~
      |              QCOM_ID_IPQ5312

Caused by commit

  006af7c6958e ("cpufreq: qcom-nvmem: add support for IPQ5321")

I have used the cpufreq-arm tree from next-20240304 for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-04-29  4:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-28  1:57 linux-next: build failure after merge of the cpufreq-arm tree Stephen Rothwell
2025-04-29  4:48 ` Viresh Kumar
  -- strict thread matches above, loose matches on Subject: below --
2024-08-02  0:57 Stephen Rothwell
2024-08-02  5:43 ` Viresh Kumar
2024-03-05  0:09 Stephen Rothwell
2024-03-05  4:35 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox