]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc: Fix cpufreq statement scoping
authorJustin Hibbits <jhibbits@FreeBSD.org>
Fri, 8 Mar 2019 03:59:53 +0000 (03:59 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Fri, 8 Mar 2019 03:59:53 +0000 (03:59 +0000)
commit9ffdae0fd7a77b9a198a3330a8875f9cbef4c286
treef6b3280e16a2b8c77775bf06554ae3983532354c
parentab69c4858cb7237623cb8dddb8cfe101f50ad3d8
powerpc: Fix cpufreq statement scoping

The second statements on the lines are not guarded by the `if' condition.
This triggers a warning with newer gcc.  It's relatively harmless given the
usage, but incorrect.  Instead, wrap the statements so they're properly
guarded.

Reported by: powerpc64-gcc xtoolchain
MFC after: 1 week
sys/powerpc/cpufreq/dfs.c
sys/powerpc/cpufreq/pcr.c