diff options
author | David S. Miller <davem@davemloft.net> | 2012-05-23 23:12:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-24 16:10:05 -0400 |
commit | 446969084d33a4064a39d280806da642c54ba4ac (patch) | |
tree | 0887795d96007b228733c9499bda1731d64e48fe /arch/sparc/lib | |
parent | 35c9646062eba15351c6d64ea0c02176e5cb66ac (diff) |
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.c | 3 |
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 @@ | |||
1 | #include <linux/module.h> | 1 | #include <linux/module.h> |
2 | #include <linux/uaccess.h> | 2 | #include <linux/uaccess.h> |
3 | #include <linux/kernel.h> | ||
3 | #include <linux/errno.h> | 4 | #include <linux/errno.h> |
4 | #include <linux/bug.h> | 5 | #include <linux/bug.h> |
5 | 6 | ||
@@ -11,8 +12,6 @@ void copy_from_user_overflow(void) | |||
11 | } | 12 | } |
12 | EXPORT_SYMBOL(copy_from_user_overflow); | 13 | EXPORT_SYMBOL(copy_from_user_overflow); |
13 | 14 | ||
14 | #define REPEAT_BYTE(x) ((~0ul / 0xff) * (x)) | ||
15 | |||
16 | static inline long find_zero(unsigned long mask) | 15 | static inline long find_zero(unsigned long mask) |
17 | { | 16 | { |
18 | long byte = 0; | 17 | long byte = 0; |