Module Name: src Committed By: martin Date: Sat Jan 22 19:08:33 UTC 2022
Modified Files: src/sys/dev/pci: if_stge.c Log Message: Explicitly cast a __MASK(40) to bus_addr_t (for 32bit bus_addr_t archs) To generate a diff of this commit: cvs rdiff -u -r1.88 -r1.89 src/sys/dev/pci/if_stge.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_stge.c diff -u src/sys/dev/pci/if_stge.c:1.88 src/sys/dev/pci/if_stge.c:1.89 --- src/sys/dev/pci/if_stge.c:1.88 Sat Jan 22 15:10:32 2022 +++ src/sys/dev/pci/if_stge.c Sat Jan 22 19:08:33 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: if_stge.c,v 1.88 2022/01/22 15:10:32 skrll Exp $ */ +/* $NetBSD: if_stge.c,v 1.89 2022/01/22 19:08:33 martin Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.88 2022/01/22 15:10:32 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.89 2022/01/22 19:08:33 martin Exp $"); #include <sys/param.h> @@ -450,7 +450,7 @@ stge_attach(device_t parent, device_t se if (pci_dma64_available(pa)) { if (bus_dmatag_subregion(pa->pa_dmat64, 0, - FRAG_ADDR_MASK, + (bus_addr_t)FRAG_ADDR_MASK, &sc->sc_dmat, BUS_DMA_WAITOK) != 0) { aprint_error_dev(self,