[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86: use existing __section() macro instead of opencoding it
commit 498266eb5fd2af5bed995ed5cf30266eebe7926b Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Mon Jun 8 14:14:38 2015 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Jun 8 14:14:38 2015 +0200 x86: use existing __section() macro instead of opencoding it No functional change Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- 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 ++---- 4 files changed, 5 insertions(+), 8 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 @@ struct hvm_function_table hvm_funcs __read_mostly; * 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 @@ unsigned long __read_mostly xen_virt_end; 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; -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |