Blame view

kernel/bounds.c 600 Bytes
1cdf25d70   Christoph Lameter   kbuild: create a ...
1
2
3
4
5
6
7
8
  /*
   * 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 */
9223b4190   Christoph Lameter   pageflags: get ri...
9
  #include <linux/page-flags.h>
97965478a   Christoph Lameter   mm: Get rid of __...
10
  #include <linux/mmzone.h>
37487a565   Christoph Lameter   Add kbuild.h that...
11
  #include <linux/kbuild.h>
6b3ae58ef   Johannes Weiner   memcg: remove dir...
12
  #include <linux/page_cgroup.h>
1cdf25d70   Christoph Lameter   kbuild: create a ...
13
14
15
  
  void foo(void)
  {
01fc0ac19   Sam Ravnborg   kbuild: move boun...
16
  	/* The enum constants to put into include/generated/bounds.h */
9223b4190   Christoph Lameter   pageflags: get ri...
17
  	DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
97965478a   Christoph Lameter   mm: Get rid of __...
18
  	DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
6b3ae58ef   Johannes Weiner   memcg: remove dir...
19
  	DEFINE(NR_PCG_FLAGS, __NR_PCG_FLAGS);
1cdf25d70   Christoph Lameter   kbuild: create a ...
20
21
  	/* End of constants */
  }