Browse Source

[PATCH] x86: #include asm/uaccess.h in asm/checksum.h

csum_and_copy_to_user is static inline and uses VERIFY_WRITE.  Patch allows
to remove asm/uaccess.h from i386_ksyms.c without dependency surprises.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alexey Dobriyan 20 years ago
parent
commit
a9ed881796
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/asm-i386/checksum.h

+ 2 - 0
include/asm-i386/checksum.h

@@ -3,6 +3,8 @@
 
 
 #include <linux/in6.h>
 #include <linux/in6.h>
 
 
+#include <asm/uaccess.h>
+
 /*
 /*
  * computes the checksum of a memory block at buff, length len,
  * computes the checksum of a memory block at buff, length len,
  * and adds in "sum" (32-bit)
  * and adds in "sum" (32-bit)