From cf732b4dbb21d38c90af004a3cf93f52b5b9e3fe Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 5 Nov 2024 18:59:00 +0000 Subject: The first field of struct cfdriver is a pointer. Put NULL rather than 0 here. --- sys/dev/ic/bcmgenet.c | 4 ++-- sys/dev/ic/dc.c | 4 ++-- sys/dev/ic/mtd8xx.c | 4 ++-- sys/dev/ic/re.c | 4 ++-- sys/dev/ic/rtl81x9.c | 4 ++-- sys/dev/ic/smc83c170.c | 4 ++-- sys/dev/ic/xl.c | 4 ++-- sys/dev/pci/cz.c | 4 ++-- sys/dev/pci/drm/drm_drv.c | 2 +- sys/dev/pci/drm/i915/i915_driver.c | 2 +- sys/dev/pci/if_se.c | 4 ++-- sys/dev/pci/if_sk.c | 4 ++-- 12 files changed, 22 insertions(+), 22 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/bcmgenet.c b/sys/dev/ic/bcmgenet.c index 9054c57bac3..8305d2d1429 100644 --- a/sys/dev/ic/bcmgenet.c +++ b/sys/dev/ic/bcmgenet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcmgenet.c,v 1.7 2023/11/10 15:51:20 bluhm Exp $ */ +/* $OpenBSD: bcmgenet.c,v 1.8 2024/11/05 18:58:59 miod Exp $ */ /* $NetBSD: bcmgenet.c,v 1.3 2020/02/27 17:30:07 jmcneill Exp $ */ /*- @@ -82,7 +82,7 @@ CTASSERT(MCLBYTES == 2048); bus_space_write_4((sc)->sc_bst, (sc)->sc_bsh, (reg), (val)) struct cfdriver bse_cd = { - 0, "bse", DV_IFNET + NULL, "bse", DV_IFNET }; int diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c index c60c1c326a2..fda85b84140 100644 --- a/sys/dev/ic/dc.c +++ b/sys/dev/ic/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.158 2024/08/31 16:23:09 deraadt Exp $ */ +/* $OpenBSD: dc.c,v 1.159 2024/11/05 18:58:59 miod Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -3110,5 +3110,5 @@ dc_detach(struct dc_softc *sc) } struct cfdriver dc_cd = { - 0, "dc", DV_IFNET + NULL, "dc", DV_IFNET }; diff --git a/sys/dev/ic/mtd8xx.c b/sys/dev/ic/mtd8xx.c index 2b58cd054c5..43bef7e86b8 100644 --- a/sys/dev/ic/mtd8xx.c +++ b/sys/dev/ic/mtd8xx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mtd8xx.c,v 1.35 2022/01/09 05:42:38 jsg Exp $ */ +/* $OpenBSD: mtd8xx.c,v 1.36 2024/11/05 18:58:59 miod Exp $ */ /* * Copyright (c) 2003 Oleg Safiullin @@ -1059,5 +1059,5 @@ mtd_txeof(struct mtd_softc *sc) } struct cfdriver mtd_cd = { - 0, "mtd", DV_IFNET + NULL, "mtd", DV_IFNET }; diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index a8967f686df..17d783653b0 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.218 2024/08/12 06:47:11 dlg Exp $ */ +/* $OpenBSD: re.c,v 1.219 2024/11/05 18:58:59 miod Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -205,7 +205,7 @@ void re_kstat_detach(struct rl_softc *); void in_delayed_cksum(struct mbuf *); struct cfdriver re_cd = { - 0, "re", DV_IFNET + NULL, "re", DV_IFNET }; #define EE_SET(x) \ diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c index 6beca05a8e5..edf9ff6d233 100644 --- a/sys/dev/ic/rtl81x9.c +++ b/sys/dev/ic/rtl81x9.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9.c,v 1.99 2024/08/31 16:23:09 deraadt Exp $ */ +/* $OpenBSD: rtl81x9.c,v 1.100 2024/11/05 18:58:59 miod Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1368,5 +1368,5 @@ rl_detach(struct rl_softc *sc) } struct cfdriver rl_cd = { - 0, "rl", DV_IFNET + NULL, "rl", DV_IFNET }; diff --git a/sys/dev/ic/smc83c170.c b/sys/dev/ic/smc83c170.c index c74885afe1f..ae9014b554d 100644 --- a/sys/dev/ic/smc83c170.c +++ b/sys/dev/ic/smc83c170.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smc83c170.c,v 1.31 2023/11/10 15:51:20 bluhm Exp $ */ +/* $OpenBSD: smc83c170.c,v 1.32 2024/11/05 18:58:59 miod Exp $ */ /* $NetBSD: smc83c170.c,v 1.59 2005/02/27 00:27:02 perry Exp $ */ /*- @@ -91,7 +91,7 @@ int epic_mediachange(struct ifnet *); void epic_mediastatus(struct ifnet *, struct ifmediareq *); struct cfdriver epic_cd = { - 0, "epic", DV_IFNET + NULL, "epic", DV_IFNET }; #define INTMASK (INTSTAT_FATAL_INT | INTSTAT_TXU | \ diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c index dbeaeb76acf..33bc6594b09 100644 --- a/sys/dev/ic/xl.c +++ b/sys/dev/ic/xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xl.c,v 1.140 2024/08/31 16:23:09 deraadt Exp $ */ +/* $OpenBSD: xl.c,v 1.141 2024/11/05 18:58:59 miod Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2654,5 +2654,5 @@ xl_wol(struct ifnet *ifp, int enable) #endif struct cfdriver xl_cd = { - 0, "xl", DV_IFNET + NULL, "xl", DV_IFNET }; diff --git a/sys/dev/pci/cz.c b/sys/dev/pci/cz.c index afb5d0a676c..b7e695c14e3 100644 --- a/sys/dev/pci/cz.c +++ b/sys/dev/pci/cz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cz.c,v 1.29 2024/05/24 06:02:53 jsg Exp $ */ +/* $OpenBSD: cz.c,v 1.30 2024/11/05 18:58:59 miod Exp $ */ /* $NetBSD: cz.c,v 1.15 2001/01/20 19:10:36 thorpej Exp $ */ /*- @@ -192,7 +192,7 @@ int cztty_to_tiocm(struct cztty_softc *sc); void cztty_diag(void *arg); struct cfdriver cz_cd = { - 0, "cz", DV_TTY + NULL, "cz", DV_TTY }; /* diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index 6113fda273b..08d8fe36302 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -1576,7 +1576,7 @@ const struct cfattach drm_ca = { }; struct cfdriver drm_cd = { - 0, "drm", DV_DULL + NULL, "drm", DV_DULL }; const struct pci_device_id * diff --git a/sys/dev/pci/drm/i915/i915_driver.c b/sys/dev/pci/drm/i915/i915_driver.c index 5e3629934d6..a204ce69e94 100644 --- a/sys/dev/pci/drm/i915/i915_driver.c +++ b/sys/dev/pci/drm/i915/i915_driver.c @@ -2208,7 +2208,7 @@ const struct cfattach inteldrm_ca = { }; struct cfdriver inteldrm_cd = { - 0, "inteldrm", DV_DULL + NULL, "inteldrm", DV_DULL }; int inteldrm_intr(void *); diff --git a/sys/dev/pci/if_se.c b/sys/dev/pci/if_se.c index 4a5b40dc58a..18bd06c1886 100644 --- a/sys/dev/pci/if_se.c +++ b/sys/dev/pci/if_se.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_se.c,v 1.26 2024/08/31 16:23:09 deraadt Exp $ */ +/* $OpenBSD: if_se.c,v 1.27 2024/11/05 18:58:59 miod Exp $ */ /*- * Copyright (c) 2009, 2010 Christopher Zimmermann @@ -142,7 +142,7 @@ const struct cfattach se_ca = { }; struct cfdriver se_cd = { - 0, "se", DV_IFNET + NULL, "se", DV_IFNET }; uint32_t diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index de6a448b97a..d9a08eb4646 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.199 2024/09/04 07:54:52 mglocker Exp $ */ +/* $OpenBSD: if_sk.c,v 1.200 2024/11/05 18:58:59 miod Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -2529,7 +2529,7 @@ const struct cfattach skc_ca = { }; struct cfdriver skc_cd = { - 0, "skc", DV_DULL + NULL, "skc", DV_DULL }; const struct cfattach sk_ca = { -- cgit v1.2.3