2008-04-28 05:12:44 -04:00
|
|
|
/*
|
|
|
|
* Generate definitions needed by the preprocessor.
|
|
|
|
* This code generates raw asm output which is post-processed
|
|
|
|
* to extract and format the required data.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define __GENERATING_BOUNDS_H
|
|
|
|
/* Include headers that define the enum constants of interest */
|
2008-04-28 05:12:48 -04:00
|
|
|
#include <linux/page-flags.h>
|
2008-04-28 05:12:54 -04:00
|
|
|
#include <linux/mmzone.h>
|
2008-04-29 04:03:49 -04:00
|
|
|
#include <linux/kbuild.h>
|
2011-03-23 19:42:30 -04:00
|
|
|
#include <linux/page_cgroup.h>
|
2008-04-28 05:12:44 -04:00
|
|
|
|
|
|
|
void foo(void)
|
|
|
|
{
|
2009-04-19 15:57:19 -04:00
|
|
|
/* The enum constants to put into include/generated/bounds.h */
|
2008-04-28 05:12:48 -04:00
|
|
|
DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
|
2008-04-28 05:12:54 -04:00
|
|
|
DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
|
2011-03-23 19:42:30 -04:00
|
|
|
DEFINE(NR_PCG_FLAGS, __NR_PCG_FLAGS);
|
2008-04-28 05:12:44 -04:00
|
|
|
/* End of constants */
|
|
|
|
}
|