diff options
author | Djalal Harouni <tixxdz@opendz.org> | 2012-03-23 15:02:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-23 16:58:42 -0700 |
commit | b908243c549448fc0662f9cdd8d5cfe620fcdc31 (patch) | |
tree | fe3ba53fb4b1f37048ba986080623af0365eb6e5 | |
parent | accb61fe7bb0f5c2a4102239e4981650f9048519 (diff) | |
download | linux-3.10-b908243c549448fc0662f9cdd8d5cfe620fcdc31.tar.gz linux-3.10-b908243c549448fc0662f9cdd8d5cfe620fcdc31.tar.bz2 linux-3.10-b908243c549448fc0662f9cdd8d5cfe620fcdc31.zip |
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: Djalal Harouni <tixxdz@opendz.org>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/proc/kcore.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index e5e69aff6c6..86c67eee439 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c @@ -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; } |