summaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-05-04 00:41:02 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-04 00:41:02 +0100
commit423bc7b22bdeb73efeabfcf91d8a459ac33088f1 (patch)
tree511017422848fd9b6164379b10c44f020d5a51a2 /include/linux/compiler.h
parent4f79c3ffc6e04623711e86cf9a0e09e4aad8cb36 (diff)
downloadlwn-423bc7b22bdeb73efeabfcf91d8a459ac33088f1.tar.gz
lwn-423bc7b22bdeb73efeabfcf91d8a459ac33088f1.zip
Restore __attribute_const__ to user-visibility in linux/compiler.h...for now
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 1234be9024a2..9b4f11094937 100644
--- a/include/linux/compiler.h
+++ b/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 */