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
This commit is contained in:
parent
a28989483e
commit
eb40e3e757
@ -1483,7 +1483,7 @@ bnxt_hwrm_l2_filter_alloc(struct bnxt_softc *softc, uint16_t vlan_tag,
|
|||||||
|
|
||||||
if (*filter_id != -1) {
|
if (*filter_id != -1) {
|
||||||
device_printf(softc->dev, "Attempt to re-allocate l2 ctx "
|
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;
|
return EDOOFUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -425,8 +425,7 @@ SUBDIR+= opensolaris
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
# Requires bus_space_read_8
|
# Requires bus_space_read_8
|
||||||
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "aarch64" || \
|
.if ${MACHINE_ARCH} != "i386"
|
||||||
${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc64le"
|
|
||||||
_bnxt= bnxt
|
_bnxt= bnxt
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user