Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3804532pxb; Mon, 4 Oct 2021 09:58:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRimojEFVZB7Rf4IWd8i4RCLxRWZAu0XH9wlqtvDtAFfwqms46zp8NHVLgXj6y3GlzXMpf X-Received: by 2002:a17:902:7e4b:b0:13d:c03f:5946 with SMTP id a11-20020a1709027e4b00b0013dc03f5946mr699179pln.4.1633366699180; Mon, 04 Oct 2021 09:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633366699; cv=none; d=google.com; s=arc-20160816; b=z6qaEtjcl34cSydVOtz4EkYmzvsCgQFkLjE5E3ahE6XCvIYtC4ZDT95/ywdWaKXCFn GYdroBEH/5wDL8taxOoyyqs1bfYmkfFPTQvRXagQNXJFUuspB4dJ/IXKLn7ZqmsFUWmg SIXAkFz5gsSBOwvnBgT7qLThr58Ulu2/2Oyn0pK/7FdmomVYiT3MnNktuVol8w6OQ6rF r84A1qRyUI9jBhoURir9c7MthX+WHDtrE/k5vxGQBOpOoH4v7Rrz+8k+tLlBvBYvhKlI vAH+xqxgZAPKva8XDAaKS6fAVsE96rz72H3XQSvb38Uem0MSlZW7BrsL4LluNuL6Chrf Y8QA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=coHxKdz3IIjOg/qyqVKZJxdbwFjFgGkyQH4A5foifEM=; b=PyH2qFOqqwsxHg75QgN5hzLH6NkD/3ingoy68nTCfDG6hxSrU5g1LZ0ErSL7O327XO TCqzETcjXqsmKM7q5W6WQFWR2sPGzFwFZOX578P8z+2mmPPaHa8hicR3Wworb2zuQcM8 xSdtubHw8WVyzOFWfBE4KmusgiVPKPI0KlhatPVsF/gnf0+Dcu415Y7eKei+2W0mTNpv X//zODeuC8Pof69Q9bePg96BuR7QjuRpM7A0X9NzpAz7AYFyfNLC67QTBZ2R0IP3lfiW mN2pW5+/Z3X+MZUoQ1CZcMPjO6MK8McaVq6dkOOf4LdEBSbBt5cwEv6kB++RrAiY5859 BxSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q+hz55D9; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si19409159plo.229.2021.10.04.09.58.05; Mon, 04 Oct 2021 09:58:19 -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=@linuxfoundation.org header.s=korg header.b=Q+hz55D9; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238501AbhJDNm2 (ORCPT + 99 others); Mon, 4 Oct 2021 09:42:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:52290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238489AbhJDNkd (ORCPT ); Mon, 4 Oct 2021 09:40:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 90D0A63257; Mon, 4 Oct 2021 13:18:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633353524; bh=9a1cAP4z/EvByEgNLNZaOGNxAthBCtun9wgjHMIVnTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q+hz55D9CIaJt+rtNKF8TftCfNHrPfIS3o0/GHUIy1OcMyXR0s3w+4pchQnFqErJo DNXW3TvauqPjZPJVHXqt004OeDHxTEQBbeWtA/H90xvuZemAngPG3W+lWtYIPNqO+8 AyabTXc2eZLTl2iZHUT6g8rST0xHLasKGNHnxvaY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Mike Rapoport , Andreas Oetken , Dinh Nguyen Subject: [PATCH 5.14 161/172] NIOS2: setup.c: drop unused variable dram_start Date: Mon, 4 Oct 2021 14:53:31 +0200 Message-Id: <20211004125050.171737048@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125044.945314266@linuxfoundation.org> References: <20211004125044.945314266@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap commit 9523b33cc31cf8ce703f8facee9fd16cba36d5ad upstream. This is a nuisance when CONFIG_WERROR is set, so drop the variable declaration since the code that used it was removed. ../arch/nios2/kernel/setup.c: In function 'setup_arch': ../arch/nios2/kernel/setup.c:152:13: warning: unused variable 'dram_start' [-Wunused-variable] 152 | int dram_start; Fixes: 7f7bc20bc41a ("nios2: Don't use _end for calculating min_low_pfn") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Reviewed-by: Mike Rapoport Cc: Andreas Oetken Signed-off-by: Dinh Nguyen Signed-off-by: Greg Kroah-Hartman --- arch/nios2/kernel/setup.c | 2 -- 1 file changed, 2 deletions(-) --- a/arch/nios2/kernel/setup.c +++ b/arch/nios2/kernel/setup.c @@ -149,8 +149,6 @@ static void __init find_limits(unsigned void __init setup_arch(char **cmdline_p) { - int dram_start; - console_verbose(); memory_start = memblock_start_of_DRAM();