[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250430144635.3714821-1-andriy.shevchenko@linux.intel.com>
Date: Wed, 30 Apr 2025 17:42:13 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: "Rafael J. Wysocki" <rafael@...nel.org>,
Pavel Machek <pavel@...nel.org>,
Len Brown <len.brown@...el.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Subject: [rft, PATCH v2 1/1] PM: Don't use "proxy" headers
Update header inclusions to follow IWYU (Include What You Use)
principle.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
---
v2: fixed obvious missing hrtimer_types.h include (LKP)
It may fail some builds, let's wait for CIs to report any issues before
applying this. But I also encourage to test it locally as much as possible.
include/linux/pm.h | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/include/linux/pm.h b/include/linux/pm.h
index f0bd8fbae4f2..938b1b446a5d 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -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.
--
2.47.2
Powered by blists - more mailing lists