From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B11EC31E4B for ; Fri, 14 Jun 2019 20:32:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 384382082C for ; Fri, 14 Jun 2019 20:32:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560544356; bh=2IeCWttRuelhrNLMfaIzHeLvwBBwnVANEz3e89O26I8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=rWPZiRmFcQyOxEktFwTqXjwR4TLylZ2cLmtWzY+4TESeDAonYVPJyJHwGN5d81hfg 91o+OCDglzMelX9x5eM0X+PnV3JuZMz44h/zO5noCRPxvcvxEGBUT8D2cW3IuFG8fA FeQtwNIrqIxkDgekhORcDbz0haO10jjSaG3eDFCs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727831AbfFNUan (ORCPT ); Fri, 14 Jun 2019 16:30:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:53896 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726811AbfFNUan (ORCPT ); Fri, 14 Jun 2019 16:30:43 -0400 Received: from sasha-vm.mshome.net (unknown [131.107.159.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F2F22184D; Fri, 14 Jun 2019 20:30:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560544242; bh=2IeCWttRuelhrNLMfaIzHeLvwBBwnVANEz3e89O26I8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HIdoLbL1lx052OWt3CtQLc5xpvdhkvnrRms744vN2twmpJGCbx+NF1kSd4LXKeIRs wqHXJrnmxDKt0ywDjo4kExCwWA3JWsnUqbtaDbrUrSEZ3yRGDUwiB59AfEwYDEVW6u 1RgrEJm7IP5hszT9UeBrjkTDV/cWssNMHl41m+pg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: YueHaibing , Paul Burton , ralf@linux-mips.org, jhogan@kernel.org, linux-mips@vger.kernel.org, Sasha Levin Subject: [PATCH AUTOSEL 4.9 07/18] MIPS: uprobes: remove set but not used variable 'epc' Date: Fri, 14 Jun 2019 16:30:23 -0400 Message-Id: <20190614203037.27910-7-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190614203037.27910-1-sashal@kernel.org> References: <20190614203037.27910-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org From: YueHaibing [ Upstream commit f532beeeff0c0a3586cc15538bc52d249eb19e7c ] 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 Signed-off-by: Paul Burton Cc: Cc: Cc: Cc: Signed-off-by: Sasha Levin --- 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 dbb917403131..ec951dde0999 100644 --- a/arch/mips/kernel/uprobes.c +++ b/arch/mips/kernel/uprobes.c @@ -111,9 +111,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.20.1