浏览代码

mm/nommu.c: export symbol max_mapnr

Several modules may need max_mapnr, so export, the related error with
allmodconfig under c6x:

  MODPOST 3327 modules
  ERROR: "max_mapnr" [fs/pstore/ramoops.ko] undefined!
  ERROR: "max_mapnr" [drivers/media/v4l2-core/videobuf2-dma-contig.ko] undefined!

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Cc: Mark Salter <msalter@redhat.com>
Cc: Aurelien Jacquiot <a-jacquiot@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
gchen gchen 10 年之前
父节点
当前提交
5b8bf30721
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mm/nommu.c

+ 1 - 0
mm/nommu.c

@@ -62,6 +62,7 @@ void *high_memory;
 EXPORT_SYMBOL(high_memory);
 EXPORT_SYMBOL(high_memory);
 struct page *mem_map;
 struct page *mem_map;
 unsigned long max_mapnr;
 unsigned long max_mapnr;
+EXPORT_SYMBOL(max_mapnr);
 unsigned long highest_memmap_pfn;
 unsigned long highest_memmap_pfn;
 struct percpu_counter vm_committed_as;
 struct percpu_counter vm_committed_as;
 int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */
 int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */