Skip to contentSkip to conversation

linux-next: build warning after merge of the pm tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Nov 13, 2016 – Nov 14, 2016 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Rafael,

After merging the pm tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning:

drivers/cpufreq/powernv-cpufreq.c: In function 'gpstate_timer_handler':
drivers/cpufreq/powernv-cpufreq.c:642:5: warning: 'lpstate_idx' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (gpstate_idx != gpstates->last_lpstate_idx)

     ^

Introduced by commit

20b15b766354 ("cpufreq: powernv: Use PMCR to verify global and local pstate")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 1 line · Stephen Rothwell

Hi Rafael,

Hi Stephen,

Quoted 11 lines

After merging the pm tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning:

drivers/cpufreq/powernv-cpufreq.c: In function 'gpstate_timer_handler':
drivers/cpufreq/powernv-cpufreq.c:642:5: warning: 'lpstate_idx' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (gpstate_idx != gpstates->last_lpstate_idx)

     ^

Introduced by commit

20b15b766354 ("cpufreq: powernv: Use PMCR to verify global and local pstate")

Thanks for the notice!

Akshay, any thoughts?

Thanks,
Rafael

#2 lore raw

Hi Rafeal,

Good catch, I need to set lpstate_idx = gpstate_idx. I will send a patch which fixes this commit.

Thanks Stephen for reporting it. :)

Regards
Akshay Adiga

Quoted 26 lines · Rafael J. Wysocki
Quoted 1 line · Stephen Rothwell

Hi Rafael,

Hi Stephen,

Quoted 5 lines

After merging the pm tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning:

drivers/cpufreq/powernv-cpufreq.c: In function 'gpstate_timer_handler':
drivers/cpufreq/powernv-cpufreq.c:642:5: warning: 'lpstate_idx' may

be used uninitialized in this function [-Wmaybe-uninitialized]

Quoted 6 lines

if (gpstate_idx != gpstates->last_lpstate_idx)

     ^

Introduced by commit

20b15b766354 ("cpufreq: powernv: Use PMCR to verify global and

local pstate")

Thanks for the notice!

Akshay, any thoughts?

Thanks,
Rafael