Skip to contentSkip to conversation

watchdog: dw_wdt: Fix duplicate included linux/kernel.h

PATCH Superseded Jiapeng Chong 2 participants 2 messages May 13, 2021 Watchdog device drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: dw_wdt: Fix duplicate included linux/kernel.h

Clean up the following includecheck warning:

./drivers/watchdog/dw_wdt.c: linux/kernel.h is included more than once.

---
 drivers/watchdog/dw_wdt.c | 1 -
 1 file changed, 1 deletion(-)
drivers/watchdog/dw_wdt.c +0 -1
index 32d0e17..b1642e2 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.1
maintainer
#1 lore raw
Quoted 16 lines · Jiapeng Chong

Clean up the following includecheck warning:

./drivers/watchdog/dw_wdt.c: linux/kernel.h is included more than once.

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

When making such changes, please use the opportunity to reorder include files in alphabetic order to help ensure that duplicate includes don't happen again.

Thanks,
Guenter