Skip to content

Commit 74b4dce

Browse files
vineetgarcgregkh
authored andcommitted
ARC: uacces: remove lp_start, lp_end from clobber list
[ Upstream commit d5e3c55 ] Newer ARC gcc handles lp_start, lp_end in a different way and doesn't like them in the clobber list. Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2fc69e5 commit 74b4dce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/arc/include/asm/uaccess.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ raw_copy_from_user(void *to, const void __user *from, unsigned long n)
207207
*/
208208
"=&r" (tmp), "+r" (to), "+r" (from)
209209
:
210-
: "lp_count", "lp_start", "lp_end", "memory");
210+
: "lp_count", "memory");
211211

212212
return n;
213213
}
@@ -433,7 +433,7 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n)
433433
*/
434434
"=&r" (tmp), "+r" (to), "+r" (from)
435435
:
436-
: "lp_count", "lp_start", "lp_end", "memory");
436+
: "lp_count", "memory");
437437

438438
return n;
439439
}
@@ -653,7 +653,7 @@ static inline unsigned long __arc_clear_user(void __user *to, unsigned long n)
653653
" .previous \n"
654654
: "+r"(d_char), "+r"(res)
655655
: "i"(0)
656-
: "lp_count", "lp_start", "lp_end", "memory");
656+
: "lp_count", "memory");
657657

658658
return res;
659659
}
@@ -686,7 +686,7 @@ __arc_strncpy_from_user(char *dst, const char __user *src, long count)
686686
" .previous \n"
687687
: "+r"(res), "+r"(dst), "+r"(src), "=r"(val)
688688
: "g"(-EFAULT), "r"(count)
689-
: "lp_count", "lp_start", "lp_end", "memory");
689+
: "lp_count", "memory");
690690

691691
return res;
692692
}

0 commit comments

Comments
 (0)