diff options
author | Simon Horman <horms@verge.net.au> | 2008-11-04 09:26:02 +1100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2008-11-28 14:30:33 +0900 |
commit | 14f69fc20bec03f7db1c4f4c0e45d9e73400e9a5 (patch) | |
tree | e14d7c765c3d4d2e2e61188e5fbcbcdc1727a6ca /purgatory | |
parent | df0878e64e92d403c4e2e5604cd81d6d1baff169 (diff) | |
download | kexec-tools-14f69fc20bec03f7db1c4f4c0e45d9e73400e9a5.tar.gz |
Make x86_setup_jump_back_entry() static with a void argument list
gcc complains because x86_setup_jump_back_entry() has no arguments,
making the argument list void resolves this.
Also, make the function static as it isn't used in any other files.
And move the function above where it is used, to eliminate the
need for a forward-declaration.
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory')
-rw-r--r-- | purgatory/arch/i386/purgatory-x86.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/purgatory/arch/i386/purgatory-x86.c b/purgatory/arch/i386/purgatory-x86.c index 030b465f..075e518c 100644 --- a/purgatory/arch/i386/purgatory-x86.c +++ b/purgatory/arch/i386/purgatory-x86.c @@ -42,7 +42,12 @@ void setup_arch(void) /* if (legacy_timer) x86_setup_legacy_timer(); */ } -extern void x86_setup_jump_back_entry(); +static void x86_setup_jump_back_entry(void) +{ + if (cmdline_end) + sprintf(cmdline_end, " kexec_jump_back_entry=0x%x", + jump_back_entry); +} /* This function can be used to execute after the SHA256 verification. */ void post_verification_setup_arch(void) @@ -50,10 +55,3 @@ void post_verification_setup_arch(void) if (panic_kernel) crashdump_backup_memory(); if (jump_back_entry) x86_setup_jump_back_entry(); } - -void x86_setup_jump_back_entry() -{ - if (cmdline_end) - sprintf(cmdline_end, " kexec_jump_back_entry=0x%x", - jump_back_entry); -} |