diff options
| author | Warner Losh <imp@FreeBSD.org> | 2022-11-05 04:35:37 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2023-01-19 01:02:26 +0000 |
| commit | 05410bd672c74eaa348ffd481ac5ad2a995ce184 (patch) | |
| tree | 0cb3938d7e9d89a5989fcc1598d631018f1f5cad | |
| parent | 28497d1445dbf7b5e7a858ada1623920a5a76dd1 (diff) | |
bnxt: Only filter out i386
Only i386 is missing bus_read_8. The other 32-bit platforms can be fixed
with a cast to a printf.
Suggested by: kevans
Sponsored by: Netflix
(cherry picked from commit eb40e3e757a7eb80c2b5c38ce05fc4b411b369f9)
| -rw-r--r-- | sys/dev/bnxt/bnxt_hwrm.c | 2 | ||||
| -rw-r--r-- | sys/modules/Makefile | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/bnxt/bnxt_hwrm.c b/sys/dev/bnxt/bnxt_hwrm.c index c362e01a1f8b..efea33327dc7 100644 --- a/sys/dev/bnxt/bnxt_hwrm.c +++ b/sys/dev/bnxt/bnxt_hwrm.c @@ -1483,7 +1483,7 @@ bnxt_hwrm_l2_filter_alloc(struct bnxt_softc *softc, uint16_t vlan_tag, if (*filter_id != -1) { device_printf(softc->dev, "Attempt to re-allocate l2 ctx " - "filter (fid: 0x%lx)\n", *filter_id); + "filter (fid: 0x%jx)\n", (uintmax_t)*filter_id); return EDOOFUS; } diff --git a/sys/modules/Makefile b/sys/modules/Makefile index a1521c48a1f7..53936d77d6ff 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -69,7 +69,7 @@ SUBDIR= \ ${_bxe} \ ${_bios} \ ${_blake2} \ - bnxt \ + ${_bnxt} \ bridgestp \ bwi \ bwn \ @@ -428,6 +428,11 @@ SUBDIR+= dtrace SUBDIR+= opensolaris .endif +# Requires bus_space_read_8 +.if ${MACHINE_ARCH} != "i386" +_bnxt= bnxt +.endif + .if ${MK_CRYPT} != "no" || defined(ALL_MODULES) .if exists(${SRCTOP}/sys/opencrypto) _crypto= crypto |
