Changeset 615 for GPL/branches/uniaud32-next/include/asm/uaccess.h
- Timestamp:
- Jan 1, 2021, 5:31:48 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/asm/uaccess.h
r32 r615 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(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.