Skip to contentSkip to conversation

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

PATCH In review Ben Dooks 2 participants 2 messages Oct 8, 2019 – Oct 10, 2019

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 PM: sleep: include <linux/pm_runtime.h> for pm_wq

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?

---
 kernel/power/main.c | 1 +
 1 file changed, 1 insertion(+)
kernel/power/main.c +1 -0
index e8710d179b35..e26de7af520b 100644
@@ -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"
 
Signature · 1 line
2.23.0
#1 lore raw
Quoted 16 lines · CEST 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?

---
 kernel/power/main.c | 1 +
 1 file changed, 1 insertion(+)
kernel/power/main.c +0 -0
index e8710d179b35..e26de7af520b 100644

kernel/power/main.c line 21

Quoted 7 lines
kernel/power/main.c +1 -0
@@ -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!