Commit 8ff7f2a4 authored by Uwe Kleine-König's avatar Uwe Kleine-König

There is no need to have BOOT_PARAMS_SIZE known outside of atags.c

atags.c was the only user of KEXEC_BOOT_PARAMS_SIZE and kexec.h
was only included to get that definition.
Signed-off-by: default avatarUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Acked-by: default avatarUli Luckas <u.luckas@road.de>
parent 916941b2
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/kexec.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <asm/setup.h> #include <asm/setup.h>
#include <asm/types.h> #include <asm/types.h>
...@@ -42,14 +41,14 @@ create_proc_entries(void) ...@@ -42,14 +41,14 @@ create_proc_entries(void)
return 0; return 0;
} }
#define BOOT_PARAMS_SIZE 1536
static char __initdata atags_copy_buf[KEXEC_BOOT_PARAMS_SIZE]; static char __initdata atags_copy_buf[BOOT_PARAMS_SIZE];
static char __initdata *atags_copy; static char __initdata *atags_copy;
void __init save_atags(const struct tag *tags) void __init save_atags(const struct tag *tags)
{ {
atags_copy = atags_copy_buf; atags_copy = atags_copy_buf;
memcpy(atags_copy, tags, KEXEC_BOOT_PARAMS_SIZE); memcpy(atags_copy, tags, sizeof(atags_copy_buf));
} }
......
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
#define KEXEC_ARCH KEXEC_ARCH_ARM #define KEXEC_ARCH KEXEC_ARCH_ARM
#define KEXEC_BOOT_PARAMS_SIZE 1536
#define KEXEC_ARM_ATAGS_OFFSET 0x1000 #define KEXEC_ARM_ATAGS_OFFSET 0x1000
#define KEXEC_ARM_ZIMAGE_OFFSET 0x8000 #define KEXEC_ARM_ZIMAGE_OFFSET 0x8000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment