Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp491031pxa; Wed, 5 Aug 2020 06:28:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwauFLXIstE1tGyWT6tjTwSqXtpXmFBCvaBAf+YLmKC2h65tAM1EDTxal9gamYUePS3TmAA X-Received: by 2002:a17:906:1f96:: with SMTP id t22mr3092535ejr.381.1596634125354; Wed, 05 Aug 2020 06:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596634125; cv=none; d=google.com; s=arc-20160816; b=YzpZPb521J75WsUKveSGaA3GRvnGXv6wUV66htON/ZmXZ51qL51hpKTjqx3zIFmMpy qjoW/aluUbwIlBZKrF9OLwZT2kdGAXIXHGe/69TAUAJ6U48aJRetl6T+9BXFAgEgvh+e U3gTu6fW2RbJrCDrMHLhqVK+rKD3vNELGH9Yz0b4sl9JlZ8gy8Oq9XnCu3UZ08Sf3za/ FYvGZZeJjvKFMpwiyt+WvPxBhgQThxqV3iZV6kVIomFqhhdVjnmJ0AMNPvcnjqIHQD95 IgXU+4mtVH3Flh1VWphglWy3fsUButLKIvF20jVa0lsEQT3jzgTbbegtGPOxGsvSNLLK SSCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=n0BQjDH3EXdybHCU3RGs+eD+Dz14VYUltYBt14vghGk=; b=CdnoYKdB2j1AZhMIoMe3ECF5OlNXLq55pClb4G3lrFi9WlwIVNoZHgJNSwgHujUv9D GeghOJxLQrEPE0Yu6RBj5B1VZOQIO9Xt6sE+fD1vftSLlJVvLqvpltu3/SRlG9ZmiEwI /9h0yf6lRB2JaZxN0UDKqLKDdU0ucDFbQBluWj3Sx4wgdUD2jwLs138hGtKp0AUc2q66 +r3kE4lL3Wg77eNmpBFiuxeI3+GIWmTSDwleYht4aW2N6T3R43cMYBTMvEJVEnX3kG/R 2jbJyo4vMdTFCy3saqmD8VkOrsl9ZWRWd1m3jjxkY1htyAt1qBFtMwcnJ+sqwlxhzX24 xw2w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si1241384eja.172.2020.08.05.06.27.53; Wed, 05 Aug 2020 06:28:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727079AbgHENEe (ORCPT + 99 others); Wed, 5 Aug 2020 09:04:34 -0400 Received: from elvis.franken.de ([193.175.24.41]:35420 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728346AbgHEMfk (ORCPT ); Wed, 5 Aug 2020 08:35:40 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1k3HAl-0001HW-00; Wed, 05 Aug 2020 13:01:27 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 27D27C0BF1; Wed, 5 Aug 2020 12:58:44 +0200 (CEST) Date: Wed, 5 Aug 2020 12:58:44 +0200 From: Thomas Bogendoerfer To: Mike Rapoport Cc: Andrew Morton , Andy Lutomirski , Baoquan He , Benjamin Herrenschmidt , Borislav Petkov , Catalin Marinas , Christoph Hellwig , Dave Hansen , Emil Renner Berthing , Ingo Molnar , Hari Bathini , Marek Szyprowski , Max Filippov , Michael Ellerman , Michal Simek , Mike Rapoport , Palmer Dabbelt , Paul Mackerras , Paul Walmsley , Peter Zijlstra , Russell King , Stafford Horne , Thomas Gleixner , Will Deacon , Yoshinori Sato , clang-built-linux@googlegroups.com, iommu@lists.linux-foundation.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, openrisc@lists.librecores.org, sparclinux@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, x86@kernel.org Subject: Re: [PATCH v2 17/17] memblock: use separate iterators for memory and reserved regions Message-ID: <20200805105844.GA11658@alpha.franken.de> References: <20200802163601.8189-1-rppt@kernel.org> <20200802163601.8189-18-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200802163601.8189-18-rppt@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 02, 2020 at 07:36:01PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > for_each_memblock() is used to iterate over memblock.memory in > a few places that use data from memblock_region rather than the memory > ranges. > > Introduce separate for_each_mem_region() and for_each_reserved_mem_region() > to improve encapsulation of memblock internals from its users. > > Signed-off-by: Mike Rapoport > --- > arch/mips/netlogic/xlp/setup.c | 2 +- Acked-by: Thomas Bogendoerfer Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]