Explorar o código

Restore __attribute_const__ to user-visibility in linux/compiler.h...for now

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
David Woodhouse %!s(int64=19) %!d(string=hai) anos
pai
achega
423bc7b22b
Modificáronse 1 ficheiros con 10 adicións e 9 borrados
  1. 10 9
      include/linux/compiler.h

+ 10 - 9
include/linux/compiler.h

@@ -128,6 +128,16 @@ extern void __chk_io_ptr(void __iomem *);
 # define __attribute_pure__	/* unimplemented */
 #endif
 
+#ifndef noinline
+#define noinline
+#endif
+
+#ifndef __always_inline
+#define __always_inline inline
+#endif
+
+#endif /* __KERNEL__ */
+
 /*
  * From the GCC manual:
  *
@@ -146,13 +156,4 @@ extern void __chk_io_ptr(void __iomem *);
 # define __attribute_const__	/* unimplemented */
 #endif
 
-#ifndef noinline
-#define noinline
-#endif
-
-#ifndef __always_inline
-#define __always_inline inline
-#endif
-
-#endif /* __KERNEL__ */
 #endif /* __LINUX_COMPILER_H */