Skip to contentSkip to conversation

watchdog: dw_wdt: Remove duplicated header file inclusion

PATCH In review Zhen Lei 2 participants 3 messages Mar 27, 2021 – Mar 31, 2021 Watchdog device drivers

lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

PATCH 1/1 watchdog: dw_wdt: Remove duplicated header file inclusion

The header file <linux/kernel.h> is already included above and can be removed here.

---
 drivers/watchdog/dw_wdt.c | 1 -
 1 file changed, 1 deletion(-)
drivers/watchdog/dw_wdt.c +0 -1
index 32d0e1781e63c4e..b1642e2d9175584 100644
@@ -19,7 +19,6 @@
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/io.h>
-#include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/interrupt.h>
Signature · 1 line
1.8.3
maintainer
#1 lore raw
Quoted 4 lines · Zhen Lei

The header file <linux/kernel.h> is already included above and can be removed here.

Already submitted:

https://patchwork.kernel.org/project/linux-watchdog/patch/[email protected]/

In general, when removing duplicate or unnecessary header files, please retain or improve alphabetic order. This patch makes it worse.

Guenter

Quoted 17 lines
---
 drivers/watchdog/dw_wdt.c | 1 -
 1 file changed, 1 deletion(-)
drivers/watchdog/dw_wdt.c +0 -1
index 32d0e1781e63c4e..b1642e2d9175584 100644
@@ -19,7 +19,6 @@
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/io.h>
-#include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/interrupt.h>
#2 lore raw
Quoted 4 lines · Guenter Roeck
Quoted 3 lines · Zhen Lei

The header file <linux/kernel.h> is already included above and can be removed here.

Quoted 8 lines
Quoted 1 line

Already submitted:

https://patchwork.kernel.org/project/linux-watchdog/patch/[email protected]/

In general, when removing duplicate or unnecessary header files, please retain or improve alphabetic order. This patch makes it worse.

Okay, thanks for the heads-up. I'll pay attention next time.

Quoted 24 lines

Guenter

Quoted 10 lines
---
 drivers/watchdog/dw_wdt.c | 1 -
 1 file changed, 1 deletion(-)
drivers/watchdog/dw_wdt.c +0 -0
index 32d0e1781e63c4e..b1642e2d9175584 100644

drivers/watchdog/dw_wdt.c line 24

Quoted 7 lines
drivers/watchdog/dw_wdt.c +0 -1
@@ -19,7 +19,6 @@
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/io.h>
-#include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/interrupt.h>

.