summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2008-03-06 18:30:34 +0900
committerSimon Horman <horms@verge.net.au>2008-03-06 18:50:47 +0900
commit999a3f8138c89671f7fa775c8efee4eeeeb2d2f6 (patch)
tree173c9a7d2f3e76b271d30123809da33626aa679d
parent8cac3581e291c06834cf8cb7bfee8341f7da5eb2 (diff)
kexec-tools: mipsel: Define OPT_APPEND outside of any function
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/mipsel/kexec-elf-mipsel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kexec/arch/mipsel/kexec-elf-mipsel.c b/kexec/arch/mipsel/kexec-elf-mipsel.c
index acd5f77..6642260 100644
--- a/kexec/arch/mipsel/kexec-elf-mipsel.c
+++ b/kexec/arch/mipsel/kexec-elf-mipsel.c
@@ -70,6 +70,8 @@ static struct boot_notes {
};
+#define OPT_APPEND (OPT_ARCH_MAX+0)
+
int elf_mipsel_probe(const char *buf, off_t len)
{
@@ -117,7 +119,6 @@ int elf_mipsel_load(int argc, char **argv, const char *buf, off_t len,
unsigned char *setup_start;
uint32_t setup_size;
int opt;
-#define OPT_APPEND (OPT_ARCH_MAX+0)
static const struct option options[] = {
KEXEC_ARCH_OPTIONS
{"command-line", 1, 0, OPT_APPEND},