Skip to contentSkip to conversation

watchdog: m54xx: Add missing include

PATCH Thomas Gleixner 2 participants 2 messages May 8, 2020 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

From: Thomas Gleixner <[email protected]>
Date: Fri, 08 May 2020 21:26:58 +0200

A recent cleanup removed the mm.h include from uaccess_no.h in m68k. This breaks the build of the m54xx watchdog driver:

drivers/watchdog/m54xx_wdt.c:49:9: error: implicit declaration of function '__raw_readl'

Due to magic include chains the inclusion of mm.h in uaccess_no.h pulled in io.h.

Include 'linux/io.h' explicitely to fix this.

Fixes 9e860351550b ("m68knommu: Remove mm.h include from uaccess_no.h")
Cc Wim Van Sebroeck <[email protected]>
Cc Guenter Roeck <[email protected]>
---
 drivers/watchdog/m54xx_wdt.c |    1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/m54xx_wdt.c +1 -0
@@ -29,6 +29,7 @@
 #include <linux/bitops.h>
 #include <linux/ioport.h>
 #include <linux/uaccess.h>
+#include <linux/io.h>
 
 #include <asm/coldfire.h>
 #include <asm/m54xxsim.h>
maintainer Reviewed-by
#1 lore raw
Quoted 10 lines · Thomas Gleixner

From: Thomas Gleixner <[email protected]>
Date: Fri, 08 May 2020 21:26:58 +0200

A recent cleanup removed the mm.h include from uaccess_no.h in m68k. This breaks the build of the m54xx watchdog driver:

drivers/watchdog/m54xx_wdt.c:49:9: error: implicit declaration of function '__raw_readl'

Due to magic include chains the inclusion of mm.h in uaccess_no.h pulled in io.h.

Quoted 8 lines

Include 'linux/io.h' explicitely to fix this.

Fixes 9e860351550b ("m68knommu: Remove mm.h include from uaccess_no.h")
Cc Wim Van Sebroeck <[email protected]>
Cc Guenter Roeck <[email protected]>
Quoted 14 lines
---
 drivers/watchdog/m54xx_wdt.c |    1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/m54xx_wdt.c +1 -0
@@ -29,6 +29,7 @@
 #include <linux/bitops.h>
 #include <linux/ioport.h>
 #include <linux/uaccess.h>
+#include <linux/io.h>
 
 #include <asm/coldfire.h>
 #include <asm/m54xxsim.h>