summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-10-02 15:34:57 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-10-03 13:36:27 +0200
commit8ff3c22688ff3616ee53c5c54b3ee66a73326175 (patch)
tree6c1ad0438ac6651107aba748bff75524e604fdb0 /drivers/power
parent7f9558e14cfd43999da325008262a2c6d638a527 (diff)
downloadlinux-8ff3c22688ff3616ee53c5c54b3ee66a73326175.tar.bz2
cpufreq / CPPC: Mark acpi_ids as used
Clang warns: drivers/cpufreq/cppc_cpufreq.c:431:36: warning: variable 'cppc_acpi_ids' is not needed and will not be emitted [-Wunneeded-internal-declaration] static const struct acpi_device_id cppc_acpi_ids[] = { ^ 1 warning generated. Mark the definition as used so that Clang understands we don't want this warning while not inhibiting Clang's dead code elimination from removing the unreferenced internal symbol when moving the data it contains to the globally available symbol via MODULE_DEVICE_TABLE. $ nm -S drivers/cpufreq/cppc_cpufreq.o | grep acpi | tail -1 0000000000000000 0000000000000040 R __mod_acpi__cppc_acpi_ids_device_table Suggested-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions