From patchwork Mon Dec 28 12:01:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 11991193 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 DB069C433E0 for ; Mon, 28 Dec 2020 12:03:55 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9CF6020739 for ; Mon, 28 Dec 2020 12:03:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9CF6020739 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Lomkp5YNdeF/RpidD585bOQIkszvo+6gIfAdSraOaCA=; b=CVlo+tvcnqlSB3antAbDjyRq3c MukcHQz1AxUxKj3rxgwbSF+q51O85jAanvh4iGiTH96Y39c4raaxyrVABXHhLhaziuHMlWqFyIzrD TtCpHAZGtIyHLkNjwySWvt4iwxXmsT/V+d55huVxqghg6sO+jLgpZxZJsEdHi0dXkres6ZznGw/ki seyRYzNyi7/A93AWewftqt/Yb1DLllAUPfoO+3p+OIwqXq59yzeGrCriLmfsHX9WQUgu6+F9VquuP H1QrYpiwk/KjF4IGF9clR+MMOLq2jogFfHcBQaFrfwFUxQiDoxk2Ru4O1xNjx98ucG7/XahTS3HLO f2vnuUBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ktrDw-0006zd-O3; Mon, 28 Dec 2020 12:02:04 +0000 Received: from www.zeus03.de ([194.117.254.33] helo=mail.zeus03.de) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ktrDt-0006yr-Vc for linux-arm-kernel@lists.infradead.org; Mon, 28 Dec 2020 12:02:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=k1; bh=x8d6E7LhLcE7mqb0dlHuGYcSOVz ajGK8Q+Yq7j5pGYI=; b=B5mZjNCFkkXC+qrganeTi20gN9XuJDLKo98vGiE0pVC 6plplB1jc3VviNIs5WjFsJYpdLGRBRQSrj/dUEpnFxdkRsRakiVS0ZZ4EYu0IkdS DCPP9Jj2hHMXa4MOtRU3Gdu/lzjB+qjeccX4QGiZ9hVakX/PGL/D21dthzG7+vqU = Received: (qmail 1747085 invoked from network); 28 Dec 2020 13:01:57 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 28 Dec 2020 13:01:57 +0100 X-UD-Smtp-Session: l3s3148p1@PvdqCoW3DJUgAwDPXwIpAOUwDQytQs2L From: Wolfram Sang To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm: smp: remove unused variable Date: Mon, 28 Dec 2020 13:01:47 +0100 Message-Id: <20201228120147.59387-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201228_070202_253985_28DBCAE2 X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Russell King , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Wolfram Sang , Thomas Gleixner Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Not used anymore after refactoring: arch/arm/kernel/smp.c: In function ‘show_ipi_list’: arch/arm/kernel/smp.c:543:16: warning: variable ‘irq’ set but not used [-Wunused-but-set-variable] 543 | unsigned int irq; Fixes: 88c637748e31 ("ARM: smp: Use irq_desc_kstat_cpu() in show_ipi_list()") Signed-off-by: Wolfram Sang Cc: Thomas Gleixner Cc: Marc Zyngier Reviewed-by: Geert Uytterhoeven --- arch/arm/kernel/smp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 5c48eb4fd0e5..74679240a9d8 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -540,12 +540,9 @@ void show_ipi_list(struct seq_file *p, int prec) unsigned int cpu, i; for (i = 0; i < NR_IPI; i++) { - unsigned int irq; - if (!ipi_desc[i]) continue; - irq = irq_desc_get_irq(ipi_desc[i]); seq_printf(p, "%*s%u: ", prec - 1, "IPI", i); for_each_online_cpu(cpu)