aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/pg-nommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/pg-nommu.c')
-rw-r--r--arch/sh/mm/pg-nommu.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/arch/sh/mm/pg-nommu.c b/arch/sh/mm/pg-nommu.c
deleted file mode 100644
index 7e33b486b7e9..000000000000
--- a/arch/sh/mm/pg-nommu.c
+++ /dev/null
@@ -1,33 +0,0 @@
1/*
2 * arch/sh/mm/pg-nommu.c
3 *
4 * copy_page()/__copy_user()/__clear_user() implementations for MMUless SH.
5 *
6 * Copyright (C) 2003 Paul Mundt
7 *
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file "COPYING" in the main directory of this archive
10 * for more details.
11 */
12#include <linux/init.h>
13#include <linux/kernel.h>
14#include <linux/string.h>
15#include <asm/page.h>
16#include <asm/uaccess.h>
17
18void copy_page(void *to, void *from)
19{
20 memcpy(to, from, PAGE_SIZE);
21}
22
23__kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n)
24{
25 memcpy(to, from, n);
26 return 0;
27}
28
29__kernel_size_t __clear_user(void *to, __kernel_size_t n)
30{
31 memset(to, 0, n);
32 return 0;
33}