Loading arch/arc/include/asm/uaccess.h +6 −4 Original line number Original line Diff line number Diff line Loading @@ -146,8 +146,9 @@ raw_copy_from_user(void *to, const void __user *from, unsigned long n) if (n == 0) if (n == 0) return 0; return 0; /* unaligned */ /* fallback for unaligned access when hardware doesn't support */ if (((unsigned long)to & 0x3) || ((unsigned long)from & 0x3)) { if (!IS_ENABLED(CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS) && (((unsigned long)to & 0x3) || ((unsigned long)from & 0x3))) { unsigned char tmp; unsigned char tmp; Loading Loading @@ -373,8 +374,9 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n) if (n == 0) if (n == 0) return 0; return 0; /* unaligned */ /* fallback for unaligned access when hardware doesn't support */ if (((unsigned long)to & 0x3) || ((unsigned long)from & 0x3)) { if (!IS_ENABLED(CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS) && (((unsigned long)to & 0x3) || ((unsigned long)from & 0x3))) { unsigned char tmp; unsigned char tmp; Loading Loading
arch/arc/include/asm/uaccess.h +6 −4 Original line number Original line Diff line number Diff line Loading @@ -146,8 +146,9 @@ raw_copy_from_user(void *to, const void __user *from, unsigned long n) if (n == 0) if (n == 0) return 0; return 0; /* unaligned */ /* fallback for unaligned access when hardware doesn't support */ if (((unsigned long)to & 0x3) || ((unsigned long)from & 0x3)) { if (!IS_ENABLED(CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS) && (((unsigned long)to & 0x3) || ((unsigned long)from & 0x3))) { unsigned char tmp; unsigned char tmp; Loading Loading @@ -373,8 +374,9 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n) if (n == 0) if (n == 0) return 0; return 0; /* unaligned */ /* fallback for unaligned access when hardware doesn't support */ if (((unsigned long)to & 0x3) || ((unsigned long)from & 0x3)) { if (!IS_ENABLED(CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS) && (((unsigned long)to & 0x3) || ((unsigned long)from & 0x3))) { unsigned char tmp; unsigned char tmp; Loading