Commit 82e0703b authored by Rashika Kheria's avatar Rashika Kheria Committed by Linus Torvalds

include/linux/crash_dump.h: add vmcore_cleanup() prototype

Eliminate the following warning in proc/vmcore.c:

  fs/proc/vmcore.c:1088:6: warning: no previous prototype for `vmcore_cleanup' [-Wmissing-prototypes]

[akpm@linux-foundation.org: clean up powerpc, remove unneeded EXPORT_SYMBOL]
Signed-off-by: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7c733eb3
...@@ -210,7 +210,6 @@ extern int is_fadump_active(void); ...@@ -210,7 +210,6 @@ extern int is_fadump_active(void);
extern void crash_fadump(struct pt_regs *, const char *); extern void crash_fadump(struct pt_regs *, const char *);
extern void fadump_cleanup(void); extern void fadump_cleanup(void);
extern void vmcore_cleanup(void);
#else /* CONFIG_FA_DUMP */ #else /* CONFIG_FA_DUMP */
static inline int is_fadump_active(void) { return 0; } static inline int is_fadump_active(void) { return 0; }
static inline void crash_fadump(struct pt_regs *regs, const char *str) { } static inline void crash_fadump(struct pt_regs *regs, const char *str) { }
......
...@@ -1118,4 +1118,3 @@ void vmcore_cleanup(void) ...@@ -1118,4 +1118,3 @@ void vmcore_cleanup(void)
} }
free_elfcorebuf(); free_elfcorebuf();
} }
EXPORT_SYMBOL_GPL(vmcore_cleanup);
...@@ -25,6 +25,7 @@ extern int __weak remap_oldmem_pfn_range(struct vm_area_struct *vma, ...@@ -25,6 +25,7 @@ extern int __weak remap_oldmem_pfn_range(struct vm_area_struct *vma,
extern ssize_t copy_oldmem_page(unsigned long, char *, size_t, extern ssize_t copy_oldmem_page(unsigned long, char *, size_t,
unsigned long, int); unsigned long, int);
void vmcore_cleanup(void);
/* Architecture code defines this if there are other possible ELF /* Architecture code defines this if there are other possible ELF
* machine types, e.g. on bi-arch capable hardware. */ * machine types, e.g. on bi-arch capable hardware. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment