Commit 82e0703b6ca8b549952c1e4f04746f27eaec012d

Authored by Rashika Kheria
Committed by Linus Torvalds
1 parent 7c733eb3ea

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: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 3 changed files with 1 additions and 2 deletions Side-by-side Diff

arch/powerpc/include/asm/fadump.h
... ... @@ -210,7 +210,6 @@
210 210 extern void crash_fadump(struct pt_regs *, const char *);
211 211 extern void fadump_cleanup(void);
212 212  
213   -extern void vmcore_cleanup(void);
214 213 #else /* CONFIG_FA_DUMP */
215 214 static inline int is_fadump_active(void) { return 0; }
216 215 static inline void crash_fadump(struct pt_regs *regs, const char *str) { }
... ... @@ -1118,5 +1118,4 @@
1118 1118 }
1119 1119 free_elfcorebuf();
1120 1120 }
1121   -EXPORT_SYMBOL_GPL(vmcore_cleanup);
include/linux/crash_dump.h
... ... @@ -25,6 +25,7 @@
25 25  
26 26 extern ssize_t copy_oldmem_page(unsigned long, char *, size_t,
27 27 unsigned long, int);
  28 +void vmcore_cleanup(void);
28 29  
29 30 /* Architecture code defines this if there are other possible ELF
30 31 * machine types, e.g. on bi-arch capable hardware. */