mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
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>
This commit is contained in:
parent
ec7cade8c1
commit
97965478a6
2 changed files with 13 additions and 17 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#define __GENERATING_BOUNDS_H
|
||||
/* Include headers that define the enum constants of interest */
|
||||
#include <linux/page-flags.h>
|
||||
#include <linux/mmzone.h>
|
||||
|
||||
#define DEFINE(sym, val) \
|
||||
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
|
||||
|
|
@ -17,5 +18,6 @@ void foo(void)
|
|||
{
|
||||
/* The enum constants to put into include/linux/bounds.h */
|
||||
DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
|
||||
DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
|
||||
/* End of constants */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue