Skip to contentSkip to conversation

PM: Don't use "proxy" headers

PATCH Applied Andy Shevchenko 2 participants 2 messages Jun 26, 2025 – Jul 3, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM: Don't use "proxy" headers

Update header inclusions to follow IWYU (Include What You Use) principle.

---
 include/linux/pm.h | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
include/linux/pm.h +8 -7
index f0bd8fbae4f2..938b1b446a5d 100644
@@ -8,14 +8,15 @@
 #ifndef _LINUX_PM_H
 #define _LINUX_PM_H
 
-#include <linux/export.h>
-#include <linux/list.h>
-#include <linux/workqueue.h>
-#include <linux/spinlock.h>
-#include <linux/wait.h>
-#include <linux/timer.h>
-#include <linux/hrtimer.h>
 #include <linux/completion.h>
+#include <linux/export.h>
+#include <linux/hrtimer_types.h>
+#include <linux/mutex.h>
+#include <linux/spinlock.h>
+#include <linux/types.h>
+#include <linux/util_macros.h>
+#include <linux/wait.h>
+#include <linux/workqueue_types.h>
 
 /*
  * Callbacks for platform drivers to implement.
Signature · 1 line
2.47.2
maintainer Applied
#1 lore raw
Quoted 27 lines · Andy Shevchenko

Update header inclusions to follow IWYU (Include What You Use) principle.

---
 include/linux/pm.h | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
include/linux/pm.h +2 -7
index f0bd8fbae4f2..938b1b446a5d 100644
@@ -8,14 +8,15 @@
 #ifndef _LINUX_PM_H
 #define _LINUX_PM_H
 
-#include <linux/export.h>
-#include <linux/list.h>
-#include <linux/workqueue.h>
-#include <linux/spinlock.h>
-#include <linux/wait.h>
-#include <linux/timer.h>
-#include <linux/hrtimer.h>
 #include <linux/completion.h>
+#include <linux/export.h>
+#include <linux/hrtimer_types.h>

include/linux/pm.h

Quoted 10 lines
include/linux/pm.h +6 -1
+#include <linux/mutex.h>
+#include <linux/spinlock.h>
+#include <linux/types.h>
+#include <linux/util_macros.h>
+#include <linux/wait.h>
+#include <linux/workqueue_types.h>
 
 /*
  * Callbacks for platform drivers to implement.
--

Applied as 6.17 material, thanks!