aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2008-04-28 05:12:54 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:22 -0400
commit97965478a66fbdf0f4ad5e4ecc4828f0cb548a45 (patch)
treea60bb6c46acdc35d16b2e48f5c13248fc009b35e /kernel
parentec7cade8c1a3d1ace69b35cc843b181818578dce (diff)
mm: Get rid of __ZONE_COUNT
It was used to compensate because MAX_NR_ZONES was not available to the #ifdefs. Export MAX_NR_ZONES via the new mechanism and get rid of __ZONE_COUNT. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/bounds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/bounds.c b/kernel/bounds.c
index 9ca2bb30243c..c3c55544db2f 100644
--- a/kernel/bounds.c
+++ b/kernel/bounds.c
@@ -7,6 +7,7 @@
7#define __GENERATING_BOUNDS_H 7#define __GENERATING_BOUNDS_H
8/* Include headers that define the enum constants of interest */ 8/* Include headers that define the enum constants of interest */
9#include <linux/page-flags.h> 9#include <linux/page-flags.h>
10#include <linux/mmzone.h>
10 11
11#define DEFINE(sym, val) \ 12#define DEFINE(sym, val) \
12 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 13 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
@@ -17,5 +18,6 @@ void foo(void)
17{ 18{
18 /* The enum constants to put into include/linux/bounds.h */ 19 /* The enum constants to put into include/linux/bounds.h */
19 DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS); 20 DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
21 DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
20 /* End of constants */ 22 /* End of constants */
21} 23}