From patchwork Wed Sep 13 14:08:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 139014 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:a8d:b0:3f2:4152:657d with SMTP id gr13csp6510vqb; Wed, 13 Sep 2023 11:34:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEn0Nn4Re68yoBNN6L0++g9e98ALm6LIVX2ET/BNPd23Q+Zhm+48gUORaHTxcLhqsYmqgRI X-Received: by 2002:a05:6a00:1807:b0:68a:6018:a66f with SMTP id y7-20020a056a00180700b0068a6018a66fmr5095248pfa.2.1694630076415; Wed, 13 Sep 2023 11:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694630076; cv=none; d=google.com; s=arc-20160816; b=VcVfCyxZKDIxLuGEH6mD3jLfkUuUjeI4wB2W1lHdd6+wWK9xr3apjoSja+eVO/E8JX zp8dS2wzF4Q4lk/gKvZoW3KCF2ZVmBsPPk9VS4xda5iGDgZtD+Zpdqh3HJjqJLlKlO1n /V13kpuVeeJ3EAcN51/wcA9sDnVxY9szaMrL1SK3KSxtYTMlsCp4JdZjzD32Y1qz9kiY qHbKUTWRTEPTEYnDkjo2FEQkEvkDmNnvzn70TI+VEjXKJips6MeHSK3wa6L2K2lDNKQN zi3DhQug7c+pjvm4OM1T9gqo19DFCBOY+Ju7VVDojPuEZ2grW4HecGY4RJGPDwP/xZhO 86HQ== 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=wMRIxFSnGsdohm0JDPxFQpFzGbbdxBcizBx7asPyU7c=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=HOObgI5i3KwVT0f+ppOoB28zL9dQh1SybLT029e5yWuaHQI7KmGUBs9a90tf2/roeV 6Jcdr157xgi4N/A27/oLXjeHULvwDryilhAZqfGcGPOPyFEhn3A5kiBom3p2dcP9aZAx 171DjUvOzhi17jI7NYfFr/BqN1metDgHYKx3f9E59jUzsiwT+ixzKCXSq96PvFVZqczA W+U2gA7MDZNzkNRihlCx2RDsXnC0yojNjrYDkUNUY5On3zantwitVjRtkb4UIaDlyvdh herziJkYRloqxnXr1NZ/VcE2YbNqocHyeaIdRsMnUOT6zq3bo4hhvnluYhGi9K/pz0N8 C5Tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id r10-20020a632b0a000000b0056baff5c55esi10394977pgr.74.2023.09.13.11.34.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 11:34:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B46AB83F0297; Wed, 13 Sep 2023 07:10:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241488AbjIMOKC (ORCPT + 36 others); Wed, 13 Sep 2023 10:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241336AbjIMOJN (ORCPT ); Wed, 13 Sep 2023 10:09:13 -0400 Received: from gauss.telenet-ops.be (gauss.telenet-ops.be [195.130.132.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6E051BF4 for ; Wed, 13 Sep 2023 07:08:51 -0700 (PDT) Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by gauss.telenet-ops.be (Postfix) with ESMTPS id 4Rm2PG4Kgbz4x9kM for ; Wed, 13 Sep 2023 16:08:50 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:f674:9611:cd05:f25a]) by laurent.telenet-ops.be with bizsmtp id lS8p2A00y3fvA4V01S8pnd; Wed, 13 Sep 2023 16:08:50 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qgQXe-003cth-FU; Wed, 13 Sep 2023 16:08:47 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qgQXv-00FV6o-QF; Wed, 13 Sep 2023 16:08:47 +0200 From: Geert Uytterhoeven To: linux-m68k@lists.linux-m68k.org Cc: Arnd Bergmann , Finn Thain , Michael Schmitz , Philip Blundell , Greg Ungerer , Joshua Thompson , Sam Creasey , Laurent Vivier , linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 43/52] m68k: sun3: Remove unused start_page in sun3_bootmem_alloc() Date: Wed, 13 Sep 2023 16:08:33 +0200 Message-Id: <361c4562350c8739f6c0da34f7c416b2678fae7c.1694613528.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:10:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776948426807341313 X-GMAIL-MSGID: 1776948426807341313 When building with W=1: arch/m68k/sun3/config.c: In function ‘sun3_bootmem_alloc’: arch/m68k/sun3/config.c:110:23: warning: variable ‘start_page’ set but not used [-Wunused-but-set-variable] 112 | unsigned long start_page; | ^~~~~~~~~~ Fix this by removing the variable and the assignment, now the last user is gone. Fixes: 1008a11590b966b4 ("m68k: switch to MEMBLOCK + NO_BOOTMEM") Signed-off-by: Geert Uytterhoeven Acked-by: Arnd Bergmann --- v2: - Add Acked-by. --- arch/m68k/sun3/config.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/m68k/sun3/config.c b/arch/m68k/sun3/config.c index 4550cf25b6f0880a..6e24920e4195490b 100644 --- a/arch/m68k/sun3/config.c +++ b/arch/m68k/sun3/config.c @@ -109,13 +109,10 @@ static void sun3_halt (void) static void __init sun3_bootmem_alloc(unsigned long memory_start, unsigned long memory_end) { - unsigned long start_page; - /* align start/end to page boundaries */ memory_start = ((memory_start + (PAGE_SIZE-1)) & PAGE_MASK); memory_end = memory_end & PAGE_MASK; - start_page = __pa(memory_start) >> PAGE_SHIFT; max_pfn = num_pages = __pa(memory_end) >> PAGE_SHIFT; high_memory = (void *)memory_end;