mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ACPI: fix undeclared variable warnings by including sleep.h
@ 2023-07-03 12:48 Ben Dooks
  2023-07-04 17:13 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2023-07-03 12:48 UTC (permalink / raw)
  To: linux-kernel, linux-acpi; +Cc: lenb, Ben Dooks

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?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 drivers/acpi/scan.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 1c3e1e2bb0b5..9556aff69453 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -23,6 +23,7 @@
 #include <linux/dma-direct.h>
 
 #include "internal.h"
+#include "sleep.h"
 
 extern struct acpi_device *acpi_root;
 
-- 
2.40.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI: fix undeclared variable warnings by including sleep.h
  2023-07-03 12:48 [PATCH] ACPI: fix undeclared variable warnings by including sleep.h Ben Dooks
@ 2023-07-04 17:13 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2023-07-04 17:13 UTC (permalink / raw)
  To: Ben Dooks; +Cc: linux-kernel, linux-acpi, lenb

On Mon, Jul 3, 2023 at 2:48 PM Ben Dooks <ben.dooks@codethink.co.uk> wrote:
>
> 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?
>
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> ---
>  drivers/acpi/scan.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
> index 1c3e1e2bb0b5..9556aff69453 100644
> --- a/drivers/acpi/scan.c
> +++ b/drivers/acpi/scan.c
> @@ -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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-04 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-03 12:48 [PATCH] ACPI: fix undeclared variable warnings by including sleep.h Ben Dooks
2023-07-04 17:13 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®