Skip to content

Commit 8c55654

Browse files
arndbrafaeljw
authored andcommitted
cpufreq: intel_pstate: hide unused intel_pstate_cpu_oob_ids[]
The reference to this variable is hidden in an #ifdef: drivers/cpufreq/intel_pstate.c:2440:32: error: 'intel_pstate_cpu_oob_ids' defined but not used [-Werror=unused-const-variable=] Use the same check around the definition. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent e8217b4 commit 8c55654

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,6 +2397,7 @@ static const struct x86_cpu_id intel_pstate_cpu_ids[] = {
23972397
};
23982398
MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids);
23992399

2400+
#ifdef CONFIG_ACPI
24002401
static const struct x86_cpu_id intel_pstate_cpu_oob_ids[] __initconst = {
24012402
X86_MATCH(BROADWELL_D, core_funcs),
24022403
X86_MATCH(BROADWELL_X, core_funcs),
@@ -2405,6 +2406,7 @@ static const struct x86_cpu_id intel_pstate_cpu_oob_ids[] __initconst = {
24052406
X86_MATCH(SAPPHIRERAPIDS_X, core_funcs),
24062407
{}
24072408
};
2409+
#endif
24082410

24092411
static const struct x86_cpu_id intel_pstate_cpu_ee_disable_ids[] = {
24102412
X86_MATCH(KABYLAKE, core_funcs),

0 commit comments

Comments
 (0)