Skip to contentSkip to conversation

ACPI: fix build warning in processor_idle.c

PATCH New Anirudh Rayabharam 1 participant 1 message Mar 31, 2021 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: fix build warning in processor_idle.c

GCC shows the following warning during build:

drivers/acpi/processor_idle.c: In function ‘acpi_idle_play_dead’:
drivers/acpi/processor_idle.c:542:15: warning: extra tokens at end of #ifdef directive

Fix by replacing "ifdef" with "if".

---
 drivers/acpi/processor_idle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/processor_idle.c +1 -1
index 19fb28a8005b..0925b1477230 100644
@@ -539,7 +539,7 @@ static int acpi_idle_play_dead(struct cpuidle_device *dev, int index)
 		} else
 			return -ENODEV;
 
-#ifdef defined(CONFIG_X86) && defined(CONFIG_HOTPLUG_CPU)
+#if defined(CONFIG_X86) && defined(CONFIG_HOTPLUG_CPU)
 		/* If NMI wants to wake up CPU0, start CPU0. */
 		if (wakeup_cpu0())
 			start_cpu0();
Signature · 1 line
2.26.2