Skip to contentSkip to conversation

x86/setup: Remove redundant RAMDISK_* definitions

PATCH New Thorsten Blum 1 participant 1 message Nov 16 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/setup: Remove redundant RAMDISK_* definitions

All three RAMDISK_* macros are already defined in asm/bootparam.h, and only RAMDISK_IMAGE_START_MASK is used in setup.c.

---
 arch/x86/kernel/setup.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
arch/x86/kernel/setup.c +1 -4
index 19fc8e1714e6..fd45af11e0e1 100644
@@ -36,6 +36,7 @@
 
 #include <asm/apic.h>
 #include <asm/bios_ebda.h>
+#include <asm/bootparam.h>
 #include <asm/bugs.h>
 #include <asm/cacheinfo.h>
 #include <asm/coco.h>
@@ -221,10 +222,6 @@ extern int root_mountflags;
 
 unsigned long saved_video_mode;
 
-#define RAMDISK_IMAGE_START_MASK	0x07FF
-#define RAMDISK_PROMPT_FLAG		0x8000
-#define RAMDISK_LOAD_FLAG		0x4000
-
 static char __initdata command_line[COMMAND_LINE_SIZE];
 #ifdef CONFIG_CMDLINE_BOOL
 char builtin_cmdline[COMMAND_LINE_SIZE] = CONFIG_CMDLINE;