tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b395397b3a268e96061feca8dbed5e70f777e9a2 commit: 456979f56a5872619f70f7ab5ceaa65f1b0cc3dc [6807/7059] mmap_vmcore-skip-non-ram-pages-reported-by-hypervisors-v4 reproduce: make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> fs/proc/vmcore.c:343:5: sparse: symbol 'remap_oldmem_pfn_checked' was not declared. Should it be static? >> fs/proc/vmcore.c:394:5: sparse: symbol 'vmcore_remap_oldmem_pfn' was not declared. Should it be static? Please consider folding the attached diff :-) --- 0-DAY kernel build testing backend Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
From: Fengguang Wu <fengguang.wu@xxxxxxxxx> Subject: [PATCH next] remap_oldmem_pfn_checked() can be static TO: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx> CC: linux-kernel@xxxxxxxxxxxxxxx CC: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx> --- vmcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 405a409..566e6f0 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -340,7 +340,7 @@ static inline char *alloc_elfnotes_buf(size_t notes_sz) * * Returns zero on success, -EAGAIN on failure. */ -int remap_oldmem_pfn_checked(struct vm_area_struct *vma, unsigned long from, +static int remap_oldmem_pfn_checked(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot) { @@ -391,7 +391,7 @@ fail: return -EAGAIN; } -int vmcore_remap_oldmem_pfn(struct vm_area_struct *vma, +static int vmcore_remap_oldmem_pfn(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot) {