From 871480933a1c28f8a9fed4c4d34d06c439a7a422 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Sun, 11 Jan 2015 12:28:04 +0530 Subject: Moved, renamed, and deleted files The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure. --- kernel/bounds.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 kernel/bounds.c (limited to 'kernel/bounds.c') diff --git a/kernel/bounds.c b/kernel/bounds.c new file mode 100644 index 00000000..0c9b8622 --- /dev/null +++ b/kernel/bounds.c @@ -0,0 +1,21 @@ +/* + * 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 */ +#include +#include +#include +#include + +void foo(void) +{ + /* The enum constants to put into include/generated/bounds.h */ + DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS); + DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES); + DEFINE(NR_PCG_FLAGS, __NR_PCG_FLAGS); + /* End of constants */ +} -- cgit