kexec: cleanup: make add_backup_segments static
Subsystems (2)
PATCH 1/1 kexec: cleanup: make add_backup_segments static
From: Zhang Yanfei <[email protected]>
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 <[email protected]>
--- kexec/kexec.c | 5 +++-- kexec/kexec.h | 4 ---- 2 files changed, 3 insertions(+), 6 deletions(-)
kexec/kexec.c +3 -2
@@ -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;
kexec/kexec.h +0 -4
@@ -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 160char *concat_cmdline (const char *base,const char *append);
Signature · 6 lines
1.7.1 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 7 lines · Zhang Yanfei
From: Zhang Yanfei <[email protected]>
The function
add_backup_segmentsis only called bymy_loadand they are in the same file. So unnecessary to export it. Make it static.Signed-off-by Zhang Yanfei <[email protected]>
Thanks, applied.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec