diff options
Diffstat (limited to 'arch/riscv/kernel/setup.c')
-rw-r--r-- | arch/riscv/kernel/setup.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index db20dc630e7e..aee603123030 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c | |||
@@ -85,15 +85,8 @@ atomic_t hart_lottery; | |||
85 | #ifdef CONFIG_BLK_DEV_INITRD | 85 | #ifdef CONFIG_BLK_DEV_INITRD |
86 | static void __init setup_initrd(void) | 86 | static void __init setup_initrd(void) |
87 | { | 87 | { |
88 | extern char __initramfs_start[]; | ||
89 | extern unsigned long __initramfs_size; | ||
90 | unsigned long size; | 88 | unsigned long size; |
91 | 89 | ||
92 | if (__initramfs_size > 0) { | ||
93 | initrd_start = (unsigned long)(&__initramfs_start); | ||
94 | initrd_end = initrd_start + __initramfs_size; | ||
95 | } | ||
96 | |||
97 | if (initrd_start >= initrd_end) { | 90 | if (initrd_start >= initrd_end) { |
98 | printk(KERN_INFO "initrd not found or empty"); | 91 | printk(KERN_INFO "initrd not found or empty"); |
99 | goto disable; | 92 | goto disable; |