Re: [Qemu-devel] [PATCH] rtl8139: do not assume TxStatus[] and TxAddr[] are adjacent

2012-04-11 Thread Anthony Liguori
On 04/11/2012 06:01 AM, Stefan Hajnoczi wrote: Commit afe0a595356192d5f79703cf6462fcc112df007c ("rtl8139: support byte read to TxStatus registers") reused rtl8139_TxStatus_read() for reading TxAddr registers. It relies on the fact that TxStatus[] and TxAddr[] are adjacent. This causes a gcc war

[Qemu-devel] [PATCH] rtl8139: do not assume TxStatus[] and TxAddr[] are adjacent

2012-04-11 Thread Stefan Hajnoczi
Commit afe0a595356192d5f79703cf6462fcc112df007c ("rtl8139: support byte read to TxStatus registers") reused rtl8139_TxStatus_read() for reading TxAddr registers. It relies on the fact that TxStatus[] and TxAddr[] are adjacent. This causes a gcc warning because the compiler can detect that array a