Re: [PATCH] mem_map is part of the FLATMEM model

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andy Whitcroft <[email protected]> wrote:
>
> mem_map is part of the FLATMEM model
> 
> It seems that the definition and declaration of mem_map are
> inconsistent meaning we get usless undirected link failures about
> mem_map when its being used when it shouldn't be.
> 
> Reviewing mem_map, its actually only valid and initialised when
> CONFIG_FLATMEM is defined.  Indeed in all essence it is part
> of that memory model used out of FLATMEM's __pfn_to_page etc.
> mem_map (and max_mapnr) should only be defined and declared when
> the FLATMEM memory model is selected.

sparc64 allmodconfig:

arch/sparc64/mm/init.c: In function `paging_init':
arch/sparc64/mm/init.c:1339: error: `max_mapnr' undeclared (first use in this function)
arch/sparc64/mm/init.c:1339: error: (Each undeclared identifier is reported only once

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux