mm: don't export arch_add_memory
authorChristoph Hellwig <hch@lst.de>
Fri, 29 Dec 2017 07:53:51 +0000 (08:53 +0100)
committerDan Williams <dan.j.williams@intel.com>
Mon, 8 Jan 2018 19:46:23 +0000 (11:46 -0800)
Only x86_64 and sh export this symbol, and it is not used by any
modular code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
arch/sh/mm/init.c
arch/x86/mm/init_64.c

index bf726af5f1a5419707d288b5258d37b0051ab3dc..afc54d593a2698c9d87fa36af93e9e1764f51c10 100644 (file)
@@ -498,7 +498,6 @@ int arch_add_memory(int nid, u64 start, u64 size, bool want_memblock)
 
        return ret;
 }
-EXPORT_SYMBOL_GPL(arch_add_memory);
 
 #ifdef CONFIG_NUMA
 int memory_add_physaddr_to_nid(u64 addr)
index 4a837289f2add8ac3548e68639f38f845ceee6a9..8acdc35c2dfaf528168ec472474a3a8e6d7117dd 100644 (file)
@@ -796,7 +796,6 @@ int arch_add_memory(int nid, u64 start, u64 size, bool want_memblock)
 
        return add_pages(nid, start_pfn, nr_pages, want_memblock);
 }
-EXPORT_SYMBOL_GPL(arch_add_memory);
 
 #define PAGE_INUSE 0xFD