Changeset 679 for GPL/trunk/include/asm/uaccess.h
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/include/asm/uaccess.h
r32 r679 44 44 int is_access_ok(int type, void *addr, unsigned long size); 45 45 46 #define access_ok(type, addr, size) is_access_ok((int)type, (void *)addr, size) 46 #define access_ok(type, addr, size) __access_ok((unsigned long)(addr),(size)) 47 48 /* 49 * The architecture should really override this if possible, at least 50 * doing a check on the get_fs() 51 */ 52 static inline int __access_ok(unsigned long addr, unsigned long size) 53 { 54 return 1; 55 } 47 56 48 57 #define verify_area(type, addr, size) (access_ok(type, (void *)addr,size) ? 0 : -EFAULT) … … 172 181 unsigned long __generic_copy_from_user(void *, const void *, unsigned long); 173 182 183 #if 0 174 184 static __inline unsigned long 175 185 __constant_copy_to_user(void *to, const void *from, unsigned long n) … … 187 197 return n; 188 198 } 199 #endif 189 200 190 201 static __inline unsigned long
Note:
See TracChangeset
for help on using the changeset viewer.