summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2020-07-15 09:26:31 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-07-15 15:17:06 +0200
commit638b509795a18c88ce391fb94d9191f1abcfe88d (patch)
treef95e1a3a99f66addf3fab06a076833e49160c432 /block
parenta7b909376d3994ffb983a4037dd12689159fd4fb (diff)
downloadlinux-stable-638b509795a18c88ce391fb94d9191f1abcfe88d.tar.gz
linux-stable-638b509795a18c88ce391fb94d9191f1abcfe88d.tar.bz2
linux-stable-638b509795a18c88ce391fb94d9191f1abcfe88d.zip
cpufreq: powernow-k8: Mark 'hi' and 'lo' dummy variables as __always_unused
if we fail to use a variable, even a dummy ones, then the compiler complains that it is set but not used. We know this is fine, so we set them as __always_unused here to let the compiler know. Fixes the following W=1 kernel build warning(s): drivers/cpufreq/powernow-k8.c: In function ‘pending_bit_stuck’: drivers/cpufreq/powernow-k8.c:89:10: warning: variable ‘hi’ set but not used [-Wunused-but-set-variable] 89 | u32 lo, hi; | ^~ drivers/cpufreq/powernow-k8.c: In function ‘core_voltage_pre_transition’: drivers/cpufreq/powernow-k8.c:285:14: warning: variable ‘lo’ set but not used [-Wunused-but-set-variable] 285 | u32 maxvid, lo, rvomult = 1; | ^~ Signed-off-by: Lee Jones <lee.jones@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions