Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/include/asm/uaccess.h

    r32 r679  
    4444int is_access_ok(int type, void *addr, unsigned long size);
    4545
    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 */
     52static inline int __access_ok(unsigned long addr, unsigned long size)
     53{
     54        return 1;
     55}
    4756
    4857#define verify_area(type, addr, size) (access_ok(type, (void *)addr,size) ? 0 : -EFAULT)
     
    172181unsigned long __generic_copy_from_user(void *, const void *, unsigned long);
    173182
     183#if 0
    174184static __inline unsigned long
    175185__constant_copy_to_user(void *to, const void *from, unsigned long n)
     
    187197        return n;
    188198}
     199#endif
    189200
    190201static __inline unsigned long
Note: See TracChangeset for help on using the changeset viewer.