Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc: prepare mm/ for unification

- rename files where sparc64 has similar files to _32.c
- Restructure Makefile
- Sneak in -Werror as we have for sparc64

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Sam Ravnborg and committed by
David S. Miller
c37ddd93 7c979c49

+12 -8
+12 -8
arch/sparc/mm/Makefile
··· 1 1 # Makefile for the linux Sparc-specific parts of the memory manager. 2 2 # 3 3 4 - EXTRA_AFLAGS := -ansi 4 + asflags-y := -ansi 5 + ccflags-y := -Werror 5 6 6 - obj-y := fault.o init.o loadmmu.o generic.o extable.o btfixup.o \ 7 - srmmu.o iommu.o io-unit.o hypersparc.o viking.o tsunami.o swift.o 7 + obj-y := fault_$(BITS).o 8 + obj-y += init_$(BITS).o 9 + obj-$(CONFIG_SPARC32) += loadmmu.o 10 + obj-y += generic_$(BITS).o 11 + obj-$(CONFIG_SPARC32) += extable.o btfixup.o srmmu.o iommu.o io-unit.o 12 + obj-$(CONFIG_SPARC32) += hypersparc.o viking.o tsunami.o swift.o 8 13 9 - ifdef CONFIG_HIGHMEM 10 - obj-y += highmem.o 11 - endif 14 + # Only used by sparc32 15 + obj-$(CONFIG_HIGHMEM) += highmem.o 12 16 13 17 ifdef CONFIG_SMP 14 - obj-y += nosun4c.o 18 + obj-$(CONFIG_SPARC32) += nosun4c.o 15 19 else 16 - obj-y += sun4c.o 20 + obj-$(CONFIG_SPARC32) += sun4c.o 17 21 endif
arch/sparc/mm/fault.c arch/sparc/mm/fault_32.c
arch/sparc/mm/generic.c arch/sparc/mm/generic_32.c
arch/sparc/mm/init.c arch/sparc/mm/init_32.c