|
@@ -5,8 +5,8 @@
|
|
|
+#define __CRASHLOG_H
|
|
+#define __CRASHLOG_H
|
|
|
+
|
|
+
|
|
|
+#ifdef CONFIG_CRASHLOG
|
|
+#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
|
|
+#else
|
|
|
+static inline void crashlog_init_bootmem(struct bootmem_data *bdata)
|
|
+static inline void crashlog_init_bootmem(struct bootmem_data *bdata)
|
|
|
+{
|
|
+{
|
|
@@ -121,7 +121,7 @@
|
|
|
+#endif
|
|
+#endif
|
|
|
+
|
|
+
|
|
|
+#ifdef CONFIG_HAVE_MEMBLOCK
|
|
+#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)
|
|
+ if (crashlog_addr)
|
|
|
+ return;
|
|
+ return;
|