mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/setup: Remove redundant RAMDISK_* definitions
@ 2026-11-16 12:38 Thorsten Blum
  0 siblings, 0 replies; only message in thread
From: Thorsten Blum @ 2026-11-16 12:38 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin, Mike Rapoport (Microsoft),
	Ard Biesheuvel, Andrew Morton, Thomas Zimmermann,
	Pratyush Yadav (Google),
	Grzegorz Jaszczyk, Breno Leitao, Harshit Mogalapalli,
	Thorsten Blum
  Cc: Ingo Molnar, linux-kernel

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

Signed-off-by: Thorsten Blum <blum@kernel.org>
---
 arch/x86/kernel/setup.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 19fc8e1714e6..fd45af11e0e1 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-16 12:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 12:38 [PATCH] x86/setup: Remove redundant RAMDISK_* definitions Thorsten Blum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®