From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with ESMTP id ADB8D6B00D8 for ; Wed, 26 Aug 2009 07:51:13 -0400 (EDT) Date: Tue, 25 Aug 2009 14:35:16 +0100 From: Mel Gorman Subject: Re: [PATCH 4/5] hugetlb: add per node hstate attributes Message-ID: <20090825133516.GE21335@csn.ul.ie> References: <20090824192437.10317.77172.sendpatchset@localhost.localdomain> <20090824192902.10317.94512.sendpatchset@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20090824192902.10317.94512.sendpatchset@localhost.localdomain> Sender: owner-linux-mm@kvack.org To: Lee Schermerhorn Cc: linux-mm@kvack.org, linux-numa@vger.kernel.org, akpm@linux-foundation.org, Nishanth Aravamudan , David Rientjes , Adam Litke , Andy Whitcroft , eric.whitney@hp.com List-ID: On Mon, Aug 24, 2009 at 03:29:02PM -0400, Lee Schermerhorn wrote: > > > Index: linux-2.6.31-rc6-mmotm-090820-1918/include/linux/node.h > =================================================================== > --- linux-2.6.31-rc6-mmotm-090820-1918.orig/include/linux/node.h 2009-08-24 12:12:44.000000000 -0400 > +++ linux-2.6.31-rc6-mmotm-090820-1918/include/linux/node.h 2009-08-24 12:12:56.000000000 -0400 > @@ -21,9 +21,12 @@ > > #include > #include > +#include > Is this header inclusion necessary? It does not appear to be required by the structure modification (which is iffy in itself as discussed in the earlier mail) and it breaks build on x86-64. CC arch/x86/kernel/setup_percpu.o In file included from include/linux/pagemap.h:10, from include/linux/mempolicy.h:62, from include/linux/hugetlb.h:8, from include/linux/node.h:24, from include/linux/cpu.h:23, from /usr/local/autobench/var/tmp/build/arch/x86/include/asm/cpu.h:5, from arch/x86/kernel/setup_percpu.c:19: include/linux/highmem.h:53: error: static declaration of kmap follows non-static declaration /usr/local/autobench/var/tmp/build/arch/x86/include/asm/highmem.h:60: error: previous declaration of kmap was here include/linux/highmem.h:59: error: static declaration of kunmap follows non-static declaration /usr/local/autobench/var/tmp/build/arch/x86/include/asm/highmem.h:61: error: previous declaration of kunmap was here include/linux/highmem.h:63: error: static declaration of kmap_atomic follows non-static declaration /usr/local/autobench/var/tmp/build/arch/x86/include/asm/highmem.h:63: error: previous declaration of kmap_atomic was here make[2]: *** [arch/x86/kernel/setup_percpu.o] Error 1 make[1]: *** [arch/x86/kernel] Error 2 > struct node { > struct sys_device sysdev; > + struct kobject *hugepages_kobj; > + struct kobject *hstate_kobjs[HUGE_MAX_HSTATE]; > }; > > struct memory_block; > -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mel Gorman Subject: Re: [PATCH 4/5] hugetlb: add per node hstate attributes Date: Tue, 25 Aug 2009 14:35:16 +0100 Message-ID: <20090825133516.GE21335@csn.ul.ie> References: <20090824192437.10317.77172.sendpatchset@localhost.localdomain> <20090824192902.10317.94512.sendpatchset@localhost.localdomain> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20090824192902.10317.94512.sendpatchset@localhost.localdomain> Sender: linux-numa-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Lee Schermerhorn Cc: linux-mm@kvack.org, linux-numa@vger.kernel.org, akpm@linux-foundation.org, Nishanth Aravamudan , David Rientjes , Adam Litke , Andy Whitcroft , eric.whitney@hp.com On Mon, Aug 24, 2009 at 03:29:02PM -0400, Lee Schermerhorn wrote: > > > Index: linux-2.6.31-rc6-mmotm-090820-1918/include/linux/node.h > =================================================================== > --- linux-2.6.31-rc6-mmotm-090820-1918.orig/include/linux/node.h 2009-08-24 12:12:44.000000000 -0400 > +++ linux-2.6.31-rc6-mmotm-090820-1918/include/linux/node.h 2009-08-24 12:12:56.000000000 -0400 > @@ -21,9 +21,12 @@ > > #include > #include > +#include > Is this header inclusion necessary? It does not appear to be required by the structure modification (which is iffy in itself as discussed in the earlier mail) and it breaks build on x86-64. CC arch/x86/kernel/setup_percpu.o In file included from include/linux/pagemap.h:10, from include/linux/mempolicy.h:62, from include/linux/hugetlb.h:8, from include/linux/node.h:24, from include/linux/cpu.h:23, from /usr/local/autobench/var/tmp/build/arch/x86/include/asm/cpu.h:5, from arch/x86/kernel/setup_percpu.c:19: include/linux/highmem.h:53: error: static declaration of kmap follows non-static declaration /usr/local/autobench/var/tmp/build/arch/x86/include/asm/highmem.h:60: error: previous declaration of kmap was here include/linux/highmem.h:59: error: static declaration of kunmap follows non-static declaration /usr/local/autobench/var/tmp/build/arch/x86/include/asm/highmem.h:61: error: previous declaration of kunmap was here include/linux/highmem.h:63: error: static declaration of kmap_atomic follows non-static declaration /usr/local/autobench/var/tmp/build/arch/x86/include/asm/highmem.h:63: error: previous declaration of kmap_atomic was here make[2]: *** [arch/x86/kernel/setup_percpu.o] Error 1 make[1]: *** [arch/x86/kernel] Error 2 > struct node { > struct sys_device sysdev; > + struct kobject *hugepages_kobj; > + struct kobject *hstate_kobjs[HUGE_MAX_HSTATE]; > }; > > struct memory_block; > -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab