aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-01-20 12:54:48 -0500
committerSam Ravnborg <sam@ravnborg.org>2008-01-28 17:21:17 -0500
commitf3fe866d59d707c7a2bba0b23add078e19edb3dc (patch)
treee255f81f9401adcaffc101af20ecf54bba033479 /include/linux/compiler.h
parent01ba2bdc6b639764745ff678caf3fb9e5bcd745a (diff)
compiler.h: introduce __section()
Add a new helper: __section() that makes a section definition much shorter and more readable. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index c68b67b86ef1..e0114a61268f 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -175,4 +175,9 @@ extern void __chk_io_ptr(const volatile void __iomem *);
175#define __cold 175#define __cold
176#endif 176#endif
177 177
178/* Simple shorthand for a section definition */
179#ifndef __section
180# define __section(S) __attribute__ ((__section__(#S)))
181#endif
182
178#endif /* __LINUX_COMPILER_H */ 183#endif /* __LINUX_COMPILER_H */