omap2plus: voltage: Trivial linking fix 'undefined reference'
[firefly-linux-kernel-4.4.55.git] / kernel / bounds.c
index 9ca2bb30243ccd1580d487d9daaaf148f86c579b..98a51f26c13691b9f6f5955cdc83840f8932c2be 100644 (file)
@@ -7,15 +7,13 @@
 #define __GENERATING_BOUNDS_H
 /* Include headers that define the enum constants of interest */
 #include <linux/page-flags.h>
-
-#define DEFINE(sym, val) \
-        asm volatile("\n->" #sym " %0 " #val : : "i" (val))
-
-#define BLANK() asm volatile("\n->" : : )
+#include <linux/mmzone.h>
+#include <linux/kbuild.h>
 
 void foo(void)
 {
-       /* The enum constants to put into include/linux/bounds.h */
+       /* The enum constants to put into include/generated/bounds.h */
        DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
+       DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
        /* End of constants */
 }