Skip to contentSkip to conversation

watchdog: ath79_wdt: fix build failure

PATCH In review Sudip Mukherjee 3 participants 3 messages Oct 5, 2016 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: ath79_wdt: fix build failure

The build of mips ath79_defconfig was failing with the error:
drivers/watchdog/ath79_wdt.c:164:5:
error: implicit declaration of function 'get_user'
drivers/watchdog/ath79_wdt.c:196:3:
error: implicit declaration of function 'copy_to_user'
drivers/watchdog/ath79_wdt.c:201:3:
error: implicit declaration of function 'put_user'

Quoting Al Viro - "another victim of indirect include chains"

Fixes 58a8f3b69e07 ("mips: separate extable.h, switch module.h to it")

---

build log is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/164834126

 drivers/watchdog/ath79_wdt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/ath79_wdt.c +1 -0
index 835d310..e2209bf 100644
@@ -35,6 +35,7 @@
 #include <linux/err.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/uaccess.h>
 
 #define DRIVER_NAME	"ath79-wdt"
 
Signature · 1 line
1.9.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Sudip Mukherjee

The build of mips ath79_defconfig was failing with the error:
drivers/watchdog/ath79_wdt.c:164:5:
error: implicit declaration of function 'get_user'
drivers/watchdog/ath79_wdt.c:196:3:
error: implicit declaration of function 'copy_to_user'
drivers/watchdog/ath79_wdt.c:201:3:
error: implicit declaration of function 'put_user'

Quoted 4 lines

Quoting Al Viro - "another victim of indirect include chains"

Fixes 58a8f3b69e07 ("mips: separate extable.h, switch module.h to it")
Quoted 21 lines

---

build log is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/164834126

 drivers/watchdog/ath79_wdt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/ath79_wdt.c +1 -0
index 835d310..e2209bf 100644
@@ -35,6 +35,7 @@
 #include <linux/err.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
+#include <linux/uaccess.h>
 
 #define DRIVER_NAME	"ath79-wdt"
 
#2 lore raw
In reply to Sudip Mukherjee
Quoted 8 lines · Sudip Mukherjee

The build of mips ath79_defconfig was failing with the error:
drivers/watchdog/ath79_wdt.c:164:5:
error: implicit declaration of function 'get_user'
drivers/watchdog/ath79_wdt.c:196:3:
error: implicit declaration of function 'copy_to_user'
drivers/watchdog/ath79_wdt.c:201:3:
error: implicit declaration of function 'put_user'

Quoted 4 lines

Quoting Al Viro - "another victim of indirect include chains"

Fixes 58a8f3b69e07 ("mips: separate extable.h, switch module.h to it")

That was actually fixed in today's -next...