[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140211143624.277f72655ba9d0fe732fede9@linux-foundation.org>
Date: Tue, 11 Feb 2014 14:36:24 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Rashika Kheria <rashika.kheria@...il.com>
Cc: linux-kernel@...r.kernel.org, Vivek Goyal <vgoyal@...hat.com>,
Michael Holzheu <holzheu@...ux.vnet.ibm.com>,
James Hogan <james.hogan@...tec.com>,
Qais Yousef <qais.yousef@...tec.com>, josh@...htriplett.org
Subject: Re: [PATCH 21/21] fs: Move prototype declaration to appropriate
header file
On Sun, 9 Feb 2014 19:03:54 +0530 Rashika Kheria <rashika.kheria@...il.com> wrote:
> Move prototype declaration to header file include/linux/crash_dump.h
It adds a prototype rather than moving it.
> because it is used by more than file.
True, but you didn't notice the second user ;)
> --- a/include/linux/crash_dump.h
> +++ b/include/linux/crash_dump.h
> @@ -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,
> unsigned long, int);
> +void vmcore_cleanup(void);
>
> /* Architecture code defines this if there are other possible ELF
> * machine types, e.g. on bi-arch capable hardware. */
Take a look over in powerpc...
From: Andrew Morton <akpm@...ux-foundation.org>
Subject: include-linux-crash_dumph-add-vmcore_cleanup-prototype-fix
clean up powerpc, remove unneeded EXPORT_SYMBOL
Cc: Josh Triplett <josh@...htriplett.org>
Cc: Rashika Kheria <rashika.kheria@...il.com>
Cc: Benjamin Herrenschmidt <benh@...nel.crashing.org>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
arch/powerpc/include/asm/fadump.h | 1 -
fs/proc/vmcore.c | 1 -
2 files changed, 2 deletions(-)
--- a/arch/powerpc/include/asm/fadump.h~include-linux-crash_dumph-add-vmcore_cleanup-prototype-fix
+++ a/arch/powerpc/include/asm/fadump.h
@@ -210,7 +210,6 @@ extern int is_fadump_active(void);
extern void crash_fadump(struct pt_regs *, const char *);
extern void fadump_cleanup(void);
-extern void vmcore_cleanup(void);
#else /* CONFIG_FA_DUMP */
static inline int is_fadump_active(void) { return 0; }
static inline void crash_fadump(struct pt_regs *regs, const char *str) { }
--- a/fs/proc/vmcore.c~include-linux-crash_dumph-add-vmcore_cleanup-prototype-fix
+++ a/fs/proc/vmcore.c
@@ -1118,4 +1118,3 @@ void vmcore_cleanup(void)
}
free_elfcorebuf();
}
-EXPORT_SYMBOL_GPL(vmcore_cleanup);
_
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists