summaryrefslogtreecommitdiff
path: root/kexec/kexec.c
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-04-27 14:35:11 +0800
committerSimon Horman <horms@verge.net.au>2013-04-30 09:34:59 +0900
commitc6e7799c7fb5c0b5c982e7536471301acba4b324 (patch)
tree49d8ed5b4388c3f6291fc5f5ea1f9c10e2b8d7af /kexec/kexec.c
parent1a4e90ba221684e563bf1baf06f3547cd95e60b0 (diff)
kexec: cleanup: make add_backup_segments static
The function add_backup_segments is only called by my_load and they are in the same file. So unnecessary to export it. Make it static. Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec.c')
-rw-r--r--kexec/kexec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kexec/kexec.c b/kexec/kexec.c
index cf3fcb9..53d6edc 100644
--- a/kexec/kexec.c
+++ b/kexec/kexec.c
@@ -434,8 +434,9 @@ static int find_segment_hole(struct kexec_info *info,
return *size;
}
-int add_backup_segments(struct kexec_info *info, unsigned long backup_base,
- unsigned long backup_size)
+static int add_backup_segments(struct kexec_info *info,
+ unsigned long backup_base,
+ unsigned long backup_size)
{
unsigned long mem_base, mem_size, bkseg_base, bkseg_size, start, end;
unsigned long pagesize;