summaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-05-24 05:12:50 +0200
committerDavid S. Miller <davem@davemloft.net>2012-05-24 22:10:05 +0200
commit446969084d33a4064a39d280806da642c54ba4ac (patch)
tree0887795d96007b228733c9499bda1731d64e48fe /arch/sparc/lib
parentsparc: Increase portability of strncpy_from_user() implementation. (diff)
downloadlinux-446969084d33a4064a39d280806da642c54ba4ac.tar.xz
linux-446969084d33a4064a39d280806da642c54ba4ac.zip
kernel: Move REPEAT_BYTE definition into linux/kernel.h
And make sure that everything using it explicitly includes that header file. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/lib')
-rw-r--r--arch/sparc/lib/usercopy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/lib/usercopy.c b/arch/sparc/lib/usercopy.c
index f61ed820cb61..0b12e91d6ccc 100644
--- a/arch/sparc/lib/usercopy.c
+++ b/arch/sparc/lib/usercopy.c
@@ -1,5 +1,6 @@
#include <linux/module.h>
#include <linux/uaccess.h>
+#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/bug.h>
@@ -11,8 +12,6 @@ void copy_from_user_overflow(void)
}
EXPORT_SYMBOL(copy_from_user_overflow);
-#define REPEAT_BYTE(x) ((~0ul / 0xff) * (x))
-
static inline long find_zero(unsigned long mask)
{
long byte = 0;