[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1/5] xen: Use existing __section() macro instead of opencoding it
No functional change Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CC: Keir Fraser <keir@xxxxxxx> CC: Jan Beulich <JBeulich@xxxxxxxx> CC: Ian Campbell <ian.campbell@xxxxxxxxxx> CC: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx> CC: Tim Deegan <tim@xxxxxxx> --- xen/arch/x86/hvm/hvm.c | 2 +- xen/arch/x86/mm.c | 3 +-- xen/arch/x86/setup.c | 2 +- xen/arch/x86/x86_64/mm.c | 6 ++---- xen/include/asm-arm/device.h | 2 +- xen/include/asm-arm/platform.h | 2 +- 6 files changed, 7 insertions(+), 10 deletions(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index b1023bb..f354cb7 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -82,7 +82,7 @@ * the hardware domain which needs a more permissive one. */ #define HVM_IOBITMAP_SIZE (3 * PAGE_SIZE) -unsigned long __attribute__ ((__section__ (".bss.page_aligned"))) +unsigned long __section(".bss.page_aligned") hvm_io_bitmap[HVM_IOBITMAP_SIZE / BYTES_PER_LONG]; /* Xen command-line option to enable HAP */ diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 1c0783f..c1a38bc 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -126,8 +126,7 @@ #include <asm/pci.h> /* Mapping of the fixmap space needed early. */ -l1_pgentry_t __attribute__ ((__section__ (".bss.page_aligned"))) - l1_fixmap[L1_PAGETABLE_ENTRIES]; +l1_pgentry_t __section(".bss.page_aligned") l1_fixmap[L1_PAGETABLE_ENTRIES]; #define MEM_LOG(_f, _a...) gdprintk(XENLOG_WARNING , _f "\n" , ## _a) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 8e21859..d118dec 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -101,7 +101,7 @@ DEFINE_PER_CPU(struct tss_struct, init_tss); -char __attribute__ ((__section__(".bss.stack_aligned"))) cpu0_stack[STACK_SIZE]; +char __section(".bss.stack_aligned") cpu0_stack[STACK_SIZE]; struct cpuinfo_x86 __read_mostly boot_cpu_data = { 0, 0, 0, 0, -1 }; diff --git a/xen/arch/x86/x86_64/mm.c b/xen/arch/x86/x86_64/mm.c index e58de58..3ef4618 100644 --- a/xen/arch/x86/x86_64/mm.c +++ b/xen/arch/x86/x86_64/mm.c @@ -43,10 +43,8 @@ unsigned int __read_mostly m2p_compat_vstart = __HYPERVISOR_COMPAT_VIRT_START; /* Enough page directories to map into the bottom 1GB. */ -l3_pgentry_t __attribute__ ((__section__ (".bss.page_aligned"))) - l3_bootmap[L3_PAGETABLE_ENTRIES]; -l2_pgentry_t __attribute__ ((__section__ (".bss.page_aligned"))) - l2_bootmap[L2_PAGETABLE_ENTRIES]; +l3_pgentry_t __section(".bss.page_aligned") l3_bootmap[L3_PAGETABLE_ENTRIES]; +l2_pgentry_t __section(".bss.page_aligned") l2_bootmap[L2_PAGETABLE_ENTRIES]; l2_pgentry_t *compat_idle_pg_table_l2; diff --git a/xen/include/asm-arm/device.h b/xen/include/asm-arm/device.h index a72f7c9..5d0a4cd 100644 --- a/xen/include/asm-arm/device.h +++ b/xen/include/asm-arm/device.h @@ -71,7 +71,7 @@ int __init device_init(struct dt_device_node *dev, enum device_class class, #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, \ diff --git a/xen/include/asm-arm/platform.h b/xen/include/asm-arm/platform.h index 746e126..283b50f 100644 --- a/xen/include/asm-arm/platform.h +++ b/xen/include/asm-arm/platform.h @@ -67,7 +67,7 @@ struct platform_desc { #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 \ -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |