Skip to content

Commit 7ba6b73

Browse files
andy-shevrafaeljw
authored andcommitted
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]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent bb69505 commit 7ba6b73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/acpi/internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
#include <linux/idr.h>
1313

14+
extern struct acpi_device *acpi_root;
15+
1416
int early_acpi_osi_init(void);
1517
int acpi_osi_init(void);
1618
acpi_status acpi_os_initialize1(void);

drivers/acpi/scan.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424

2525
#include "internal.h"
2626

27-
extern struct acpi_device *acpi_root;
28-
2927
#define ACPI_BUS_CLASS "system_bus"
3028
#define ACPI_BUS_HID "LNXSYBUS"
3129
#define ACPI_BUS_DEVICE_NAME "System Bus"

0 commit comments

Comments
 (0)