Skip to content

Commit

Permalink
[PATCH] x86: #include asm/uaccess.h in asm/checksum.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Jun 23, 2005
1 parent 80bb82a commit a9ed881
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-i386/checksum.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a9ed881

Please sign in to comment.