Module Name:    src
Committed By:   martin
Date:           Sat Jan 22 19:09:21 UTC 2022

Modified Files:
        src/sys/dev/pci: if_vge.c

Log Message:
Explicitly cast a __MASK(48) to bus_addr_t (for 32bit bus_addr_t archs)


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/dev/pci/if_vge.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_vge.c
diff -u src/sys/dev/pci/if_vge.c:1.82 src/sys/dev/pci/if_vge.c:1.83
--- src/sys/dev/pci/if_vge.c:1.82	Sat Jan 22 15:10:32 2022
+++ src/sys/dev/pci/if_vge.c	Sat Jan 22 19:09:21 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vge.c,v 1.82 2022/01/22 15:10:32 skrll Exp $ */
+/* $NetBSD: if_vge.c,v 1.83 2022/01/22 19:09:21 martin Exp $ */
 
 /*-
  * Copyright (c) 2004
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vge.c,v 1.82 2022/01/22 15:10:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vge.c,v 1.83 2022/01/22 19:09:21 martin Exp $");
 
 /*
  * VIA Networking Technologies VT612x PCI gigabit ethernet NIC driver.
@@ -975,7 +975,7 @@ vge_attach(device_t parent, device_t sel
 	if (pci_dma64_available(pa)) {
 		if (bus_dmatag_subregion(pa->pa_dmat64,
 					 0,
-					 __MASK(48),
+					 (bus_addr_t)__MASK(48),
 					 &sc->sc_dmat,
 					 BUS_DMA_WAITOK) != 0) {
 			aprint_error_dev(self,

Reply via email to