linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PM: sleep: include <linux/pm_runtime.h> for pm_wq
@ 2019-10-08 10:46 Ben Dooks
  2019-10-10 22:02 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2019-10-08 10:46 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-kernel, linux-pm, Rafael J . Wysocki, Len Brown,
	Pavel Machek, Ben Dooks

Include the <linux/runtime_pm.h> for the definition of
pm_wq to avoid the following warning:

kernel/power/main.c:890:25: warning: symbol 'pm_wq' was not declared. Should it be static?

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

diff --git a/kernel/power/main.c b/kernel/power/main.c
index e8710d179b35..e26de7af520b 100644
--- a/kernel/power/main.c
+++ b/kernel/power/main.c
@@ -15,6 +15,7 @@
 #include <linux/seq_file.h>
 #include <linux/suspend.h>
 #include <linux/syscalls.h>
+#include <linux/pm_runtime.h>
 
 #include "power.h"
 
-- 
2.23.0


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

* Re: [PATCH] PM: sleep: include <linux/pm_runtime.h> for pm_wq
  2019-10-08 10:46 [PATCH] PM: sleep: include <linux/pm_runtime.h> for pm_wq Ben Dooks
@ 2019-10-10 22:02 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2019-10-10 22:02 UTC (permalink / raw)
  To: Ben Dooks; +Cc: linux-kernel, linux-kernel, linux-pm, Len Brown, Pavel Machek

On Tuesday, October 8, 2019 12:46:46 PM CEST Ben Dooks wrote:
> Include the <linux/runtime_pm.h> for the definition of
> pm_wq to avoid the following warning:
> 
> kernel/power/main.c:890:25: warning: symbol 'pm_wq' was not declared. Should it be static?
> 
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> ---
>  kernel/power/main.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/kernel/power/main.c b/kernel/power/main.c
> index e8710d179b35..e26de7af520b 100644
> --- a/kernel/power/main.c
> +++ b/kernel/power/main.c
> @@ -15,6 +15,7 @@
>  #include <linux/seq_file.h>
>  #include <linux/suspend.h>
>  #include <linux/syscalls.h>
> +#include <linux/pm_runtime.h>
>  
>  #include "power.h"
>  
> 

Applying as a fix for 5.4, thanks!





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

end of thread, other threads:[~2019-10-10 22:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08 10:46 [PATCH] PM: sleep: include <linux/pm_runtime.h> for pm_wq Ben Dooks
2019-10-10 22:02 ` 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;
as well as URLs for NNTP newsgroup(s).