Skip to contentSkip to conversation

linux-next: build warning after merge of the pm tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Mar 31, 2021 – Apr 2, 2021 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the pm tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

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
542 | #ifdef defined(CONFIG_X86) && defined(CONFIG_HOTPLUG_CPU)
| ^

Introduced by commit

bc5706eaeae0 ("ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the pm tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

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
542 | #ifdef defined(CONFIG_X86) && defined(CONFIG_HOTPLUG_CPU)
| ^

Sigh, smaller the patch, more iterations it will take to make it right....

Rafael,

something went wrong when you folded in my "[PATCH] ACPI: processor: Fix build when !CONFIG_HOTPLUG_CPU" here. This line should be:

#if defined(CONFIG_X86) && defined(CONFIG_HOTPLUG_CPU)

(not #ifdef defined ...)

Quoted 3 lines

Introduced by commit

bc5706eaeae0 ("ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()")

Signature · 1 line
Vitaly
#2 lore raw
Quoted 16 lines · CEST Vitaly Kuznetsov
Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the pm tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

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
542 | #ifdef defined(CONFIG_X86) && defined(CONFIG_HOTPLUG_CPU)
| ^

Sigh, smaller the patch, more iterations it will take to make it right....

Quoted 6 lines

Rafael,

something went wrong when you folded in my "[PATCH] ACPI: processor: Fix build when !CONFIG_HOTPLUG_CPU" here. This line should be:

#if defined(CONFIG_X86) && defined(CONFIG_HOTPLUG_CPU)

Right, my mistake, sorry. Fixed yesterday.

Thanks!