Re: [RFC] [PATCH] virtual memmap on sparsemem v3 [3/4] static virtual mem_map

2006-12-08 Thread KAMEZAWA Hiroyuki
for avoiding complex inclusion of headr file in the middle of another header file. Signed-Off-By: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> Index: devel-2.6.19/include/linux/mmzone.h === --- devel-2.6.19.orig/include/linux/mmzone.h2

Re: [RFC] [PATCH] virtual memmap on sparsemem v3 [3/4] static virtual mem_map

2006-12-08 Thread KAMEZAWA Hiroyuki
On Fri, 8 Dec 2006 19:33:23 -0800 Andrew Morton <[EMAIL PROTECTED]> wrote: > > > > > Would prefer to unconditionally include the header file - conditional > > > inclusions > > > like this can cause compile failures when someone changes a config > > > option. They > > > generally raise the comp

Re: [RFC] [PATCH] virtual memmap on sparsemem v3 [3/4] static virtual mem_map

2006-12-08 Thread Andrew Morton
On Sat, 9 Dec 2006 11:49:50 +0900 KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> wrote: > On Fri, 8 Dec 2006 16:30:20 -0800 > Andrew Morton <[EMAIL PROTECTED]> wrote: > > > > +#ifdef CONFIG_SPARSEMEM_VMEMMAP_STATIC > > > +#include > > > +extern struct page mem_map[]; > > > +#else > > > extern struct pag

Re: [RFC] [PATCH] virtual memmap on sparsemem v3 [3/4] static virtual mem_map

2006-12-08 Thread KAMEZAWA Hiroyuki
On Fri, 8 Dec 2006 16:30:20 -0800 Andrew Morton <[EMAIL PROTECTED]> wrote: > > +#ifdef CONFIG_SPARSEMEM_VMEMMAP_STATIC > > +#include > > +extern struct page mem_map[]; > > +#else > > extern struct page* mem_map; > > #endif > > +#endif > > This looks rather unpleasant - what went wrong here? >

Re: [RFC] [PATCH] virtual memmap on sparsemem v3 [3/4] static virtual mem_map

2006-12-08 Thread Andrew Morton
On Fri, 8 Dec 2006 16:07:08 +0900 KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> wrote: > This patch adds support for statically allocated virtual mem_map. > (means virtual address of mem_map array is defined statically.) > This removes reference to *(&mem_map). > > Signed-Off-By: KAMEZAWA Hiroyuki <[EMAI

[RFC] [PATCH] virtual memmap on sparsemem v3 [3/4] static virtual mem_map

2006-12-07 Thread KAMEZAWA Hiroyuki
This patch adds support for statically allocated virtual mem_map. (means virtual address of mem_map array is defined statically.) This removes reference to *(&mem_map). Signed-Off-By: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> Index: devel-2.6.19/include/linux/mmzone.h ===