]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
watchdog: Don't use "proxy" headers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 8 Jul 2025 13:33:44 +0000 (16:33 +0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Thu, 17 Jul 2025 09:26:56 +0000 (11:26 +0200)
Update header inclusions to follow IWYU (Include What You Use)
principle.

Note that kernel.h is discouraged to be included as it's written
at the top of that file.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20250708133646.70384-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/watchdog_core.h
drivers/watchdog/watchdog_pretimeout.c
include/linux/watchdog.h

index 5b35a8439e26f27195eafc8c020d2c317757627f..ab825d9f9248d07150edad258341bdbc74809a0d 100644 (file)
  *     This material is provided "AS-IS" and at no charge.
  */
 
-#include <linux/hrtimer.h>
+#include <linux/cdev.h>
+#include <linux/device.h>
+#include <linux/hrtimer_types.h>
+#include <linux/init.h>
 #include <linux/kthread.h>
+#include <linux/mutex_types.h>
+#include <linux/types.h>
+#include <linux/watchdog.h>
 
 #define MAX_DOGS       32      /* Maximum number of watchdog devices */
 
index e5295c990fa1b8a0df328811fb061b03520da02b..2526436dc74dd8b8e9703f188e21555091451246 100644 (file)
@@ -7,6 +7,8 @@
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 #include <linux/string.h>
+#include <linux/sysfs.h>
+#include <linux/types.h>
 #include <linux/watchdog.h>
 
 #include "watchdog_core.h"
index 99660197a36cb44099d9a96c4173a5b712e4af8b..8c60687a3e55f9f23c68038c7ce48f2df985bff8 100644 (file)
@@ -9,14 +9,18 @@
 #ifndef _LINUX_WATCHDOG_H
 #define _LINUX_WATCHDOG_H
 
-
 #include <linux/bitops.h>
-#include <linux/cdev.h>
-#include <linux/device.h>
-#include <linux/kernel.h>
+#include <linux/limits.h>
 #include <linux/notifier.h>
+#include <linux/printk.h>
+#include <linux/types.h>
+
 #include <uapi/linux/watchdog.h>
 
+struct attribute_group;
+struct device;
+struct module;
+
 struct watchdog_ops;
 struct watchdog_device;
 struct watchdog_core_data;