Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1694329pxj; Sun, 9 May 2021 02:13:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxniZinv003mqfvVXEXzG7K2wrHazyRnZtURI4EqwyTCQIwc2YiBLBfs50Zfd/yoMeBnCMz X-Received: by 2002:a02:b398:: with SMTP id p24mr16825281jan.74.1620551597181; Sun, 09 May 2021 02:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620551597; cv=none; d=google.com; s=arc-20160816; b=co099/qHBKKTt4klx+eh44SBCaNbz7NxVj2Jr4bVAzEYkgaIcUEcSpjA2UQsMprTPo yMDNCHQHa0zsW8JwMMzK9KivUREUWOHUAxkIogSNPEiuQOvCJw6cdAWgVydhWtMbHBp8 0V5GchuhDtY5CZtd6m6jY/LFY3bmwW661BwBUnG/yrBwIwK0yADr0KnOFzK7Aft2uS9N 6EcuZ42iOmJjz07QOve4eoJNUCfQsLJvG8VGOq+C8dDrAH+uQ8+46AHH5q/p3kADwMSU gcs22PT2GeWdTzKBuuQz+DSqpuQt5c70zq0eQYylk+1l81Vayxd3juqP4VSKGiHvM2dd hpjg== 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 :dkim-signature; bh=6QuH7Fj2bBiWwqmQzw6d6yeLF8ZNGBphVLB3X8NWh48=; b=Q/kxRbK579JTqafrPssx8wvwEZlIvsNzWUWekeU+hVk8U0Anghbl4qOnPj6OF2Wp+k FdtizHfsSkn4RHgVIg4s0hViBtM+kIdxl8r1WsRki/tr9A8ttuVdpAfJZL/CqJOJQTks lUjqBq5WYTM67LOtav333lKWzZePDfE2K3TpeIygyfTO5eMv2/KzGVYQ0unLJqDiRSPK 4+KPqd28hgRgnhwXJjHxdpZfsXg+vXxYBhp9aIJF7AM0xpugJrqrcJ7A+mVljMph/Hap uV1hY0J2Ir8XsGDI67UiWxxg/o9JVQfGmaqVqjUeO9+tVGNe9sleCj99DYVOFXWhfVyo Qh3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BrUZPb9P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t13si11510178jai.45.2021.05.09.02.12.59; Sun, 09 May 2021 02:13:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BrUZPb9P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229698AbhEIJMT (ORCPT + 99 others); Sun, 9 May 2021 05:12:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:37520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbhEIJMR (ORCPT ); Sun, 9 May 2021 05:12:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F03D6141D; Sun, 9 May 2021 09:11:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620551475; bh=dTPu7qA+xLGeJ/0FDcGhgI4f0XSe/BLwn8owpVQCXU4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BrUZPb9PWta8j618Q2nRKtwWz4Kgme+kHuy2vmxb9IjLL/+5XW0FpJPI9J9W1GLY3 QozJ3kTd0TbKMyNf6d2L/mVk/RQnQTrC7GPssaT+CclpgC7XGVbO80WkUOcYBAvW+v aulBp/ENa7iKuuquLKrsugOJu6NR2qjkJUJMQgClXbNzVz+RRc/kAX4rSfWkFuNoCa jtXooiGfc0LBV2Q6fCEJ+getejIiBUY9Q+JpLaJSJ3fLmAcKRoK8ZxEQx/JJUvPKav B4U25EWsPRTAUgMHmZ5XeVOEKb4aWI9qtZwnDm/rXRnHQ0r8FWmbw11d7PB8GdCBhZ mvU9tPNdUCt2Q== From: Mike Rapoport To: Stafford Horne Cc: Jonas Bonn , Stefan Kristiansson , Mike Rapoport , Mike Rapoport , openrisc@lists.librecores.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] openrisc: mm/init.c: remove unused variable 'end' in paging_init() Date: Sun, 9 May 2021 12:11:03 +0300 Message-Id: <20210509091103.7985-3-rppt@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210509091103.7985-1-rppt@kernel.org> References: <20210509091103.7985-1-rppt@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Rapoport A build with W=1 enabled produces the following warning: CC arch/openrisc/mm/init.o arch/openrisc/mm/init.c: In function 'paging_init': arch/openrisc/mm/init.c:131:16: warning: variable 'end' set but not used [-Wunused-but-set-variable] 131 | unsigned long end; | ^~~ Remove the unused variable 'end'. Signed-off-by: Mike Rapoport --- arch/openrisc/mm/init.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c index f3fa02b8838a..6e38ec96cab8 100644 --- a/arch/openrisc/mm/init.c +++ b/arch/openrisc/mm/init.c @@ -128,7 +128,6 @@ void __init paging_init(void) { extern void tlb_init(void); - unsigned long end; int i; printk(KERN_INFO "Setting up paging and PTEs.\n"); @@ -144,8 +143,6 @@ void __init paging_init(void) */ current_pgd[smp_processor_id()] = init_mm.pgd; - end = (unsigned long)__va(max_low_pfn * PAGE_SIZE); - map_ram(); zone_sizes_init(); -- 2.28.0