linux-next: build failure after merge of the cpufreq-arm tree
Subsystems (2)
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")
Signature · 2 lines
Cheers, Stephen Rothwell
Viresh Kumar
maintainerQuoted 18 lines · Stephen Rothwell
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,
fromdrivers/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'
Quoted 6 lines
201 | of_property_for_each_u32(np, "cpufreq_tbl", &val) | ^~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
e960bbac0af4("cpufreq: spear: Useof_property_for_each_u32()instead of open coding")
Fixed as:
drivers/cpufreq/spear-cpufreq.c +1 -1
@@ -198,7 +198,7 @@ static int spear_cpufreq_probe(struct platform_device *pdev) goto out_put_node; } -of_property_for_each_u32 (np,"cpufreq_tbl" , &val) +of_property_for_each_u32 (np,"cpufreq_tbl" , val) freq_tbl[i].frequency = val; freq_tbl[cnt].frequency =CPUFREQ_TABLE_END ;
Signature · 1 line
viresh