svn commit: r297909 - head/sys/dev/bxe
David C Somayajulu
davidcs at FreeBSD.org
Wed Apr 13 04:13:38 UTC 2016
Author: davidcs
Date: Wed Apr 13 04:13:36 2016
New Revision: 297909
URL: https://svnweb.freebsd.org/changeset/base/297909
Log:
Fix build failure on i386. Need to typecast a bunch of variables to (uintmax_t)
MFC after:5 days
Modified:
head/sys/dev/bxe/bxe.c
Modified: head/sys/dev/bxe/bxe.c
==============================================================================
--- head/sys/dev/bxe/bxe.c Wed Apr 13 03:45:39 2016 (r297908)
+++ head/sys/dev/bxe/bxe.c Wed Apr 13 04:13:36 2016 (r297909)
@@ -18743,7 +18743,8 @@ bxe_grc_dump(struct bxe_softc *sc)
for (i = 0, allocated = 0; allocated < context_size; i++) {
BLOGI(sc, "cdu_context i %d paddr %#jx vaddr %p size 0x%zx\n", i,
- sc->context[i].vcxt_dma.paddr, sc->context[i].vcxt_dma.vaddr,
+ (uintmax_t)sc->context[i].vcxt_dma.paddr,
+ sc->context[i].vcxt_dma.vaddr,
sc->context[i].size);
allocated += sc->context[i].size;
}
@@ -18755,36 +18756,38 @@ bxe_grc_dump(struct bxe_softc *sc)
(void *)sc->def_sb_dma.paddr, sc->def_sb,
sizeof(struct host_sp_status_block));
BLOGI(sc, "event_queue paddr %#jx vaddr %p size 0x%x\n",
- sc->eq_dma.paddr, sc->eq_dma.vaddr, BCM_PAGE_SIZE);
+ (uintmax_t)sc->eq_dma.paddr, sc->eq_dma.vaddr, BCM_PAGE_SIZE);
BLOGI(sc, "slow path paddr %#jx vaddr %p size 0x%lx\n",
- sc->sp_dma.paddr, sc->sp_dma.vaddr, sizeof(struct bxe_slowpath));
+ (uintmax_t)sc->sp_dma.paddr, sc->sp_dma.vaddr,
+ sizeof(struct bxe_slowpath));
BLOGI(sc, "slow path queue paddr %#jx vaddr %p size 0x%x\n",
- sc->spq_dma.paddr, sc->spq_dma.vaddr, BCM_PAGE_SIZE);
+ (uintmax_t)sc->spq_dma.paddr, sc->spq_dma.vaddr, BCM_PAGE_SIZE);
BLOGI(sc, "fw_buf paddr %#jx vaddr %p size 0x%x\n",
- sc->gz_buf_dma.paddr, sc->gz_buf_dma.vaddr, FW_BUF_SIZE);
+ (uintmax_t)sc->gz_buf_dma.paddr, sc->gz_buf_dma.vaddr,
+ FW_BUF_SIZE);
for (i = 0; i < sc->num_queues; i++) {
fp = &sc->fp[i];
BLOGI(sc, "FP status block fp %d paddr %#jx vaddr %p size 0x%lx\n", i,
- fp->sb_dma.paddr, fp->sb_dma.vaddr,
+ (uintmax_t)fp->sb_dma.paddr, fp->sb_dma.vaddr,
sizeof(union bxe_host_hc_status_block));
BLOGI(sc, "TX BD CHAIN fp %d paddr %#jx vaddr %p size 0x%x\n", i,
- fp->tx_dma.paddr, fp->tx_dma.vaddr,
+ (uintmax_t)fp->tx_dma.paddr, fp->tx_dma.vaddr,
(BCM_PAGE_SIZE * TX_BD_NUM_PAGES));
BLOGI(sc, "RX BD CHAIN fp %d paddr %#jx vaddr %p size 0x%x\n", i,
- fp->rx_dma.paddr, fp->rx_dma.vaddr,
+ (uintmax_t)fp->rx_dma.paddr, fp->rx_dma.vaddr,
(BCM_PAGE_SIZE * RX_BD_NUM_PAGES));
BLOGI(sc, "RX RCQ CHAIN fp %d paddr %#jx vaddr %p size 0x%lx\n", i,
- fp->rcq_dma.paddr, fp->rcq_dma.vaddr,
+ (uintmax_t)fp->rcq_dma.paddr, fp->rcq_dma.vaddr,
(BCM_PAGE_SIZE * RCQ_NUM_PAGES));
BLOGI(sc, "RX SGE CHAIN fp %d paddr %#jx vaddr %p size 0x%x\n", i,
- fp->rx_sge_dma.paddr, fp->rx_sge_dma.vaddr,
+ (uintmax_t)fp->rx_sge_dma.paddr, fp->rx_sge_dma.vaddr,
(BCM_PAGE_SIZE * RX_SGE_NUM_PAGES));
}
ilt_cli = &ilt->clients[1];
for (i = ilt_cli->start; i <= ilt_cli->end; i++) {
BLOGI(sc, "ECORE_ILT paddr %#jx vaddr %p size 0x%x\n",
- ((struct bxe_dma *)((&ilt->lines[i])->page))->paddr,
+ (uintmax_t)(((struct bxe_dma *)((&ilt->lines[i])->page))->paddr),
((struct bxe_dma *)((&ilt->lines[i])->page))->vaddr, BCM_PAGE_SIZE);
}
More information about the svn-src-head
mailing list