From 10efab3c13965d3ec073359205da8468c3ae5076 Mon Sep 17 00:00:00 2001 From: Cong Wang Date: Tue, 31 Jan 2012 14:58:09 +0800 Subject: kexec: make some functions static The following functions/variables can become static. Signed-off-by: WANG Cong Signed-off-by: Simon Horman --- kexec/kexec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kexec/kexec.c') diff --git a/kexec/kexec.c b/kexec/kexec.c index abbe940..89e725e 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -49,7 +49,7 @@ unsigned long long mem_min = 0; unsigned long long mem_max = ULONG_MAX; -unsigned long kexec_flags = 0; +static unsigned long kexec_flags = 0; void die(char *fmt, ...) { @@ -62,7 +62,7 @@ void die(char *fmt, ...) exit(1); } -char *xstrdup(const char *str) +static char *xstrdup(const char *str) { char *new = strdup(str); if (!new) @@ -765,7 +765,7 @@ static int my_load(const char *type, int fileind, int argc, char **argv, return result; } -int k_unload (unsigned long kexec_flags) +static int k_unload (unsigned long kexec_flags) { int result; long native_arch; @@ -1006,7 +1006,7 @@ char *get_command_line(void) } /* check we retained the initrd */ -void check_reuse_initrd(void) +static void check_reuse_initrd(void) { char *line = get_command_line(); -- cgit