]>
Commit | Line | Data |
---|---|---|
33d74f8a SL |
1 | From 8318d0d972bf8f4030100fcef3a6b02e960a590d Mon Sep 17 00:00:00 2001 |
2 | From: YueHaibing <yuehaibing@huawei.com> | |
3 | Date: Sat, 25 May 2019 20:20:24 +0800 | |
4 | Subject: MIPS: uprobes: remove set but not used variable 'epc' | |
5 | ||
6 | [ Upstream commit f532beeeff0c0a3586cc15538bc52d249eb19e7c ] | |
7 | ||
8 | Fixes gcc '-Wunused-but-set-variable' warning: | |
9 | ||
10 | arch/mips/kernel/uprobes.c: In function 'arch_uprobe_pre_xol': | |
11 | arch/mips/kernel/uprobes.c:115:17: warning: variable 'epc' set but not used [-Wunused-but-set-variable] | |
12 | ||
13 | It's never used since introduction in | |
14 | commit 40e084a506eb ("MIPS: Add uprobes support.") | |
15 | ||
16 | Signed-off-by: YueHaibing <yuehaibing@huawei.com> | |
17 | Signed-off-by: Paul Burton <paul.burton@mips.com> | |
18 | Cc: <ralf@linux-mips.org> | |
19 | Cc: <jhogan@kernel.org> | |
20 | Cc: <linux-kernel@vger.kernel.org> | |
21 | Cc: <linux-mips@vger.kernel.org> | |
22 | Signed-off-by: Sasha Levin <sashal@kernel.org> | |
23 | --- | |
24 | arch/mips/kernel/uprobes.c | 3 --- | |
25 | 1 file changed, 3 deletions(-) | |
26 | ||
27 | diff --git a/arch/mips/kernel/uprobes.c b/arch/mips/kernel/uprobes.c | |
28 | index f7a0645ccb82..6305e91ffc44 100644 | |
29 | --- a/arch/mips/kernel/uprobes.c | |
30 | +++ b/arch/mips/kernel/uprobes.c | |
31 | @@ -112,9 +112,6 @@ int arch_uprobe_pre_xol(struct arch_uprobe *aup, struct pt_regs *regs) | |
32 | */ | |
33 | aup->resume_epc = regs->cp0_epc + 4; | |
34 | if (insn_has_delay_slot((union mips_instruction) aup->insn[0])) { | |
35 | - unsigned long epc; | |
36 | - | |
37 | - epc = regs->cp0_epc; | |
38 | __compute_return_epc_for_insn(regs, | |
39 | (union mips_instruction) aup->insn[0]); | |
40 | aup->resume_epc = regs->cp0_epc; | |
41 | -- | |
42 | 2.20.1 | |
43 |