Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b908243c authored by Djalal Harouni's avatar Djalal Harouni Committed by Linus Torvalds
Browse files

fs/proc/kcore.c: make get_sparsemem_vmemmap_info() static



get_sparsemem_vmemmap_info() is only used inside fs/proc/kcore.c

Signed-off-by: default avatarDjalal Harouni <tixxdz@opendz.org>
Reviewed-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent accb61fe
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -157,7 +157,8 @@ static int kcore_update_ram(void)

#ifdef CONFIG_SPARSEMEM_VMEMMAP
/* calculate vmemmap's address from given system ram pfn and register it */
int get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)
static int
get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)
{
	unsigned long pfn = __pa(ent->addr) >> PAGE_SHIFT;
	unsigned long nr_pages = ent->size >> PAGE_SHIFT;
@@ -189,7 +190,8 @@ int get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)

}
#else
int get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)
static int
get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)
{
	return 1;
}