]> err.no Git - linux-2.6/commitdiff
There is no need to have BOOT_PARAMS_SIZE known outside of atags.c
authorUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Thu, 21 Feb 2008 15:30:10 +0000 (16:30 +0100)
committerUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Fri, 30 May 2008 08:30:05 +0000 (10:30 +0200)
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>
arch/arm/kernel/atags.c
include/asm-arm/kexec.h

index 64c420805e6f4e2b7945cef4bcff38e3c4e2f576..56fef9a055042166d35a291ca7b3b08b4d8780b2 100644 (file)
@@ -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>
@@ -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));
 }
 
 
index 47fe34d692dab57555a0b8e6af72b09660eca39f..c8986bb99ed5515f6d2191480cdd61576e76690c 100644 (file)
@@ -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