* [next:master 6807/7059] fs/proc/vmcore.c:343:5: sparse: symbol 'remap_oldmem_pfn_checked' was not declared. Should it be static?
@ 2014-07-17 11:17 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2014-07-17 11:17 UTC (permalink / raw)
To: Vitaly Kuznetsov; +Cc: Linux Memory Management List, Andrew Morton, kbuild-all
[-- Attachment #1: Type: text/plain, Size: 760 bytes --]
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
[-- Attachment #2: make-it-static-456979f56a5872619f70f7ab5ceaa65f1b0cc3dc.diff --]
[-- Type: text/x-diff, Size: 1117 bytes --]
From: Fengguang Wu <fengguang.wu@intel.com>
Subject: [PATCH next] remap_oldmem_pfn_checked() can be static
TO: Vitaly Kuznetsov <vkuznets@redhat.com>
CC: linux-kernel@vger.kernel.org
CC: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-17 11:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-17 11:17 [next:master 6807/7059] fs/proc/vmcore.c:343:5: sparse: symbol 'remap_oldmem_pfn_checked' was not declared. Should it be static? kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox