aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@FreeBSD.org>2021-02-25 01:29:33 +0000
committerMarcin Wojtas <mw@FreeBSD.org>2021-02-25 01:35:41 +0000
commitef567155d35fd8f783d9b907e9a2765640a11527 (patch)
tree0d8eae2fc14689b86dec458999b7c87082b88e99
parentbf667f282a7b98e7456d11e1cb46d9707ab8e774 (diff)
downloadsrc-ef567155d35fd8f783d9b907e9a2765640a11527.tar.gz
src-ef567155d35fd8f783d9b907e9a2765640a11527.zip
Fix powerpc build after 6dd69f0064f1
Commit 6dd69f0064f1 ("iflib: introduce isc_dma_width") failed to build on powerpc due to implicit type conversion error. Fix that. Submitted by: Artur Rojek <ar@semihalf.com> Obtained from: Semihalf Sponsored by: Amazon, Inc.
-rw-r--r--sys/net/iflib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index 6fd0ee3751f0..a7d5a8c24658 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -1390,7 +1390,7 @@ _iflib_dmamap_cb(void *arg, bus_dma_segment_t *segs, int nseg, int err)
}
#define DMA_WIDTH_TO_BUS_LOWADDR(width) \
- (((width) == 0) || (width) == flsl(BUS_SPACE_MAXADDR) ? \
+ (((width) == 0) || (width) == flsll(BUS_SPACE_MAXADDR) ? \
BUS_SPACE_MAXADDR : (1ULL << (width)) - 1ULL)
int
@@ -4761,7 +4761,7 @@ iflib_device_register(device_t dev, void *sc, if_shared_ctx_t sctx, if_ctx_t *ct
_iflib_pre_assert(scctx);
ctx->ifc_txrx = *scctx->isc_txrx;
- MPASS(scctx->isc_dma_width <= flsl(BUS_SPACE_MAXADDR));
+ MPASS(scctx->isc_dma_width <= flsll(BUS_SPACE_MAXADDR));
if (sctx->isc_flags & IFLIB_DRIVER_MEDIA)
ctx->ifc_mediap = scctx->isc_media;