|
|
![](http://www.xen.org/images/globals/pixel.gif) |
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH 27 of 45] gcc-4.6 compile fix: xen/arch/x86/acpi/
>>> On 19.05.11 at 21:05, Olaf Hering <olaf@xxxxxxxxx> wrote:
> # HG changeset patch
> # User Olaf Hering <olaf@xxxxxxxxx>
> # Date 1305824412 -7200
> # Node ID 90160f32dbae6535e54e72375b004c0113ed1f62
> # Parent c8f5b4743f9a91dc1e879d35f8f2d4b981f0963d
> gcc-4.6 compile fix: xen/arch/x86/acpi/cpu_idle.c
>
> cpu_idle.c: In function 'acpi_idle_do_entry':
> cpu_idle.c:276:9: error: variable 'unused' set but not used
> [-Werror=unused-but-set-variable]
>
> Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
>
> diff -r c8f5b4743f9a -r 90160f32dbae xen/arch/x86/acpi/cpu_idle.c
> --- a/xen/arch/x86/acpi/cpu_idle.c Thu May 19 19:00:11 2011 +0200
> +++ b/xen/arch/x86/acpi/cpu_idle.c Thu May 19 19:00:12 2011 +0200
> @@ -273,7 +273,7 @@ static void acpi_processor_ffh_cstate_en
>
> static void acpi_idle_do_entry(struct acpi_processor_cx *cx)
> {
> - int unused;
> + int unused __attribute__((unused));
Better remove the variable and its assignment - inl(), just as the
inb() immediately before, can't be removed by the compiler even
if its result is unused (they're volatile asm()-s).
Jan
>
> switch ( cx->entry_method )
> {
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] [PATCH 18 of 45] gcc-4.6 compile fix: xen/common/cpupool.c, (continued)
- [Xen-devel] [PATCH 19 of 45] gcc-4.6 compile fix: xen/common/grant_table.c, Olaf Hering
- [Xen-devel] [PATCH 20 of 45] gcc-4.6 compile fix: xen/common/kexec.c, Olaf Hering
- [Xen-devel] [PATCH 21 of 45] gcc-4.6 compile fix: xen/common/sched_credit2.c, Olaf Hering
- [Xen-devel] [PATCH 22 of 45] gcc-4.6 compile fix: xen/common/unlzo.c, Olaf Hering
- [Xen-devel] [PATCH 23 of 45] gcc-4.6 compile fix: xen/drivers/passthrough/vtd/intremap.c, Olaf Hering
- [Xen-devel] [PATCH 24 of 45] gcc-4.6 compile fix: xen/arch/x86/msi.c, Olaf Hering
- [Xen-devel] [PATCH 25 of 45] gcc-4.6 compile fix: xen/arch/x86/microcode_amd.c, Olaf Hering
- [Xen-devel] [PATCH 26 of 45] gcc-4.6 compile fix: xen/arch/x86/time.c, Olaf Hering
- [Xen-devel] [PATCH 27 of 45] gcc-4.6 compile fix: xen/arch/x86/acpi/cpu_idle.c, Olaf Hering
- Re: [Xen-devel] [PATCH 27 of 45] gcc-4.6 compile fix: xen/arch/x86/acpi/cpu_idle.c,
Jan Beulich <=
- [Xen-devel] [PATCH 28 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/amd.c, Olaf Hering
- [Xen-devel] [PATCH 29 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/intel.c, Olaf Hering
- [Xen-devel] [PATCH 30 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/intel_cacheinfo.c, Olaf Hering
- [Xen-devel] [PATCH 32 of 45] gcc-4.6 compile fix: xen/arch/x86/hvm/emulate.c, Olaf Hering
- [Xen-devel] [PATCH 33 of 45] gcc-4.6 compile fix: xen/arch/x86/hvm/hvm.c, Olaf Hering
- [Xen-devel] [PATCH 31 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/mcheck/mce.c, Olaf Hering
- [Xen-devel] [PATCH 34 of 45] gcc-4.6 compile fix: xen/arch/x86/hvm/viridian.c, Olaf Hering
- [Xen-devel] [PATCH 35 of 45] gcc-4.6 compile fix: xen/arch/x86/mm/p2m-pod.c, Olaf Hering
|
|
|
|
|