Skip to content
Snippets Groups Projects
Commit b942309f authored by Gabor Juhos's avatar Gabor Juhos
Browse files

generic: use __meminit annotation for crashlog_init_memblock

Fixes this section mismatch warning:
WARNING: vmlinux.o(.meminit.text+0xb14): Section mismatch in reference
from the function memblock_insert_region() to the function
.init.text:crashlog_init_memblock()
The function __meminit memblock_insert_region() references
a function __init crashlog_init_memblock().
If crashlog_init_memblock is only used by memblock_insert_region then
annotate crashlog_init_memblock with a matching annotation.

Also, remove the __init annotations from 'include/linux/crashlog.h'

SVN-Revision: 33137
parent 0ef62afd
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,8 @@
+#define __CRASHLOG_H
+
+#ifdef CONFIG_CRASHLOG
+void __init crashlog_init_bootmem(struct bootmem_data *bdata);
+void __init crashlog_init_memblock(phys_addr_t addr, phys_addr_t size);
+void crashlog_init_bootmem(struct bootmem_data *bdata);
+void crashlog_init_memblock(phys_addr_t addr, phys_addr_t size);
+#else
+static inline void crashlog_init_bootmem(struct bootmem_data *bdata)
+{
......@@ -121,7 +121,7 @@
+#endif
+
+#ifdef CONFIG_HAVE_MEMBLOCK
+void __init crashlog_init_memblock(phys_addr_t addr, phys_addr_t size)
+void __meminit crashlog_init_memblock(phys_addr_t addr, phys_addr_t size)
+{
+ if (crashlog_addr)
+ return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment