ACPI, x86/boot: make acpi_nobgrt static
authorJason Yan <yanaijie@huawei.com>
Wed, 8 Apr 2020 02:44:12 +0000 (10:44 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Apr 2020 12:32:03 +0000 (14:32 +0200)
Fix the following sparse warning:

arch/x86/kernel/acpi/boot.c:48:5: warning: symbol 'acpi_nobgrt' was not
declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/kernel/acpi/boot.c

index 1ae5439a9a8544a980d0f7e064bd2b58683e4145..683ed9e12e6b8ca7f730ff33293b59eb16cbdf40 100644 (file)
@@ -45,7 +45,7 @@ EXPORT_SYMBOL(acpi_disabled);
 #define PREFIX                 "ACPI: "
 
 int acpi_noirq;                                /* skip ACPI IRQ initialization */
-int acpi_nobgrt;                       /* skip ACPI BGRT */
+static int acpi_nobgrt;                        /* skip ACPI BGRT */
 int acpi_pci_disabled;         /* skip ACPI PCI scan and IRQ initialization */
 EXPORT_SYMBOL(acpi_pci_disabled);