]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/5.0.14/arc-memset-fix-build-with-l1_cache_shift-6.patch
Linux 5.0.14
[thirdparty/kernel/stable-queue.git] / releases / 5.0.14 / arc-memset-fix-build-with-l1_cache_shift-6.patch
1 From 55c0c4c793b538fb438bcc72481b9dc2f79fe5a9 Mon Sep 17 00:00:00 2001
2 From: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
3 Date: Mon, 8 Apr 2019 16:04:38 +0300
4 Subject: ARC: memset: fix build with L1_CACHE_SHIFT != 6
5
6 From: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
7
8 commit 55c0c4c793b538fb438bcc72481b9dc2f79fe5a9 upstream.
9
10 In case of 'L1_CACHE_SHIFT != 6' we define dummy assembly macroses
11 PREALLOC_INSTR and PREFETCHW_INSTR without arguments. However
12 we pass arguments to them in code which cause build errors.
13 Fix that.
14
15 Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
16 Cc: <stable@vger.kernel.org> [5.0]
17 Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19
20 ---
21 arch/arc/lib/memset-archs.S | 4 ++--
22 1 file changed, 2 insertions(+), 2 deletions(-)
23
24 --- a/arch/arc/lib/memset-archs.S
25 +++ b/arch/arc/lib/memset-archs.S
26 @@ -30,10 +30,10 @@
27
28 #else
29
30 -.macro PREALLOC_INSTR
31 +.macro PREALLOC_INSTR reg, off
32 .endm
33
34 -.macro PREFETCHW_INSTR
35 +.macro PREFETCHW_INSTR reg, off
36 .endm
37
38 #endif