Skip to content

Commit 26ad267

Browse files
kvaneeshmpe
authored andcommitted
powerpc/mm: Fix section mismatch warning
This patch fix the below section mismatch warnings. WARNING: vmlinux.o(.text+0x2d1f44): Section mismatch in reference from the function devm_memremap_pages_release() to the function .meminit.text:arch_remove_memory() WARNING: vmlinux.o(.text+0x2d265c): Section mismatch in reference from the function devm_memremap_pages() to the function .meminit.text:arch_add_memory() Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 5f53d28 commit 26ad267

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/powerpc/mm/mem.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ int __weak remove_section_mapping(unsigned long start, unsigned long end)
109109
return -ENODEV;
110110
}
111111

112-
int __meminit arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap *altmap,
113-
bool want_memblock)
112+
int __ref arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap *altmap,
113+
bool want_memblock)
114114
{
115115
unsigned long start_pfn = start >> PAGE_SHIFT;
116116
unsigned long nr_pages = size >> PAGE_SHIFT;
@@ -131,8 +131,8 @@ int __meminit arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap *
131131
}
132132

133133
#ifdef CONFIG_MEMORY_HOTREMOVE
134-
int __meminit arch_remove_memory(int nid, u64 start, u64 size,
135-
struct vmem_altmap *altmap)
134+
int __ref arch_remove_memory(int nid, u64 start, u64 size,
135+
struct vmem_altmap *altmap)
136136
{
137137
unsigned long start_pfn = start >> PAGE_SHIFT;
138138
unsigned long nr_pages = size >> PAGE_SHIFT;

0 commit comments

Comments
 (0)