summaryrefslogtreecommitdiffstats
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
parent1a4e90ba221684e563bf1baf06f3547cd95e60b0 (diff)
downloadkexec-tools-c6e7799c7fb5c0b5c982e7536471301acba4b324.tar.gz
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>
-rw-r--r--kexec/kexec.c5
-rw-r--r--kexec/kexec.h4
2 files changed, 3 insertions, 6 deletions
diff --git a/kexec/kexec.c b/kexec/kexec.c
index cf3fcb9b..53d6edc2 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;
diff --git a/kexec/kexec.h b/kexec/kexec.h
index 5ded3903..715b5686 100644
--- a/kexec/kexec.h
+++ b/kexec/kexec.h
@@ -285,10 +285,6 @@ int kexec_iomem_for_each_line(char *match,
int parse_iomem_single(char *str, uint64_t *start, uint64_t *end);
const char * proc_iomem(void);
-extern int add_backup_segments(struct kexec_info *info,
- unsigned long backup_base,
- unsigned long backup_size);
-
#define MAX_LINE 160
char *concat_cmdline(const char *base, const char *append);