mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 09:09:32 +03:00
[compiler] Fix 64bit compile time errors
Apart from format specifier fixes there are two changes in proper code: - Change type of regs in skge_hw to unsigned long - Cast result of sizeof in myri10ge to uint32_t Both don't change anything for i386 and should be fine on x86_64. Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com> Signed-off-by: Joshua Oreman <oremanj@rwcr.net> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
905ea56753
commit
7c6d3752c9
@@ -723,7 +723,7 @@ static int myri10ge_net_open ( struct net_device *netdev )
|
||||
|
||||
/* Set the interrupt queue size. */
|
||||
|
||||
data[0] = ( sizeof ( priv->dma->receive_completion )
|
||||
data[0] = ( (uint32_t)( sizeof ( priv->dma->receive_completion ) )
|
||||
| MXGEFW_CMD_SET_INTRQ_SIZE_FLAG_NO_STRICT_SIZE_CHECK );
|
||||
TRY ( CMD_SET_ , INTRQ_SIZE , );
|
||||
|
||||
@@ -973,7 +973,7 @@ static int myri10ge_net_transmit ( struct net_device *netdev,
|
||||
return -ENOBUFS;
|
||||
}
|
||||
|
||||
DBG2 ( "TX %p+%d ", iobuf->data, iob_len ( iobuf ) );
|
||||
DBG2 ( "TX %p+%zd ", iobuf->data, iob_len ( iobuf ) );
|
||||
DBG2_HD ( iobuf->data, 14 );
|
||||
|
||||
/* Record the packet being transmitted, so we can later report
|
||||
|
||||
Reference in New Issue
Block a user