From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759386AbZBMStx (ORCPT ); Fri, 13 Feb 2009 13:49:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752608AbZBMStp (ORCPT ); Fri, 13 Feb 2009 13:49:45 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:54642 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751967AbZBMSto (ORCPT ); Fri, 13 Feb 2009 13:49:44 -0500 Date: Fri, 13 Feb 2009 19:49:26 +0100 From: Ingo Molnar To: Jeremy Fitzhardinge Cc: the arch/x86 maintainers , Linux Kernel Mailing List Subject: Re: [PATCH] x86 headers: protect page_32.h via __ASSEMBLY__ Message-ID: <20090213184926.GA32338@elte.hu> 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> <4995BF9F.2050509@goop.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4995BF9F.2050509@goop.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Jeremy Fitzhardinge wrote: > 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.) Agreed - but it needs fixes to the .S files, these assembly files include pgtable.h or page.h: arch/x86/boot/compressed/head_32.S arch/x86/boot/compressed/head_64.S arch/x86/boot/header.S arch/x86/kernel/acpi/realmode/wakeup.S arch/x86/kernel/acpi/wakeup_32.S arch/x86/kernel/acpi/wakeup_64.S arch/x86/kernel/efi_stub_32.S arch/x86/kernel/entry_32.S arch/x86/kernel/entry_64.S arch/x86/kernel/head_32.S arch/x86/kernel/head_64.S arch/x86/kernel/relocate_kernel_32.S arch/x86/kernel/relocate_kernel_64.S arch/x86/kernel/trampoline_32.S arch/x86/kernel/trampoline_64.S arch/x86/kernel/vmlinux_32.lds.S arch/x86/kernel/vmlinux_64.lds.S arch/x86/lib/getuser.S arch/x86/power/hibernate_asm_32.S arch/x86/power/hibernate_asm_64.S arch/x86/xen/xen-head.S Ingo