aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bounds.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/bounds.c')
-rw-r--r--kernel/bounds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/bounds.c b/kernel/bounds.c
index 85bb281858cb..9ca2bb30243c 100644
--- a/kernel/bounds.c
+++ b/kernel/bounds.c
@@ -6,6 +6,7 @@
6 6
7#define __GENERATING_BOUNDS_H 7#define __GENERATING_BOUNDS_H
8/* Include headers that define the enum constants of interest */ 8/* Include headers that define the enum constants of interest */
9#include <linux/page-flags.h>
9 10
10#define DEFINE(sym, val) \ 11#define DEFINE(sym, val) \
11 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 12 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
@@ -15,5 +16,6 @@
15void foo(void) 16void foo(void)
16{ 17{
17 /* The enum constants to put into include/linux/bounds.h */ 18 /* The enum constants to put into include/linux/bounds.h */
19 DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
18 /* End of constants */ 20 /* End of constants */
19} 21}