Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3542539pxj; Mon, 24 May 2021 09:01:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXfOQkuIF/AGXh97rZeVzroGVADIAXXO51iT3ARniTi3+O+FKv7bckm5UxURknfymJlWiA X-Received: by 2002:a92:cd85:: with SMTP id r5mr16350003ilb.294.1621872118144; Mon, 24 May 2021 09:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872118; cv=none; d=google.com; s=arc-20160816; b=zX8PkgSCD9OzYs7dGjmL7pa6wM641t2/qxMTI0syA/J1WaE4L1B4RPBYXR+QSPDY5q gW0o/BmTbbwc2wRzsIGFWu3Lx9tqEcf9SCbcHuBBnYqOn+m7tODno5WnNEs4JfPSwkoP 8Nln/+aQktiRsv3hh42r9em2i2fP0pTUxSTqklsmE3zB44rdTgAXCxvvQf50RPz4Ig2p PGyZdoki72kyvLf6CASTkO3PYY1KAHsZjxLKo7Hq0FkTLdDMOAf1S0bjgxgc8U6MxqAe HN19B2uVTSchC0P0KU+IvbxIp3IemKbVS9YYrCjqm4DNth7KVk7vIaN0SOPicdJ77Znk uvng== 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=bVMSHPIYr+bp0Y9T/ocHtXhjKWureue2oPsV16n/ExM=; b=QWNrTvM2A2pM7TK56esLIaiNGcKFbaPg9AMR3nksAplibzf84Tt4THEdQKOZNTPOzp TteICGOoIfSpR7I8VTKOqXlxgyifMdYXiCnonfOhVzuNduPQtM1QxjUZ/LfRpbbx4iPk vYVJklTynzVdnN3CpDV8oDQ27clST0Alm5WIKKwaoMf5qw98c+/bKDFpPCR7tbaWVtNc iK9yuAlLoFbzah2NVhUezjGyW2KG5oN3BRyyi9xPDi0GEzuFVUWWyABnTSE/gXd9h9Hf ABLjW/m755LAElyudsCVh8CGveGBqaoGKPwBiT7yYO8NXWUGyumi5noJy/orlsWSoK1c uXQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U+MxT6m+; 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 c7si17499652ioi.54.2021.05.24.09.01.43; Mon, 24 May 2021 09:01:58 -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=U+MxT6m+; 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 S234734AbhEXQCV (ORCPT + 99 others); Mon, 24 May 2021 12:02:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:40464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235079AbhEXPzp (ORCPT ); Mon, 24 May 2021 11:55:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4084A6193F; Mon, 24 May 2021 15:42:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870929; bh=SFIWmuCmd6K2BeIYJTK9POv4VRaOLzfGVszXVW0XUB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U+MxT6m+WE4Hjtl+kc3vkgZDPp9XAbM4dWyYpNYyfDlP2L+GR44zjVZa30e0TPoZE VdOh8ZEupr/cfQ1ZFhGNyyTnXOpI31rqAZiTv5Q2z43JWMHCNJdghWU5k7eHAsIqMc eOZY32CtQQixjhxqxd/TlD3rq2VyxM4ihh9qzUhQ= 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.10 100/104] openrisc: mm/init.c: remove unused memblock_region variable in map_ram() Date: Mon, 24 May 2021 17:26:35 +0200 Message-Id: <20210524152336.161475222@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152332.844251980@linuxfoundation.org> References: <20210524152332.844251980@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 @@ -76,7 +76,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; @@ -122,7 +121,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); } }