]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc: Mark the variable earlycon_acpi_spcr_enable maybe_unused
authorMathieu Malaterre <malat@debian.org>
Sat, 10 Mar 2018 18:06:45 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Mar 2018 16:42:55 +0000 (17:42 +0100)
commit219c7b06f3da9ac2b51ed671881b20f1b127daef
treecea1131aa6eff4d640b3642b9ffd56ce9f337764
parent7d8f68619e4f530e19c17e7c0d04f0a791891a77
powerpc: Mark the variable earlycon_acpi_spcr_enable maybe_unused

Re-use the object-like macro EARLYCON_USED_OR_UNUSED to mark
`earlycon_acpi_spcr_enable` as maybe_unused.

Fix the following warning (treated as error in W=1)

  CC      arch/powerpc/kernel/setup-common.o
In file included from ./include/linux/serial_8250.h:14:0,
                 from arch/powerpc/kernel/setup-common.c:33:
./include/linux/serial_core.h:382:19: error: ‘earlycon_acpi_spcr_enable’ defined but not used [-Werror=unused-const-variable=]
 static const bool earlycon_acpi_spcr_enable;
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serial_core.h