Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3551302pxj; Mon, 24 May 2021 09:11:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypZJgq9Wk+MitQ/mZD/6B/HhzqeA4aXDi77V1wgtGYDRxzOkxzQsT5pxBJGEBO3SJ1Btm1 X-Received: by 2002:a05:6602:146:: with SMTP id v6mr13747016iot.117.1621872675349; Mon, 24 May 2021 09:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872675; cv=none; d=google.com; s=arc-20160816; b=YeSd1SwkNlVQtcdxDk7f05G1+8xVJPdmxu11IJhIHx69ey1O3r+0+p2nR6oKKdH5CG bA3LKKM2jOC/aIggQ3/VZz4oESXaUGEsi+J8GxJCpiOqwmO047+7Sw5EAaG67r49tLAH RCvoWCbukl+4IWP/z4NK4PxfWjMMrKV4bQs45p5CCLEp0YM2RXfsOY74Z+x5CYS0f87F 0h1CRt8dcvT0b+/Pw08PEI/niDi1iQu1ryqTYWgV3zQ7RVifCy0pEVBgBPVg9YNgx3mp 1S+UzVaYFRUQPj57MGzinXSofb22S70nZo+m+kpJVzw4+mlBVDnzmQuYNtApsACW8/4S mboQ== 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=H2SxwvAwuDNLwT/eEnHcwgDsRmt8dUl3L49eKzYNx2Y=; b=Xh0r8tYqDyMZKIHbKyjz9zHBm0qfvRm1/15LPZVzQm8hwZRqTHfC7+3gI0lXs7A8Nr mNhfv/fKDKpryFitk16iPlOjkBKDutf46sl7U2xb/AnK5dt/iEdmxyI98vb9fBhQ6dsf TBUry35SKZ+t6VBt/JQCkY1csiNfJ6K0Kavrhi/fVDlkifLNkhmP9uwgJcp0r1IFuicM O3zYxE4S6UqsUVw91OVc42IjB3mTbYqc/QX9kt/gog2y1cVyBLejgGRrjuCqIPHDsEpd +2kU2zSmeLIrgo8Bt9+tWGq6eKSXCo4PD+C995un2MubMeZPv8HRTzNRJdv7QS2P/KaF Vw6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lFrcuDms; 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 h17si2191525jas.28.2021.05.24.09.11.02; Mon, 24 May 2021 09:11:15 -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=lFrcuDms; 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 S238167AbhEXQJw (ORCPT + 99 others); Mon, 24 May 2021 12:09:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:48382 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236031AbhEXQBU (ORCPT ); Mon, 24 May 2021 12:01:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1294761998; Mon, 24 May 2021 15:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621871209; bh=2Z+d4Wgsx/otMK7BW/mHbEtbdQX5RNVNLnz08ZqUfkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lFrcuDmsvdMAtl3klY4EsFnGB+Zb/XjnlF5bgcudILrIHbsUgPHK+VGphNrT6DUYM ehRPrqZL9rfsYbjJIEHz336g427QKVNHIlsBx0Ko+D3FhnWFiplw8F+XXhsWR5bJAt GKHeND7l4fEVI/cJnrh5NIMyHUL97cL9S6HyZxNk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Mike Rapoport , Stafford Horne Subject: [PATCH 5.12 123/127] openrisc: mm/init.c: remove unused memblock_region variable in map_ram() Date: Mon, 24 May 2021 17:27:20 +0200 Message-Id: <20210524152339.031806993@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152334.857620285@linuxfoundation.org> References: <20210524152334.857620285@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: Mike Rapoport commit 4eff124347191d1548eb4e14e20e77513dcbd0fe upstream. Kernel test robot reports: cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> arch/openrisc/mm/init.c:125:10: warning: Uninitialized variable: region [uninitvar] region->base, region->base + region->size); ^ Replace usage of memblock_region fields with 'start' and 'end' variables that are initialized in for_each_mem_range() and remove the declaration of region. Fixes: b10d6bca8720 ("arch, drivers: replace for_each_membock() with for_each_mem_range()") Reported-by: kernel test robot Signed-off-by: Mike Rapoport Signed-off-by: Stafford Horne Signed-off-by: Greg Kroah-Hartman --- arch/openrisc/mm/init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/arch/openrisc/mm/init.c +++ b/arch/openrisc/mm/init.c @@ -75,7 +75,6 @@ static void __init map_ram(void) /* These mark extents of read-only kernel pages... * ...from vmlinux.lds.S */ - struct memblock_region *region; v = PAGE_OFFSET; @@ -121,7 +120,7 @@ static void __init map_ram(void) } printk(KERN_INFO "%s: Memory: 0x%x-0x%x\n", __func__, - region->base, region->base + region->size); + start, end); } }