From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754254AbZA1R7x (ORCPT ); Wed, 28 Jan 2009 12:59:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751354AbZA1R7l (ORCPT ); Wed, 28 Jan 2009 12:59:41 -0500 Received: from mail-ew0-f21.google.com ([209.85.219.21]:46847 "EHLO mail-ew0-f21.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbZA1R7k (ORCPT ); Wed, 28 Jan 2009 12:59:40 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=gRwxvHPPMQ3fr8hL/7+t1+TgjzniA0GOE6zbSE0IpByx35nega5+4PD3wUK0II7Xxk Fi3m/0ABI4W4TVnkd2iTmXLHDsLhEwp1RPz3VNRmVKSRJ8kDw4kKyJ8DP5FuPV4Ss877 32hX1W2i+2axkSJwDw2wcZtYmwsi6J3Dd0hpg= MIME-Version: 1.0 In-Reply-To: <20090127174158.519e5abd.akpm@linux-foundation.org> References: <1232919337-21434-1-git-send-email-righi.andrea@gmail.com> <20090127174158.519e5abd.akpm@linux-foundation.org> Date: Wed, 28 Jan 2009 18:59:37 +0100 Message-ID: Subject: Re: [PATCH -mmotm] mm: unify some pmd_*() functions From: Andrea Righi To: Andrew Morton Cc: linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Roman Zippel , David Howells , Hirokazu Takata 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 On Wed, Jan 28, 2009 at 2:41 AM, Andrew Morton wrote: > On Sun, 25 Jan 2009 22:35:37 +0100 > Andrea Righi wrote: > >> diff --git a/include/asm-generic/pgtable-nopmd.h b/include/asm-generic/pgtable-nopmd.h >> index a7cdc48..b132d69 100644 >> --- a/include/asm-generic/pgtable-nopmd.h >> +++ b/include/asm-generic/pgtable-nopmd.h >> @@ -4,6 +4,7 @@ >> #ifndef __ASSEMBLY__ >> >> #include >> +#include >> >> struct mm_struct; >> > > Why not include the preferred ? Using linux/bug.h leads to include hell (i.e. on x86 with CONFIG_X86_PAE not set): ... CC arch/x86/kernel/asm-offsets.s In file included from include/linux/thread_info.h:55, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/stat.h:60, from include/linux/module.h:10, from include/linux/bug.h:4, from include/asm-generic/pgtable-nopmd.h:7, from /home/arighi/Software/linux/mmotm/arch/x86/include/asm/page.h:132, from /home/arighi/Software/linux/mmotm/arch/x86/include/asm/processor.h:18, from /home/arighi/Software/linux/mmotm/arch/x86/include/asm/atomic_32.h:6, from /home/arighi/Software/linux/mmotm/arch/x86/include/asm/atomic.h:2, from include/linux/crypto.h:20, from arch/x86/kernel/asm-offsets_32.c:7, from arch/x86/kernel/asm-offsets.c:2: /home/arighi/Software/linux/mmotm/arch/x86/include/asm/thread_info.h:34: error: expected specifier-qualifier-list before 'mm_segment_t' ... -Andrea