ACPI: fix undeclared variable warnings by including sleep.h
PATCH 1/1 ACPI: fix undeclared variable warnings by including sleep.h
There are two pieces of data being exported from drivers/acpi/scan.c (acpi_device_lock and acpi_wakeup_device_list) that don't have their definitions declared in anything scan.c is including.
Fix the following sparse warnings by including sleep.h to add the declarations of acpi_device_lock and acpi_wakeup_device_list to fix the followng sparse warnings:
drivers/acpi/scan.c:42:1: warning: symbol 'acpi_device_lock' was not declared. Should it be static? drivers/acpi/scan.c:43:1: warning: symbol 'acpi_wakeup_device_list' was not declared. Should it be static?
--- drivers/acpi/scan.c | 1 + 1 file changed, 1 insertion(+)
drivers/acpi/scan.c +1 -0
@@ -23,6 +23,7 @@#include <linux/dma-direct.h> #include "internal.h" +#include "sleep.h" extern struct acpi_device *acpi_root;
Signature · 1 line
2.40.1
Quoted 22 lines · Ben Dooks
There are two pieces of data being exported from
drivers/acpi/scan.c(acpi_device_lockandacpi_wakeup_device_list) that don't have their definitions declared in anythingscan.cis including.Fix the following sparse warnings by including
sleep.hto add the declarations ofacpi_device_lockandacpi_wakeup_device_listto fix the followng sparse warnings:
drivers/acpi/scan.c:42:1: warning: symbol 'acpi_device_lock' was not declared. Should it be static?drivers/acpi/scan.c:43:1: warning: symbol 'acpi_wakeup_device_list' was not declared. Should it be static?Signed-off-by Ben Dooks <[email protected]>--- drivers/acpi/scan.c | 1 + 1 file changed, 1 insertion(+)drivers/acpi/scan.c +0
-0
drivers/acpi/scan.c
Quoted 8 lines
drivers/acpi/scan.c +1
-1@@ -23,6 +23,7 @@#include <linux/dma-direct.h> #include "internal.h" +#include "sleep.h" extern struct acpi_device *acpi_root; --
Applied as 6.5-rc material, thanks!