Commit ddb8172c authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Wim Van Sebroeck
Browse files

watchdog: Don't use "proxy" headers



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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20250708133646.70384-3-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 6a4a2d5c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -24,8 +24,14 @@
 *	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 */

+2 −0
Original line number Diff line number Diff line
@@ -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"
+8 −4
Original line number Diff line number Diff line
@@ -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;