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 /include/linux/kernel.h | |
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 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 645231c373c8..fbe9bfacb8db 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -38,6 +38,8 @@ | |||
38 | 38 | ||
39 | #define STACK_MAGIC 0xdeadbeef | 39 | #define STACK_MAGIC 0xdeadbeef |
40 | 40 | ||
41 | #define REPEAT_BYTE(x) ((~0ul / 0xff) * (x)) | ||
42 | |||
41 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) | 43 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) |
42 | #define __ALIGN_MASK(x, mask) __ALIGN_KERNEL_MASK((x), (mask)) | 44 | #define __ALIGN_MASK(x, mask) __ALIGN_KERNEL_MASK((x), (mask)) |
43 | #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) | 45 | #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) |