aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/spinlock.h
diff options
context:
space:
mode:
authorTim Deegan <tim@xen.org>2012-04-11 13:10:33 +0100
committerTim Deegan <tim@xen.org>2012-04-11 13:10:33 +0100
commit2b7aac76417d57e336f41b6f6d5b0cb301d512f8 (patch)
tree91b0a6128dd8cf4e4f673cb91321032371641109 /xen/include/xen/spinlock.h
parent899b4c43f687dd577d90b0a875676868b8eaa835 (diff)
downloadxen-2b7aac76417d57e336f41b6f6d5b0cb301d512f8.tar.gz
xen-2b7aac76417d57e336f41b6f6d5b0cb301d512f8.tar.bz2
xen-2b7aac76417d57e336f41b6f6d5b0cb301d512f8.zip
xen: define __section() and friends and use them for section annotations.
By itself this is just code-tidying, but it's also useful for the following patch, which will adjust __section() for clang compiles. Signed-off-by: Tim Deegan <tim@xen.org> Acked-by: Keir Fraser <keir@xen.org> Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/include/xen/spinlock.h')
-rw-r--r--xen/include/xen/spinlock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/xen/spinlock.h b/xen/include/xen/spinlock.h
index 2df4452709..8133fe0934 100644
--- a/xen/include/xen/spinlock.h
+++ b/xen/include/xen/spinlock.h
@@ -77,8 +77,8 @@ struct lock_profile_qhead {
#define _LOCK_PROFILE(name) { 0, #name, &name, 0, 0, 0, 0, 0 }
#define _LOCK_PROFILE_PTR(name) \
- static struct lock_profile *__lock_profile_##name __attribute_used__ \
- __attribute__ ((__section__(".lockprofile.data"))) = \
+ static struct lock_profile *__lock_profile_##name \
+ __used_section(".lockprofile.data") = \
&__lock_profile_data_##name
#define _SPIN_LOCK_UNLOCKED(x) { _RAW_SPIN_LOCK_UNLOCKED, 0xfffu, 0, \
_LOCK_DEBUG, x }