Message ID | 495c7f925f346880b26e21dea63b30cdfcb2dcdf.1694093327.git.geert@linux-m68k.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp46726vqo; Thu, 7 Sep 2023 10:33:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+XOLl3IfyPA2FprN369NLK85g0dPIYWI1G3wXMLBdg/z4oxrZCYU72ShCuNsNrJP8yE8D X-Received: by 2002:a17:902:c945:b0:1bb:32de:95c5 with SMTP id i5-20020a170902c94500b001bb32de95c5mr275727pla.65.1694108018891; Thu, 07 Sep 2023 10:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694108018; cv=none; d=google.com; s=arc-20160816; b=gDbSCwFwoZ/xZ9yXckAKeh0FShmoueLHzVuRDSpbOstxxkDLnYX0aVGkv0FZMBpAqd aJJBaTjeKSu1qrpdde+jJ6hRHCP4xyMTVQ6wZbrGkUJ0usNHtqxEiaD1l2VyX3RPzJzr oQAFw4z5fcn+QxmomxEh99DcZjAn3G5SfV+XsBwa4LEnjEo6cnLnkqATCNBNA2aORAhv qK9CcFCWCkC05+4d/U81rWG2J4fmgT0AvMjmVDtOP2iFmVdN4NQxbr1Mxs1fwgJ8UAYI opjnnva50x0Pg8Yiy/oKGODQiFPKKq2ifKA17lnCci4CeykkLqNkj6PDdiVow/29cSxy QisA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jVDb5wrgt1xb+x1Oxq6DiKf252HbzoLtwykL0y1nTG8=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=i+Py77T94lywDSPosVxLwM1synBgVgKsMiD3eP7DZTWfpmH3strbZq9IFMBjRLuJ/c w0YNj7iUN0RkaqPsqQEslSpwqx3b3QFWsh6FUrNlgl3IsqCDjseAPm5kAOmmYiqktz2s F0auOn1K0R1pR4NgR8hWeqI4BmL0JhSyW3jzUgVtuRrG5od8+fygb3YHDltkTREJVk3x e9Kj8Rtt9nmJG6fbRcysUovPQy1f+k+/RTpdYi1DzskMpm33Cxe/l5VssVjsxNaOra81 uaRrXt0HZS6tnXzC4PUuKHiDjbejUh6tEkNZJHf1cmL859eNWz1VXcz8E5lT/gROF6Zf 1bUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a170902e88a00b001b87b716f87si40171plg.329.2023.09.07.10.33.31; Thu, 07 Sep 2023 10:33:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244912AbjIGPgh (ORCPT <rfc822;andrew.luo25@gmail.com> + 44 others); Thu, 7 Sep 2023 11:36:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344276AbjIGPcv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 7 Sep 2023 11:32:51 -0400 Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [IPv6:2a02:1800:110:4::f00:11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 707E51BFD for <linux-kernel@vger.kernel.org>; Thu, 7 Sep 2023 08:32:29 -0700 (PDT) Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4RhL535w7gz4x4RM for <linux-kernel@vger.kernel.org>; Thu, 7 Sep 2023 15:41:59 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by baptiste.telenet-ops.be with bizsmtp id j1hy2A00X1C8whw011hyX9; Thu, 07 Sep 2023 15:41:59 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qeFGR-002mAP-0h; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qeFGg-00CMiM-8w; Thu, 07 Sep 2023 15:41:58 +0200 From: Geert Uytterhoeven <geert@linux-m68k.org> To: linux-m68k@lists.linux-m68k.org Cc: Arnd Bergmann <arnd@arndb.de>, Finn Thain <fthain@linux-m68k.org>, Michael Schmitz <schmitzmic@gmail.com>, Philip Blundell <philb@gnu.org>, Greg Ungerer <gerg@linux-m68k.org>, Joshua Thompson <funaho@jurai.org>, Sam Creasey <sammy@sammy.net>, Laurent Vivier <laurent@vivier.eu>, linux-kernel@vger.kernel.org, Geert Uytterhoeven <geert@linux-m68k.org> Subject: [PATCH 42/52] m68k: sun3: Remove unused orig_baddr in free_baddr() Date: Thu, 7 Sep 2023 15:41:43 +0200 Message-Id: <495c7f925f346880b26e21dea63b30cdfcb2dcdf.1694093327.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <cover.1694093327.git.geert@linux-m68k.org> References: <cover.1694093327.git.geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776401010251404568 X-GMAIL-MSGID: 1776401010251404568 |
Series |
None
|
|
Commit Message
Geert Uytterhoeven
Sept. 7, 2023, 1:41 p.m. UTC
When building with W=1:
arch/m68k/sun3/sun3dvma.c: In function ‘free_baddr’:
arch/m68k/sun3/sun3dvma.c:208:23: warning: variable ‘orig_baddr’ set but not used [-Wunused-but-set-variable]
196 | unsigned long orig_baddr;
| ^~~~~~~~~~
Fix this by removing the unused variable and assignment, which were
futile since their introduction in v2.4.5.2.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
arch/m68k/sun3/sun3dvma.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/m68k/sun3/sun3dvma.c b/arch/m68k/sun3/sun3dvma.c index f66b2413209069f2..6ebf52740ad7c00d 100644 --- a/arch/m68k/sun3/sun3dvma.c +++ b/arch/m68k/sun3/sun3dvma.c @@ -193,9 +193,7 @@ static inline int free_baddr(unsigned long baddr) unsigned long len; struct hole *hole; struct list_head *cur; - unsigned long orig_baddr; - orig_baddr = baddr; len = dvma_entry_use(baddr); dvma_entry_use(baddr) = 0; baddr &= DVMA_PAGE_MASK;