[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:
Piotr Jaroszyński
2010-03-30 15:33:20 +02:00
committed by Michael Brown
parent 905ea56753
commit 7c6d3752c9
6 changed files with 12 additions and 12 deletions

View File

@@ -843,7 +843,7 @@ ath5k_rxbuf_setup(struct ath5k_softc *sc, struct ath5k_buf *bf)
if (ah->ah_setup_rx_desc(ah, ds,
iob_tailroom(iob), /* buffer size */
0) != 0) {
DBG("ath5k: error setting up RX descriptor for %d bytes\n", iob_tailroom(iob));
DBG("ath5k: error setting up RX descriptor for %zd bytes\n", iob_tailroom(iob));
return -EINVAL;
}
@@ -1293,7 +1293,7 @@ ath5k_tx_processq(struct ath5k_softc *sc, struct ath5k_txq *txq)
iob = bf->iob;
bf->iob = NULL;
DBG2("ath5k: tx %d bytes complete, %d retries\n",
DBG2("ath5k: tx %zd bytes complete, %d retries\n",
iob_len(iob), ts.ts_retry[0]);
net80211_tx_complete(sc->dev, iob, ts.ts_retry[0],