Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933670Ab0BQADc (ORCPT ); Tue, 16 Feb 2010 19:03:32 -0500 Received: from terminus.zytor.com ([198.137.202.10]:43599 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933668Ab0BQAD1 (ORCPT ); Tue, 16 Feb 2010 19:03:27 -0500 Message-ID: <4B7B31F1.60203@zytor.com> Date: Tue, 16 Feb 2010 16:01:53 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1 MIME-Version: 1.0 To: Yinghai Lu CC: Stephen Rothwell , Ingo Molnar , Thomas Gleixner , Andrew Morton , Linus Torvalds , Jesse Barnes , Christoph Lameter , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 27/35] core: move early_res References: <1265793639-15071-1-git-send-email-yinghai@kernel.org> <1265793639-15071-28-git-send-email-yinghai@kernel.org> <20100215011615.e3d35121.sfr@canb.auug.org.au> <4B786110.9020806@kernel.org> <4B7B2E3B.9060903@zytor.com> <4B7B2FE1.1030700@kernel.org> In-Reply-To: <4B7B2FE1.1030700@kernel.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 809 Lines: 22 On 02/16/2010 03:53 PM, Yinghai Lu wrote: >> >> All this does would seem is it would change a build failure into a >> runtime panic. I really fail to see how this is an improvement... > > current only x86 support to early_res replace bootmem. > > later if other arch is using that feature, it need to provide that get_max_mapped. > If so, it would be better if this code isn't compiled at all on platforms that doesn't use it. Masking a compile-time failure with a runtime failure when the code isn't actually used doesn't seem like the right thing. -hpa -- 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/