From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758934AbZBMSo5 (ORCPT ); Fri, 13 Feb 2009 13:44:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752639AbZBMSot (ORCPT ); Fri, 13 Feb 2009 13:44:49 -0500 Received: from gw.goop.org ([64.81.55.164]:43318 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752608AbZBMSot (ORCPT ); Fri, 13 Feb 2009 13:44:49 -0500 Message-ID: <4995BF9F.2050509@goop.org> Date: Fri, 13 Feb 2009 10:44:47 -0800 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Ingo Molnar CC: the arch/x86 maintainers , Linux Kernel Mailing List Subject: Re: [PATCH] x86 headers: protect page_32.h via __ASSEMBLY__ References: <49935DD8.8010705@goop.org> <20090213120239.GL15679@elte.hu> <20090213121858.GB5483@elte.hu> <20090213122325.GA30061@elte.hu> <20090213122724.GA2172@elte.hu> <20090213123721.GA1879@elte.hu> In-Reply-To: <20090213123721.GA1879@elte.hu> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ingo Molnar wrote: > From beb6943d8df7ce9278282101af4e0f6f7b648451 Mon Sep 17 00:00:00 2001 > From: Ingo Molnar > Date: Fri, 13 Feb 2009 13:36:47 +0100 > Subject: [PATCH] x86 headers: protect page_32.h via __ASSEMBLY__ > I think this is wrong in principle. There should never be a reason to include a non-_types.h into asm. (Fine as a build fix, of course.) J > Signed-off-by: Ingo Molnar > --- > arch/x86/include/asm/page_32.h | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/include/asm/page_32.h b/arch/x86/include/asm/page_32.h > index b3f0bf7..da4e762 100644 > --- a/arch/x86/include/asm/page_32.h > +++ b/arch/x86/include/asm/page_32.h > @@ -3,6 +3,8 @@ > > #include > > +#ifndef __ASSEMBLY__ > + > #ifdef CONFIG_HUGETLB_PAGE > #define HAVE_ARCH_HUGETLB_UNMAPPED_AREA > #endif > @@ -19,8 +21,6 @@ extern unsigned long __phys_addr(unsigned long); > #define pfn_valid(pfn) ((pfn) < max_mapnr) > #endif /* CONFIG_FLATMEM */ > > -#ifndef __ASSEMBLY__ > - > #ifdef CONFIG_X86_USE_3DNOW > #include > > >