1 From 77ce17114652f5079966be33d66c81f10bc3e731 Mon Sep 17 00:00:00 2001
2 From: Vineet Gupta <vgupta@synopsys.com>
3 Date: Tue, 5 Feb 2019 10:07:07 -0800
4 Subject: ARC: uacces: remove lp_start, lp_end from clobber list
6 [ Upstream commit d5e3c55e01d8b1774b37b4647c30fb22f1d39077 ]
8 Newer ARC gcc handles lp_start, lp_end in a different way and doesn't
9 like them in the clobber list.
11 Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
12 Signed-off-by: Sasha Levin <sashal@kernel.org>
14 arch/arc/include/asm/uaccess.h | 8 ++++----
15 1 file changed, 4 insertions(+), 4 deletions(-)
17 diff --git a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm/uaccess.h
18 index c9173c02081c..eabc3efa6c6d 100644
19 --- a/arch/arc/include/asm/uaccess.h
20 +++ b/arch/arc/include/asm/uaccess.h
21 @@ -207,7 +207,7 @@ raw_copy_from_user(void *to, const void __user *from, unsigned long n)
23 "=&r" (tmp), "+r" (to), "+r" (from)
25 - : "lp_count", "lp_start", "lp_end", "memory");
26 + : "lp_count", "memory");
30 @@ -433,7 +433,7 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n)
32 "=&r" (tmp), "+r" (to), "+r" (from)
34 - : "lp_count", "lp_start", "lp_end", "memory");
35 + : "lp_count", "memory");
39 @@ -653,7 +653,7 @@ static inline unsigned long __arc_clear_user(void __user *to, unsigned long n)
41 : "+r"(d_char), "+r"(res)
43 - : "lp_count", "lp_start", "lp_end", "memory");
44 + : "lp_count", "memory");
48 @@ -686,7 +686,7 @@ __arc_strncpy_from_user(char *dst, const char __user *src, long count)
50 : "+r"(res), "+r"(dst), "+r"(src), "=r"(val)
51 : "g"(-EFAULT), "r"(count)
52 - : "lp_count", "lp_start", "lp_end", "memory");
53 + : "lp_count", "memory");