WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] compile warnings in __IRQ_STAT

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] compile warnings in __IRQ_STAT
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Tue, 15 Mar 2005 13:23:26 -0600
Delivery-date: Tue, 15 Mar 2005 19:25:47 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.7.2
/home/hollis/source/xeno-unstable-ppc/xen/include/xen/softirq.h: In function 
`cpu_raise_softirq': 
/home/hollis/source/xeno-unstable-ppc/xen/include/xen/softirq.h:28: 
warning: use of compound expressions as lvalues is deprecated

static inline void cpu_raise_softirq(unsigned int cpu, unsigned int nr)
{
    if ( !test_and_set_bit(nr, &softirq_pending(cpu)) )
        smp_send_event_check_cpu(cpu);
}

#define softirq_pending(cpu) __IRQ_STAT((cpu), __softirq_pending)

I have CONFIG_SMP disabled, so the definition being used is this:
#define __IRQ_STAT(cpu, member) ((void)(cpu), irq_stat[0].member)

So the warning is caused by this statement:
    &((void)(cpu),  irq_stat[0].member))

GCC version:
basalt xeno-unstable-ppc% powerpc64-unknown-linux-gnu-gcc -v
Reading specs 
from 
/opt/crosstool/powerpc64-unknown-linux-gnu/gcc-3.4.2-glibc-2.3.3/lib/gcc/powerpc64-unknown-linux-gnu/3.4.2/specs
Configured 
with: 
/home/hollis/source/crosstool-0.28-rc37/build/powerpc64-unknown-linux-gnu/gcc-3.4.2-glibc-2.3.3/gcc-3.4.2/configure
 
--target=powerpc64-unknown-linux-gnu --host=i686-host_pc-linux-gnu 
--prefix=/opt/crosstool/powerpc64-unknown-linux-gnu/gcc-3.4.2-glibc-2.3.3 
--disable-multilib 
--with-sysroot=/opt/crosstool/powerpc64-unknown-linux-gnu/gcc-3.4.2-glibc-2.3.3/powerpc64-unknown-linux-gnu/sys-root
 
--with-local-prefix=/opt/crosstool/powerpc64-unknown-linux-gnu/gcc-3.4.2-glibc-2.3.3/powerpc64-unknown-linux-gnu/sys-root
 
--disable-nls --enable-threads=posix --enable-symvers=gnu 
--enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 
--enable-long-long
Thread model: posix
gcc version 3.4.2

Undefining CONFIG_SMP and building with GCC 3.4 on x86 should cause the same 
problem. Suggestions on how to fix? Removing the (void)cpu fixes it for me...

-- 
Hollis Blanchard
IBM Linux Technology Center


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>