]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.14/arc-uacces-remove-lp_start-lp_end-from-clobber-list.patch
drop some duplicated patches that somehow got merged.
[thirdparty/kernel/stable-queue.git] / queue-4.14 / arc-uacces-remove-lp_start-lp_end-from-clobber-list.patch
1 From d0b873a2289b932e0817d4d5b45ab5f81a5e526a 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
5
6 [ Upstream commit d5e3c55e01d8b1774b37b4647c30fb22f1d39077 ]
7
8 Newer ARC gcc handles lp_start, lp_end in a different way and doesn't
9 like them in the clobber list.
10
11 Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
12 Signed-off-by: Sasha Levin <sashal@kernel.org>
13 ---
14 arch/arc/include/asm/uaccess.h | 8 ++++----
15 1 file changed, 4 insertions(+), 4 deletions(-)
16
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)
22 */
23 "=&r" (tmp), "+r" (to), "+r" (from)
24 :
25 - : "lp_count", "lp_start", "lp_end", "memory");
26 + : "lp_count", "memory");
27
28 return n;
29 }
30 @@ -433,7 +433,7 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n)
31 */
32 "=&r" (tmp), "+r" (to), "+r" (from)
33 :
34 - : "lp_count", "lp_start", "lp_end", "memory");
35 + : "lp_count", "memory");
36
37 return n;
38 }
39 @@ -653,7 +653,7 @@ static inline unsigned long __arc_clear_user(void __user *to, unsigned long n)
40 " .previous \n"
41 : "+r"(d_char), "+r"(res)
42 : "i"(0)
43 - : "lp_count", "lp_start", "lp_end", "memory");
44 + : "lp_count", "memory");
45
46 return res;
47 }
48 @@ -686,7 +686,7 @@ __arc_strncpy_from_user(char *dst, const char __user *src, long count)
49 " .previous \n"
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");
54
55 return res;
56 }
57 --
58 2.19.1
59