Skip to content

Commit

Permalink
x86, mm: Move min_pfn_mapped back to mm/init.c
Browse files Browse the repository at this point in the history
Also change it to static.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1353123563-3103-26-git-send-email-yinghai@kernel.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Nov 17, 2012
1 parent 5c51bdb commit 9985b4c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion arch/x86/include/asm/page_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ extern int devmem_is_allowed(unsigned long pagenr);

extern unsigned long max_low_pfn_mapped;
extern unsigned long max_pfn_mapped;
extern unsigned long min_pfn_mapped;

static inline phys_addr_t get_max_mapped(void)
{
Expand Down
1 change: 0 additions & 1 deletion arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@
*/
unsigned long max_low_pfn_mapped;
unsigned long max_pfn_mapped;
unsigned long min_pfn_mapped;

#ifdef CONFIG_DMI
RESERVE_BRK(dmi_alloc, 65536);
Expand Down
2 changes: 2 additions & 0 deletions arch/x86/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ unsigned long __initdata pgt_buf_start;
unsigned long __meminitdata pgt_buf_end;
unsigned long __meminitdata pgt_buf_top;

static unsigned long min_pfn_mapped;

__ref void *alloc_low_page(void)
{
unsigned long pfn;
Expand Down

0 comments on commit 9985b4c

Please sign in to comment.