Skip to contentSkip to conversation

drivers: watchdog: Remove duplicate include of kernel.h

PATCH Superseded Wan Jiabing 2 participants 2 messages Mar 23, 2021 Watchdog device drivers

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: watchdog: Remove duplicate include of kernel.h

linux/kernel.h has been included at line 17, so remove the duplicate one at line 22.

---
 drivers/watchdog/dw_wdt.c | 1 -
 1 file changed, 1 deletion(-)
drivers/watchdog/dw_wdt.c +0 -1
index 32d0e1781e63..b1642e2d9175 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
2.25.1
maintainer
#1 lore raw
Quoted 14 lines · Wan Jiabing

linux/kernel.h has been included at line 17, so remove the duplicate one at line 22.

---
 drivers/watchdog/dw_wdt.c | 1 -
 1 file changed, 1 deletion(-)
drivers/watchdog/dw_wdt.c +0 -0
index 32d0e1781e63..b1642e2d9175 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>

The reason for the duplicate include is the non-alphabetic order of include files. I find that worse than the duplicate include. If it is too much effort to reorder include files to be in alphabetic order, please at least don't make it worse and remove the other include.

Guenter