Skip to contentSkip to conversation

stagin/dgrp: include linux/uaccess.h where necessary

PATCH New Arnd Bergmann 1 participant 1 message Oct 5, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stagin/dgrp: include linux/uaccess.h where necessary

Compilation of the dgrp driver fails on ARM because uaccess.h is not included implicitly in three files that need it. Add an explicit #include statement to fix that.

Cc Bill Pemberton <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
drivers/staging/dgrp/dgrp_mon_ops.c +1 -0
index 268dcb9..4792d05 100644
@@ -38,6 +38,7 @@
 #include <linux/sched.h>
 #include <asm/unaligned.h>
 #include <linux/proc_fs.h>
+#include <linux/uaccess.h>
 
 #include "dgrp_common.h"
 
drivers/staging/dgrp/dgrp_specproc.c +1 -0
index 28f5c9a..b9b3fc5 100644
@@ -40,6 +40,7 @@
 #include <linux/ctype.h>
 #include <linux/seq_file.h>
 #include <linux/vmalloc.h>
+#include <linux/uaccess.h>
 
 #include "dgrp_common.h"
 
drivers/staging/dgrp/dgrp_tty.c +1 -0
index 7d7de87..72f6fcf 100644
@@ -40,6 +40,7 @@
 #include <linux/tty.h>
 #include <linux/tty_flip.h>
 #include <linux/sched.h>
+#include <linux/uaccess.h>
 
 #include "dgrp_common.h"