diff --git a/arch/sparc/mm/Makefile b/arch/sparc/mm/Makefile index 3ad1b1f9953e..681abe0a4594 100644 --- a/arch/sparc/mm/Makefile +++ b/arch/sparc/mm/Makefile @@ -4,13 +4,17 @@ asflags-y := -ansi ccflags-y := -Werror -obj-y := fault_$(BITS).o +obj-$(CONFIG_SPARC64) += ultra.o tlb.o tsb.o +obj-y += fault_$(BITS).o obj-y += init_$(BITS).o obj-$(CONFIG_SPARC32) += loadmmu.o obj-y += generic_$(BITS).o obj-$(CONFIG_SPARC32) += extable.o btfixup.o srmmu.o iommu.o io-unit.o obj-$(CONFIG_SPARC32) += hypersparc.o viking.o tsunami.o swift.o +# Only used by sparc64 +obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o + # Only used by sparc32 obj-$(CONFIG_HIGHMEM) += highmem.o diff --git a/arch/sparc64/mm/fault.c b/arch/sparc/mm/fault_64.c similarity index 100% rename from arch/sparc64/mm/fault.c rename to arch/sparc/mm/fault_64.c diff --git a/arch/sparc64/mm/generic.c b/arch/sparc/mm/generic_64.c similarity index 100% rename from arch/sparc64/mm/generic.c rename to arch/sparc/mm/generic_64.c diff --git a/arch/sparc64/mm/hugetlbpage.c b/arch/sparc/mm/hugetlbpage.c similarity index 100% rename from arch/sparc64/mm/hugetlbpage.c rename to arch/sparc/mm/hugetlbpage.c diff --git a/arch/sparc64/mm/init.c b/arch/sparc/mm/init_64.c similarity index 99% rename from arch/sparc64/mm/init.c rename to arch/sparc/mm/init_64.c index 4bd63968400d..6ea73da29312 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc/mm/init_64.c @@ -50,7 +50,7 @@ #include #include -#include "init.h" +#include "init_64.h" unsigned long kern_linear_pte_xor[2] __read_mostly; @@ -954,7 +954,7 @@ int of_node_to_nid(struct device_node *dp) return nid; } -static void __init add_node_ranges(void) +static void add_node_ranges(void) { int i; diff --git a/arch/sparc64/mm/init.h b/arch/sparc/mm/init_64.h similarity index 100% rename from arch/sparc64/mm/init.h rename to arch/sparc/mm/init_64.h diff --git a/arch/sparc64/mm/tlb.c b/arch/sparc/mm/tlb.c similarity index 100% rename from arch/sparc64/mm/tlb.c rename to arch/sparc/mm/tlb.c diff --git a/arch/sparc64/mm/tsb.c b/arch/sparc/mm/tsb.c similarity index 100% rename from arch/sparc64/mm/tsb.c rename to arch/sparc/mm/tsb.c diff --git a/arch/sparc64/mm/ultra.S b/arch/sparc/mm/ultra.S similarity index 100% rename from arch/sparc64/mm/ultra.S rename to arch/sparc/mm/ultra.S diff --git a/arch/sparc64/Makefile b/arch/sparc64/Makefile index 3dbda408572b..bfe08680c897 100644 --- a/arch/sparc64/Makefile +++ b/arch/sparc64/Makefile @@ -27,7 +27,7 @@ endif head-y := arch/sparc64/kernel/head.o arch/sparc64/kernel/init_task.o -core-y += arch/sparc64/kernel/ arch/sparc64/mm/ +core-y += arch/sparc64/kernel/ arch/sparc/mm/ core-y += arch/sparc/math-emu/ libs-y += arch/sparc64/prom/ arch/sparc64/lib/ drivers-$(CONFIG_OPROFILE) += arch/sparc/oprofile/ diff --git a/arch/sparc64/mm/Makefile b/arch/sparc64/mm/Makefile deleted file mode 100644 index 68d04c0370f4..000000000000 --- a/arch/sparc64/mm/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# Makefile for the linux Sparc64-specific parts of the memory manager. -# - -EXTRA_AFLAGS := -ansi -EXTRA_CFLAGS := -Werror - -obj-y := ultra.o tlb.o tsb.o fault.o init.o generic.o - -obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o