From aae4d1428c03b03f9fe6204a83e35822fe9cc591 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Sat, 15 Aug 2009 09:57:57 +0900 Subject: sh: consolidate nommu stubs in arch/sh/mm/nommu.c. These were previous littered around tlb-nommu.c and pg-nommu.c, though at this point there are more stubs than are strictly TLB or page op related, so just consolidate them in a single nommu.c. Signed-off-by: Paul Mundt --- arch/sh/mm/pg-nommu.c | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 arch/sh/mm/pg-nommu.c (limited to 'arch/sh/mm/pg-nommu.c') diff --git a/arch/sh/mm/pg-nommu.c b/arch/sh/mm/pg-nommu.c deleted file mode 100644 index 7e33b486b7e..00000000000 --- a/arch/sh/mm/pg-nommu.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * arch/sh/mm/pg-nommu.c - * - * copy_page()/__copy_user()/__clear_user() implementations for MMUless SH. - * - * Copyright (C) 2003 Paul Mundt - * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - */ -#include -#include -#include -#include -#include - -void copy_page(void *to, void *from) -{ - memcpy(to, from, PAGE_SIZE); -} - -__kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n) -{ - memcpy(to, from, n); - return 0; -} - -__kernel_size_t __clear_user(void *to, __kernel_size_t n) -{ - memset(to, 0, n); - return 0; -} -- cgit v1.2.3-70-g09d2