diff options
author | Lee Jones <lee.jones@linaro.org> | 2020-07-15 09:26:31 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-07-15 15:17:06 +0200 |
commit | 638b509795a18c88ce391fb94d9191f1abcfe88d (patch) | |
tree | f95e1a3a99f66addf3fab06a076833e49160c432 /drivers/cpufreq/pcc-cpufreq.c | |
parent | a7b909376d3994ffb983a4037dd12689159fd4fb (diff) | |
download | linux-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 'drivers/cpufreq/pcc-cpufreq.c')
0 files changed, 0 insertions, 0 deletions