From 55f262391a2365d657a00ed68edd1a51bca66af5 Mon Sep 17 00:00:00 2001 From: Yinghai Lu Date: Wed, 25 Jun 2008 17:54:23 -0700 Subject: [PATCH] x86: rename setup_32.c to setup.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit and let 64 bit use that instead of setup_64.c [ mingo@elte.hu ] x86: build fix fix: arch/x86/kernel/setup.c: In function ‘setup_arch': arch/x86/kernel/setup.c:561: error: implicit declaration of function ‘efi_reserve_early' and: arch/x86/kernel/setup.c:766: error: implicit declaration of function 'init_cpu_to_node' and: arch/x86/kernel/setup.c:676: warning: operation on 'max_pfn_mapped' may be undefined Signed-off-by: Yinghai Lu Signed-off-by: Ingo Molnar --- arch/x86/kernel/Makefile | 2 +- arch/x86/kernel/{setup_32.c => setup.c} | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) rename arch/x86/kernel/{setup_32.c => setup.c} (99%) diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile index 5e1537b625..212804e787 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile @@ -18,7 +18,7 @@ CFLAGS_tsc_64.o := $(nostackp) obj-y := process_$(BITS).o signal_$(BITS).o entry_$(BITS).o obj-y += traps_$(BITS).o irq_$(BITS).o obj-y += time_$(BITS).o ioport.o ldt.o -obj-y += setup_$(BITS).o i8259.o irqinit_$(BITS).o setup_percpu.o +obj-y += setup.o i8259.o irqinit_$(BITS).o setup_percpu.o obj-$(CONFIG_X86_32) += probe_roms_32.o obj-$(CONFIG_X86_32) += sys_i386_32.o i386_ksyms_32.o obj-$(CONFIG_X86_64) += sys_x86_64.o x8664_ksyms_64.o diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup.c similarity index 99% rename from arch/x86/kernel/setup_32.c rename to arch/x86/kernel/setup.c index 4d5f8a3eb7..222d7038f2 100644 --- a/arch/x86/kernel/setup_32.c +++ b/arch/x86/kernel/setup.c @@ -79,6 +79,7 @@ #include #include #include +#include #include #include #include @@ -110,6 +111,9 @@ #include #include #include +#ifdef CONFIG_X86_64 +#include +#endif #ifdef CONFIG_X86_32 #include #endif @@ -531,9 +535,6 @@ void __init setup_arch(char **cmdline_p) #endif /* max_pfn_mapped is updated here */ -#ifdef CONFIG_X86_64 - max_pfn_mapped = -#endif max_pfn_mapped = init_memory_mapping(0, (max_low_pfn << PAGE_SHIFT)); reserve_initrd(); -- 2.39.5