Skip to contentSkip to conversation

#include asm/uaccess.h in asm/checksum.h

PATCH New Alexey Dobriyan 1 participant 1 message May 24, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 #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.

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