Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752963AbaBRXtM (ORCPT ); Tue, 18 Feb 2014 18:49:12 -0500 Received: from mail-qc0-f169.google.com ([209.85.216.169]:59543 "EHLO mail-qc0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752920AbaBRXtH (ORCPT ); Tue, 18 Feb 2014 18:49:07 -0500 Date: Tue, 18 Feb 2014 18:49:04 -0500 (EST) From: Nicolas Pitre To: Russell King - ARM Linux cc: Laura Abbott , David Brown , Daniel Walker , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Eric Miao , Haojian Zhuang , Ben Dooks , Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Leif Lindholm , Grygorii Strashko , Catalin Marinas , Rob Herring , Ard Biesheuvel , Will Deacon , Santosh Shilimkar , linux-mm@kvack.org, Andrew Morton , Courtney Cavin , Marek Szyprowski , Grant Likely Subject: Re: [PATCHv4 2/2] arm: Get rid of meminfo In-Reply-To: <20140218230710.GO21483@n2100.arm.linux.org.uk> Message-ID: References: <1392761733-32628-1-git-send-email-lauraa@codeaurora.org> <1392761733-32628-3-git-send-email-lauraa@codeaurora.org> <20140218230710.GO21483@n2100.arm.linux.org.uk> User-Agent: Alpine 2.11 (LFD 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Feb 2014, Russell King - ARM Linux wrote: > On Tue, Feb 18, 2014 at 02:15:33PM -0800, Laura Abbott wrote: > > memblock is now fully integrated into the kernel and is the prefered > > method for tracking memory. Rather than reinvent the wheel with > > meminfo, migrate to using memblock directly instead of meminfo as > > an intermediate. > > > #define NR_BANKS CONFIG_ARM_NR_BANKS > > > > -struct membank { > > - phys_addr_t start; > > - phys_addr_t size; > > - unsigned int highmem; > > -}; > > - > > -struct meminfo { > > - int nr_banks; > > - struct membank bank[NR_BANKS]; > > -}; > > Doesn't this make NR_BANKS (and CONFIG_ARM_NR_BANKS) unused? Still used in atag_to_fdt.c but I just sent a patch moving it there. Nicolas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/