[lkml]   [2016]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] char: tb0219: fix build failure
The build of mips tb0219_defconfig was failing with the error:

error: implicit declaration of function 'put_user'
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 <>
Signed-off-by: Sudip Mukherjee <>

build log is at:

drivers/char/tb0219.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/char/tb0219.c b/drivers/char/tb0219.c
index 480a777..7c19d9b 100644
--- a/drivers/char/tb0219.c
+++ b/drivers/char/tb0219.c
@@ -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>
 \ /
  Last update: 2016-10-05 15:44    [W:0.074 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site