Blame view

kernel/bounds.c 773 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>
90572890d   Peter Zijlstra   mm: numa: Change ...
13
  #include <linux/log2.h>
24b9fdc59   Kirill A. Shutemov   kernel/bounds: av...
14
  #include <linux/spinlock_types.h>
1cdf25d70   Christoph Lameter   kbuild: create a ...
15
16
17
  
  void foo(void)
  {
01fc0ac19   Sam Ravnborg   kbuild: move boun...
18
  	/* The enum constants to put into include/generated/bounds.h */
9223b4190   Christoph Lameter   pageflags: get ri...
19
  	DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
97965478a   Christoph Lameter   mm: Get rid of __...
20
  	DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
6b3ae58ef   Johannes Weiner   memcg: remove dir...
21
  	DEFINE(NR_PCG_FLAGS, __NR_PCG_FLAGS);
90572890d   Peter Zijlstra   mm: numa: Change ...
22
23
24
  #ifdef CONFIG_SMP
  	DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS));
  #endif
597d795a2   Kirill A. Shutemov   mm: do not alloca...
25
  	DEFINE(SPINLOCK_SIZE, sizeof(spinlock_t));
1cdf25d70   Christoph Lameter   kbuild: create a ...
26
27
  	/* End of constants */
  }