Skip to contentSkip to conversation

char: tb0219: fix build failure

PATCH In review Sudip Mukherjee 2 participants 2 messages Oct 5, 2016 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 char: tb0219: fix build failure

The build of mips tb0219_defconfig was failing with the error:

drivers/char/tb0219.c:188:2:
error: implicit declaration of function 'put_user'
drivers/char/tb0219.c:216:3:
error: implicit declaration of function 'get_user'

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

Fixes 58a8f3b69e07 ("mips: separate extable.h, switch module.h to it")
Cc Al Viro <[email protected]>

---

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

 drivers/char/tb0219.c | 1 +
 1 file changed, 1 insertion(+)
drivers/char/tb0219.c +1 -0
index 480a777..7c19d9b 100644
@@ -21,6 +21,7 @@
 #include <linux/fs.h>
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/uaccess.h>
 
 #include <asm/io.h>
 #include <asm/reboot.h>
Signature · 1 line
1.9.1
#1 lore raw
Quoted 6 lines · Sudip Mukherjee

The build of mips tb0219_defconfig was failing with the error:

drivers/char/tb0219.c:188:2:
error: implicit declaration of function 'put_user'
drivers/char/tb0219.c:216:3:
error: implicit declaration of function 'get_user'

this one, OTOH, was not; fix folded, with credits to you.