linux-next: build warning after merge of the pm tree
Hi Rafael,
After merging the pm tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:
drivers/of/base.c: In function 'of_property_read_string_array':drivers/of/base.c:1472:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Introduced by commit ef23586751cd ("Driver core: Unified device properties interface for platform firmware"). Please don't ignore new warnings ...
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 1 line · Stephen Rothwell
Hi Rafael,
Hi,
Quoted 10 lines
After merging the pm tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
drivers/of/base.c: In function 'of_property_read_string_array':drivers/of/base.c:1472:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^Introduced by commit
ef23586751cd("Driver core: Unified device properties interface for platform firmware").
Thanks for reporting this!
Quoted 1 line
Please don't ignore new warnings ...
I don't as a rule. I'm not sure why I haven't seen that before (and the kbuild robot reports BUILD SUCCESS for that branch).
Rafael
Quoted 16 lines · Rafael J. Wysocki
Quoted 1 line · Stephen Rothwell
Hi Rafael,
Hi,
Quoted 10 lines
After merging the pm tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
drivers/of/base.c: In function 'of_property_read_string_array':drivers/of/base.c:1472:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^Introduced by commit
ef23586751cd("Driver core: Unified device properties interface for platform firmware").
Quoted 6 lines
Thanks for reporting this!
Quoted 1 line
Please don't ignore new warnings ...
I don't as a rule. I'm not sure why I haven't seen that before (and the kbuild robot reports BUILD SUCCESS for that branch).
I do find the build error id:
-rw-rw-r-- 1 kbuild kbuild 272 2014-10-29 23:11 /kbuild-tests/build-error/drivers-of-base.c:warning:control-reaches-end-of-non-void-function
However there happens to be an old one half year ago. Since I never delete old warnings, it prevents the reporting of the new warning on your tree..
% cat /kbuild-tests/build-error/drivers-of-base.c:warning:control-reaches-end-of-non-void-function drivers/of/base.c:1147:1: warning: control reaches end of non-void function [-Wreturn-type]
2014-04-17 02:59:49 lkp-ib04 socfpga-nex:socfpga_for_next_dts_overlays:bdb1f0c2cbe39db8f4a2ac4794001ba2e99cb65b i386-randconfig-i001-0414 f11752c03ccfd747a1f0740955682a
304933361c
The easiest way to fix it is to delete any old error/warnings that have been *inactive* for more than 2 months (which means they are likely fixed).
Thanks,
Fengguang
Quoted 35 lines · Fengguang Wu
Quoted 16 lines · Rafael J. Wysocki
Quoted 1 line · Stephen Rothwell
Hi Rafael,
Hi,
Quoted 10 lines
After merging the pm tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:
drivers/of/base.c: In function 'of_property_read_string_array':drivers/of/base.c:1472:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^Introduced by commit
ef23586751cd("Driver core: Unified device properties interface for platform firmware").Quoted 6 lines
Thanks for reporting this!
Quoted 1 line
Please don't ignore new warnings ...
I don't as a rule. I'm not sure why I haven't seen that before (and the kbuild robot reports BUILD SUCCESS for that branch).
I do find the build error id:
-rw-rw-r-- 1 kbuild kbuild 272 2014-10-29 23:11 /kbuild-tests/build-error/drivers-of-base.c:warning:control-reaches-end-of-non-void-function
However there happens to be an old one half year ago. Since I never delete old warnings, it prevents the reporting of the new warning on your tree..
% cat /kbuild-tests/build-error/drivers-of-base.c:warning:control-reaches-end-of-non-void-function
drivers/of/base.c:1147:1: warning: control reaches end of non-void function [-Wreturn-type]
Quoted 6 lines
2014-04-17 02:59:49 lkp-ib04 socfpga-nex:socfpga_for_next_dts_overlays:bdb1f0c2cbe39db8f4a2ac4794001ba2e99cb65b i386-randconfig-i001-0414 f11752c03ccfd747a1f0740955682a
304933361cThe easiest way to fix it is to delete any old error/warnings that have been *inactive* for more than 2 months (which means they are likely fixed).
That could be done more aggressively even in my view. If something is inactive for two weeks, then it probably has been fixed (this way or another).
Kind regards,
Rafael