PM: sleep: include <linux/pm_runtime.h> for pm_wq
diff mbox series

Message ID 20191008104646.11658-1-ben.dooks@codethink.co.uk
State Awaiting Upstream
Delegated to: Rafael Wysocki
Headers show
Series
  • PM: sleep: include <linux/pm_runtime.h> for pm_wq
Related show

Commit Message

Ben Dooks (Codethink) Oct. 8, 2019, 10:46 a.m. UTC
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(+)

Comments

Rafael J. Wysocki Oct. 10, 2019, 10:02 p.m. UTC | #1
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!

Patch
diff mbox series

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"