ACPI: scan: Move acpi_root to internal header
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 26 Jun 2023 10:55:27 +0000 (13:55 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 29 Jun 2023 08:47:37 +0000 (10:47 +0200)
Compiler is not happy about handling of acpi_root variable:

  ...drivers/acpi/bus.c:37:20: warning: symbol 'acpi_root' was not declared. Should it be static?

Move it's definition to the internal header.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/internal.h
drivers/acpi/scan.c

index 06ad497..50dcb35 100644 (file)
@@ -11,6 +11,8 @@
 
 #include <linux/idr.h>
 
+extern struct acpi_device *acpi_root;
+
 int early_acpi_osi_init(void);
 int acpi_osi_init(void);
 acpi_status acpi_os_initialize1(void);
index 1c3e1e2..e75ed91 100644 (file)
@@ -24,8 +24,6 @@
 
 #include "internal.h"
 
-extern struct acpi_device *acpi_root;
-
 #define ACPI_BUS_CLASS                 "system_bus"
 #define ACPI_BUS_HID                   "LNXSYBUS"
 #define ACPI_BUS_DEVICE_NAME           "System Bus"