arm: use existing __section() macro instead of opencoding it
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Jun 2015 13:38:39 +0000 (15:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 8 Jun 2015 13:38:39 +0000 (15:38 +0200)
No functional change

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/asm-arm/device.h
xen/include/asm-arm/platform.h

index a72f7c94166598c77767781f79605b5d5055e3ab..5d0a4cd14bcf250936d583c60c4799f7f82ed430 100644 (file)
@@ -71,7 +71,7 @@ enum device_class device_get_class(const struct dt_device_node *dev);
 
 #define DT_DEVICE_START(_name, _namestr, _class)                    \
 static const struct device_desc __dev_desc_##_name __used           \
-__attribute__((__section__(".dev.info"))) = {                       \
+__section(".dev.info") = {                                          \
     .name = _namestr,                                               \
     .class = _class,                                                \
 
index 746e126b496ce33ad6eb2072c8ecd7ae4d613ea8..283b50f3c58c06344c6a45c4ac9c4869116da02d 100644 (file)
@@ -67,7 +67,7 @@ void platform_dom0_gnttab(paddr_t *start, paddr_t *size);
 
 #define PLATFORM_START(_name, _namestr)                         \
 static const struct platform_desc  __plat_desc_##_name __used   \
-__attribute__((__section__(".arch.info"))) = {                  \
+__section(".arch.info") = {                                     \
     .name = _namestr,
 
 #define PLATFORM_END                                            \