PM: sleep: include <linux/pm_runtime.h> for pm_wq
Subsystems (2)
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?
Signed-off-by Ben Dooks <[email protected]>
--- kernel/power/main.c | 1 + 1 file changed, 1 insertion(+)
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"
Signature · 1 line
2.23.0
Quoted 16 lines · CEST Ben Dooks
Include the <
linux/runtime_pm.h> for the definition ofpm_wqto 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 <[email protected]>--- kernel/power/main.c | 1 + 1 file changed, 1 insertion(+)kernel/power/main.c +0
-0
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!