Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7146901ybi; Mon, 8 Jul 2019 15:34:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxn/J0JcGCaOnS8/XVkwTQDxrs9dnkGiEjskmhOqzkooXejFHRLN629MmA78wbeheSn4Scb X-Received: by 2002:a65:42c3:: with SMTP id l3mr26395171pgp.372.1562625291976; Mon, 08 Jul 2019 15:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625291; cv=none; d=google.com; s=arc-20160816; b=YnTBZCOCeeJinTO9c4gxrFdVnmypamOMl80mslj5xWsTlVmzFABH7DH5ZhcaeUrz3V 4CIUjJ70QQnuXOFDcluAeVoDi65IKZRLspWZrwNagHsKOiiTBfGcpW1rs0mucQib4Qn+ HFhQzRQ1ZK/iZ5N2U8ka+77Ju4XmuLZYMHwk0RJFvq7l5W+tQ3EPrIwGU60VGZAYDx0Q agFplHAp0D0XZfjc1kRHT6LP1n2+YunnJdChlbCHQbiei5gt2KsCGUU/eUBuCegNprfV +iqWa+ayyJz7KgJ458jK9JNw5HX9G3QOwoAGikDWdErnZfjZ8TFSdP4MPSznlUrVZAEW EffA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LV9hAueHnGdWmqbb1hkbYZp5V7/Oz/lniuqMnosfpeQ=; b=NzZtjmYfFve3C58x+7c26B0ptiErpX+cA/UtIvThU0irZW/oQMLjkR+zP2hLzjSEEx yWUtZmMTh6xVL/El/m6KIuI0PbVQ1T+tGGi5FEZ/zYRkfGYUh+dGzzJWBtLKSiefS7jH hjebT4XMmy9bMeZ9C23u7IbNDstkhfskw4U5P+0t6X3UoZ4FHXXPgOeGFcpIdsS2kQ8h DH1mpqO+uUVXzOGBx5IZZISs626/fTkZwnaBtIQQkV1JUYyc1KWclD7vB9a7yBGaURgY d4UAmd19cJtRNN14OQEksx/JOqCOQe6wCSpbOrLJxnnBIpjaLhPoOiEDQb9JFCFPVCcd FhCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zkNUSclZ; 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 w15si18268840ply.127.2019.07.08.15.34.37; Mon, 08 Jul 2019 15:34:51 -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; dkim=pass header.i=@kernel.org header.s=default header.b=zkNUSclZ; 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 S1733113AbfGHPSr (ORCPT + 99 others); Mon, 8 Jul 2019 11:18:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:42646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733089AbfGHPSq (ORCPT ); Mon, 8 Jul 2019 11:18:46 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C39BE216C4; Mon, 8 Jul 2019 15:18:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599125; bh=64B04qnmvZygFQWN6yPW1MsjGXByIe48pi0PzVtB4lc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zkNUSclZZjFsCOuGC7ha+Xh1znRydR50Qt4bbS5lBtdtaypoor1/rW/2j/kkd0W2x VAk+xcxJmr1flIYDzE1+M/jOGAAXlhLKc5bNZsxzS61L880QDkCPQXv/IviUhc2c1K 3c7HkkNFrQsFI6ReRw8JKPnrPiHGRFjxTO8s0kk0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , Paul Burton , ralf@linux-mips.org, jhogan@kernel.org, linux-mips@vger.kernel.org, Sasha Levin Subject: [PATCH 4.9 014/102] MIPS: uprobes: remove set but not used variable epc Date: Mon, 8 Jul 2019 17:12:07 +0200 Message-Id: <20190708150526.851587530@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150525.973820964@linuxfoundation.org> References: <20190708150525.973820964@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ 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