summaryrefslogtreecommitdiffstats
path: root/purgatory
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2008-11-04 09:26:02 +1100
committerSimon Horman <horms@verge.net.au>2008-11-28 14:30:33 +0900
commit14f69fc20bec03f7db1c4f4c0e45d9e73400e9a5 (patch)
treee14d7c765c3d4d2e2e61188e5fbcbcdc1727a6ca /purgatory
parentdf0878e64e92d403c4e2e5604cd81d6d1baff169 (diff)
downloadkexec-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.c14
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);
-}