Ignore:
Timestamp:
Jan 1, 2021, 5:31:48 AM (5 years ago)
Author:
Paul Smedley
Message:

Add source for uniaud32 based on code from linux kernel 5.4.86

Location:
GPL/branches/uniaud32-next
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/asm/uaccess.h

    r32 r615  
    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(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.