Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756277Ab0LPWMX (ORCPT ); Thu, 16 Dec 2010 17:12:23 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:43599 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751819Ab0LPWMV (ORCPT ); Thu, 16 Dec 2010 17:12:21 -0500 MIME-Version: 1.0 In-Reply-To: <20101216173846.8185.82045.stgit@bob.kio> References: <20101216173614.8185.19462.stgit@bob.kio> <20101216173846.8185.82045.stgit@bob.kio> From: Linus Torvalds Date: Thu, 16 Dec 2010 14:03:21 -0800 Message-ID: Subject: Re: [PATCH 6/9] resources: add arch hook for preventing allocation in reserved areas To: Bjorn Helgaas Cc: Jesse Barnes , Len Brown , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Adam Belay Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 984 Lines: 21 On Thu, Dec 16, 2010 at 9:38 AM, Bjorn Helgaas wrote: > > This adds arch_remove_reservations(), which an arch can implement if it > needs to protect part of the address space from allocation. Oh, I just realized - we've had gcc (or maybe "as") bugs when the weak symbol is in the same compilation unit as the caller, and some part of the toolchain just ends up short-circuiting it (either gcc inlines it, or maybe it was that as resolves it early). Making the "weak" part not work, because it binds strongly. It may be that we don't support those gcc versions any more, but I thought I'd bring the issue up. It's safer to put the weak functions in some other file if possible. Linus -- 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/