aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xsm
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/xsm
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/xsm')
-rw-r--r--xen/include/xsm/xsm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/xsm/xsm.h b/xen/include/xsm/xsm.h
index f081d5b788..bef79df8cd 100644
--- a/xen/include/xsm/xsm.h
+++ b/xen/include/xsm/xsm.h
@@ -44,7 +44,7 @@ extern xsm_initcall_t __xsm_initcall_start[], __xsm_initcall_end[];
#define xsm_initcall(fn) \
static xsm_initcall_t __initcall_##fn \
- __attribute_used__ __attribute__((__section__(".xsm_initcall.init"))) = fn
+ __used_section(".xsm_initcall.init") = fn
struct xsm_operations {
void (*security_domaininfo) (struct domain *d,