diff --git a/arch/sh/lib/Makefile b/arch/sh/lib/Makefile index 6f7ac9eeb54fe46f634c6868315ae475d2897525..ebb55d1149f55ab3ea44c79e2704dc1ac2ea0cb5 100644 --- a/arch/sh/lib/Makefile +++ b/arch/sh/lib/Makefile @@ -8,6 +8,7 @@ lib-y = delay.o io.o memset.o memmove.o memchr.o \ memcpy-y := memcpy.o memcpy-$(CONFIG_CPU_SH4) := memcpy-sh4.o -lib-y += $(memcpy-y) +lib-$(CONFIG_MMU) += copy_page.o clear_page.o +lib-y += $(memcpy-y) EXTRA_CFLAGS += -Werror diff --git a/arch/sh/mm/clear_page.S b/arch/sh/lib/clear_page.S similarity index 100% rename from arch/sh/mm/clear_page.S rename to arch/sh/lib/clear_page.S diff --git a/arch/sh/mm/copy_page.S b/arch/sh/lib/copy_page.S similarity index 100% rename from arch/sh/mm/copy_page.S rename to arch/sh/lib/copy_page.S diff --git a/arch/sh/lib64/Makefile b/arch/sh/lib64/Makefile index 2f4086ac6f99dd760cc06d5f85eb6dea4e5a5fe1..9950966923a01aa2ec01a782d85fad6bfcf04929 100644 --- a/arch/sh/lib64/Makefile +++ b/arch/sh/lib64/Makefile @@ -11,5 +11,5 @@ # Panic should really be compiled as PIC lib-y := udelay.o c-checksum.o dbg.o panic.o memcpy.o copy_user_memcpy.o \ - page_copy.o page_clear.o + copy_page.o clear_page.o diff --git a/arch/sh/lib64/page_clear.S b/arch/sh/lib64/clear_page.S similarity index 100% rename from arch/sh/lib64/page_clear.S rename to arch/sh/lib64/clear_page.S diff --git a/arch/sh/lib64/page_copy.S b/arch/sh/lib64/copy_page.S similarity index 100% rename from arch/sh/lib64/page_copy.S rename to arch/sh/lib64/copy_page.S diff --git a/arch/sh/mm/Makefile_32 b/arch/sh/mm/Makefile_32 index 095abd14592fd0030b1c8355d9844a275e178fed..e295db60b91bd2597b28b260e4a8263e42fcb3c7 100644 --- a/arch/sh/mm/Makefile_32 +++ b/arch/sh/mm/Makefile_32 @@ -12,8 +12,7 @@ obj-$(CONFIG_SH7705_CACHE_32KB) += cache-sh7705.o endif mmu-y := tlb-nommu.o pg-nommu.o -mmu-$(CONFIG_MMU) := fault_32.o clear_page.o copy_page.o tlbflush_32.o \ - ioremap_32.o +mmu-$(CONFIG_MMU) := fault_32.o tlbflush_32.o ioremap_32.o obj-y += $(mmu-y)