[PATCH v3 4/6] mm: don't export memory_add_physaddr_to_nid in arch specific directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Catalin Marinas <catalin.marinas@xxxxxxx>, Will Deacon <will@xxxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx>, Rich Felker <dalias@xxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, Andy Lutomirski <luto@xxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, David Hildenbrand <david@xxxxxxxxxx>
- Subject: [PATCH v3 4/6] mm: don't export memory_add_physaddr_to_nid in arch specific directory
- From: Jia He <justin.he@xxxxxxx>
- Date: Thu, 9 Jul 2020 10:06:27 +0800
- Cc: x86@xxxxxxxxxx, "H. Peter Anvin" <hpa@xxxxxxxxx>, Dan Williams <dan.j.williams@xxxxxxxxx>, Vishal Verma <vishal.l.verma@xxxxxxxxx>, Dave Jiang <dave.jiang@xxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Baoquan He <bhe@xxxxxxxxxx>, Chuhong Yuan <hslester96@xxxxxxxxx>, Mike Rapoport <rppt@xxxxxxxxxxxxx>, Logan Gunthorpe <logang@xxxxxxxxxxxx>, Masahiro Yamada <masahiroy@xxxxxxxxxx>, Michal Hocko <mhocko@xxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, linux-nvdimm@xxxxxxxxxxxx, linux-mm@xxxxxxxxx, Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>, Kaly Xin <Kaly.Xin@xxxxxxx>, Jia He <justin.he@xxxxxxx>
- In-reply-to: <20200709020629.91671-1-justin.he@arm.com>
- References: <20200709020629.91671-1-justin.he@arm.com>
After a general version of __weak memory_add_physaddr_to_nid implemented
and exported , it is no use exporting twice in arch directory even if
e,g, ia64/x86 have their specific version.
This is to suppress the modpost warning:
WARNING: modpost: vmlinux: 'memory_add_physaddr_to_nid' exported twice.
Previous export was in vmlinux
Suggested-by: David Hildenbrand <david@xxxxxxxxxx>
Signed-off-by: Jia He <justin.he@xxxxxxx>
---
arch/ia64/mm/numa.c | 2 --
arch/x86/mm/numa.c | 1 -
2 files changed, 3 deletions(-)
diff --git a/arch/ia64/mm/numa.c b/arch/ia64/mm/numa.c
index 5e1015eb6d0d..f34964271101 100644
--- a/arch/ia64/mm/numa.c
+++ b/arch/ia64/mm/numa.c
@@ -106,7 +106,5 @@ int memory_add_physaddr_to_nid(u64 addr)
return 0;
return nid;
}
-
-EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
#endif
#endif
diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c
index 8ee952038c80..2a6e62af4636 100644
--- a/arch/x86/mm/numa.c
+++ b/arch/x86/mm/numa.c
@@ -929,5 +929,4 @@ int memory_add_physaddr_to_nid(u64 start)
nid = numa_meminfo.blk[0].nid;
return nid;
}
-EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
#endif
--
2.17.1
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]