Skip to contentSkip to conversation

kexec: cleanup: make add_backup_segments static

PATCH Applied Zhang Yanfei 2 participants 2 messages Apr 27, 2013 – Apr 30, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 kexec/kexec.c |    5 +++--
 kexec/kexec.h |    4 ----
 2 files changed, 3 insertions(+), 6 deletions(-)
kexec/kexec.c +3 -2
index cf3fcb9..53d6edc 100644
@@ -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
index 5ded390..715b568 100644
@@ -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);
Signature · 6 lines
1.7.1

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec