summaryrefslogtreecommitdiff
path: root/include/linux/cache.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2002-12-29 21:41:09 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-12-29 21:41:09 -0800
commit8b0cc2d4e2705dc8793bd7c0e0f7b3504c49ecc6 (patch)
tree5822801fb636344e18dbc5403c45e4798f339af9 /include/linux/cache.h
parentf2780cec2e732fb53234a9db00508fd746e317f4 (diff)
[PATCH] promote the ALIGN() macro
ALIGN() currently has global scope in <linux/cache.h>. This causes a compilation error in the defxx driver. Move ALIGN() to <linux/kernel.h> and change the defxx driver to use the generic macro in place of its own.
Diffstat (limited to 'include/linux/cache.h')
-rw-r--r--include/linux/cache.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/cache.h b/include/linux/cache.h
index 95faa6ec3aa7..3db3832f35cb 100644
--- a/include/linux/cache.h
+++ b/include/linux/cache.h
@@ -1,11 +1,10 @@
#ifndef __LINUX_CACHE_H
#define __LINUX_CACHE_H
+#include <linux/kernel.h>
#include <linux/config.h>
#include <asm/cache.h>
-#define ALIGN(x,a) (((x)+(a)-1)&~((a)-1))
-
#ifndef L1_CACHE_ALIGN
#define L1_CACHE_ALIGN(x) ALIGN(x, L1_CACHE_BYTES)
#endif