Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Explicitly cast a __MASK(48) to bus_addr_t (for ...
details: https://anonhg.NetBSD.org/src/rev/1cd375b90ed9
branches: trunk
changeset: 359791:1cd375b90ed9
user: martin <martin%NetBSD.org@localhost>
date: Sat Jan 22 19:09:21 2022 +0000
description:
Explicitly cast a __MASK(48) to bus_addr_t (for 32bit bus_addr_t archs)
diffstat:
sys/dev/pci/if_vge.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3c62de39ccfb -r 1cd375b90ed9 sys/dev/pci/if_vge.c
--- a/sys/dev/pci/if_vge.c Sat Jan 22 19:07:25 2022 +0000
+++ b/sys/dev/pci/if_vge.c Sat Jan 22 19:09:21 2022 +0000
@@ -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 @@
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,
Home |
Main Index |
Thread Index |
Old Index