Remove a couple final references to obsolete verify_area().
authorRobert P. J. Day <rpjday@mindspring.com>
Sun, 7 Jan 2007 23:43:41 +0000 (18:43 -0500)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 9 Feb 2007 14:01:56 +0000 (15:01 +0100)
  Remove a couple final references to the obsolete verify_area() call,
which was long ago replaced by access_ok().

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Acked-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
include/asm-avr32/checksum.h
include/asm-avr32/uaccess.h

index af9d53f0f5d2c12ec02207e2e38a12fe9b609524..4ddbfd2486af06412b32e7cf66af54ce1942d9e8 100644 (file)
@@ -38,7 +38,7 @@ __wsum csum_partial_copy_generic(const void *src, void *dst, int len,
  *     passed in an incorrect kernel address to one of these functions.
  *
  *     If you use these functions directly please don't forget the
- *     verify_area().
+ *     access_ok().
  */
 static inline
 __wsum csum_partial_copy_nocheck(const void *src, void *dst,
index 821deb5a9d2893a1255b2bd85d25f8319a5ed87c..74a679e9098c43e07e8869635c81b2e936b3741c 100644 (file)
@@ -68,12 +68,6 @@ static inline void set_fs(mm_segment_t s)
 
 #define access_ok(type, addr, size) (likely(__range_ok(addr, size) == 0))
 
-static inline int
-verify_area(int type, const void __user *addr, unsigned long size)
-{
-       return access_ok(type, addr, size) ? 0 : -EFAULT;
-}
-
 /* Generic arbitrary sized copy. Return the number of bytes NOT copied */
 extern __kernel_size_t __copy_user(void *to, const void *from,
                                   __kernel_size_t n);