Skip to content

Commit

Permalink
There is no need to have BOOT_PARAMS_SIZE known outside of atags.c
Browse files Browse the repository at this point in the history
atags.c was the only user of KEXEC_BOOT_PARAMS_SIZE and kexec.h
was only included to get that definition.

Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Acked-by: Uli Luckas <u.luckas@road.de>
  • Loading branch information
Uwe Kleine-König authored and Uwe Kleine-König committed May 30, 2008
1 parent 916941b commit 8ff7f2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions arch/arm/kernel/atags.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <linux/slab.h>
#include <linux/kexec.h>
#include <linux/proc_fs.h>
#include <asm/setup.h>
#include <asm/types.h>
Expand Down Expand Up @@ -42,14 +41,14 @@ create_proc_entries(void)
return 0;
}


static char __initdata atags_copy_buf[KEXEC_BOOT_PARAMS_SIZE];
#define BOOT_PARAMS_SIZE 1536
static char __initdata atags_copy_buf[BOOT_PARAMS_SIZE];
static char __initdata *atags_copy;

void __init save_atags(const struct tag *tags)
{
atags_copy = atags_copy_buf;
memcpy(atags_copy, tags, KEXEC_BOOT_PARAMS_SIZE);
memcpy(atags_copy, tags, sizeof(atags_copy_buf));
}


Expand Down
2 changes: 0 additions & 2 deletions include/asm-arm/kexec.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

#define KEXEC_ARCH KEXEC_ARCH_ARM

#define KEXEC_BOOT_PARAMS_SIZE 1536

#define KEXEC_ARM_ATAGS_OFFSET 0x1000
#define KEXEC_ARM_ZIMAGE_OFFSET 0x8000

Expand Down

0 comments on commit 8ff7f2a

Please sign in to comment.