Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1589925ybi; Sat, 25 May 2019 05:25:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0oKnhVrvsQx7t8GL+IIcJGwE7K5fKlliyfBHYyYKVjX4U3Fk9PVm8euxx5myRi0px8KVd X-Received: by 2002:a63:17:: with SMTP id 23mr110769242pga.206.1558787127372; Sat, 25 May 2019 05:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558787127; cv=none; d=google.com; s=arc-20160816; b=rVkQ88BLWc0trU+IkgmXuEl76aA8S6J+TaWm9HpgmL0ASZEh9TsjkeFqRZMjmWBL7A tmLMHaQKPhsFOnsj7WOGoVrqX1FFiNfmnqc0qviIfOmG7DyZ9Np1i1FFjmX39LQkGKWE cHbtYxAaUo2dD4wW4otH1LNi96t49SMMJnft/15Bxwhk78bSIFELe36NHg14omi7bbK/ ACWoVeBSjKDjOh0oiMf1cUrfLSqcIe/4vUF/kkHM7Fy8EfqXm/lBjWYDxPCBfleCuydR 1SRJkzTUFN7cy3gSAEIubSXqWyrceoIj/1UUw2P8WnWXRVXcFjJ7NhLRdW2600yTAFJK siyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=gYMVO4U1q4KCFcch9g04XHZdpn4Hby53nrIGCC6aASw=; b=oCW++XLPcCvR4K83HLeieDWUidHvoR0tSDCEZb37kF/fOiULB11j1H5bfFA7fgCj9y cvHb9McIvtuGNThlcC48Pn97xyV/RWS/CkganKmSTpOhTElRqD1nzfyktlqM9QB1KMBB 4yDTSOztbR4AcsBJtzqheUorWaA0CwtqmPPtORKHB+mrqJ7CL5lgJWXN1TJTKt04L9MP cM3/UVxDu0U/NIS1dYAOEikFpS02MxyXOY1M+nXJGVQCMdB7zByLean36qnyxoJXaDqe Y7oIzN5WgmH+N/t3RPJLTQEGUuHxvM+lF7GaLSOHqscE0AHpeJ495buaSe5+pQUBB0CA K4Xw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si8714163pfb.213.2019.05.25.05.25.08; Sat, 25 May 2019 05:25:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726838AbfEYMX4 (ORCPT + 99 others); Sat, 25 May 2019 08:23:56 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:34914 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726688AbfEYMX4 (ORCPT ); Sat, 25 May 2019 08:23:56 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4247E5C72E4B0C50A544; Sat, 25 May 2019 20:23:43 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Sat, 25 May 2019 20:23:32 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH -next] MIPS: uprobes: remove set but not used variable 'epc' Date: Sat, 25 May 2019 20:20:24 +0800 Message-ID: <20190525122024.4908-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: arch/mips/kernel/uprobes.c: In function 'arch_uprobe_pre_xol': arch/mips/kernel/uprobes.c:115:17: warning: variable 'epc' set but not used [-Wunused-but-set-variable] It's never used since introduction in commit 40e084a506eb ("MIPS: Add uprobes support.") Signed-off-by: YueHaibing --- arch/mips/kernel/uprobes.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/kernel/uprobes.c b/arch/mips/kernel/uprobes.c index 4aaff3b3175c..6dbe4eab0a0e 100644 --- a/arch/mips/kernel/uprobes.c +++ b/arch/mips/kernel/uprobes.c @@ -112,9 +112,6 @@ int arch_uprobe_pre_xol(struct arch_uprobe *aup, struct pt_regs *regs) */ aup->resume_epc = regs->cp0_epc + 4; if (insn_has_delay_slot((union mips_instruction) aup->insn[0])) { - unsigned long epc; - - epc = regs->cp0_epc; __compute_return_epc_for_insn(regs, (union mips_instruction) aup->insn[0]); aup->resume_epc = regs->cp0_epc; -- 2.17.1