ACPI: scan: Move acpi_root to internal header
PATCH 1/1 ACPI: scan: Move acpi_root to internal header
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 <[email protected]>
--- drivers/acpi/internal.h | 2 ++ drivers/acpi/scan.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/acpi/internal.h +2 -0
@@ -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 );
drivers/acpi/scan.c +0 -2
@@ -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"
Signature · 1 line
2.40.0.1.gaa8946217a0b