From ffaee248909ec22560998b97d053a80f29c76bfa Mon Sep 17 00:00:00 2001 From: mpi Date: Fri, 5 Nov 2021 11:38:29 +0000 Subject: [PATCH] Constify struct cfattach. --- sys/dev/pv/if_vio.c | 4 ++-- sys/dev/pv/pvbus.c | 4 ++-- sys/dev/pv/pvclock.c | 4 ++-- sys/dev/pv/vioblk.c | 4 ++-- sys/dev/pv/viocon.c | 4 ++-- sys/dev/pv/viomb.c | 4 ++-- sys/dev/pv/viornd.c | 4 ++-- sys/dev/pv/vioscsi.c | 4 ++-- sys/dev/pv/vmmci.c | 4 ++-- sys/dev/pv/vmt.c | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/sys/dev/pv/if_vio.c b/sys/dev/pv/if_vio.c index 57f24591791..7cb27b2722d 100644 --- a/sys/dev/pv/if_vio.c +++ b/sys/dev/pv/if_vio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vio.c,v 1.19 2020/12/12 11:48:53 jan Exp $ */ +/* $OpenBSD: if_vio.c,v 1.20 2021/11/05 11:38:29 mpi Exp $ */ /* * Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg. @@ -315,7 +315,7 @@ vio_match(struct device *parent, void *match, void *aux) return 0; } -struct cfattach vio_ca = { +const struct cfattach vio_ca = { sizeof(struct vio_softc), vio_match, vio_attach, NULL }; diff --git a/sys/dev/pv/pvbus.c b/sys/dev/pv/pvbus.c index b7bbe91ee33..cbe543ac312 100644 --- a/sys/dev/pv/pvbus.c +++ b/sys/dev/pv/pvbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pvbus.c,v 1.23 2021/08/31 15:52:10 patrick Exp $ */ +/* $OpenBSD: pvbus.c,v 1.24 2021/11/05 11:38:29 mpi Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -63,7 +63,7 @@ void pvbus_xen_print(struct pvbus_hv *); int pvbus_minor(struct pvbus_softc *, dev_t); int pvbusgetstr(size_t, const char *, char **); -struct cfattach pvbus_ca = { +const struct cfattach pvbus_ca = { sizeof(struct pvbus_softc), pvbus_match, pvbus_attach, diff --git a/sys/dev/pv/pvclock.c b/sys/dev/pv/pvclock.c index cf727b076d8..c78a0fba98f 100644 --- a/sys/dev/pv/pvclock.c +++ b/sys/dev/pv/pvclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pvclock.c,v 1.7 2021/02/23 04:44:31 cheloha Exp $ */ +/* $OpenBSD: pvclock.c,v 1.8 2021/11/05 11:38:29 mpi Exp $ */ /* * Copyright (c) 2018 Reyk Floeter @@ -59,7 +59,7 @@ static inline uint32_t static inline int pvclock_read_done(const struct pvclock_time_info *, uint32_t); -struct cfattach pvclock_ca = { +const struct cfattach pvclock_ca = { sizeof(struct pvclock_softc), pvclock_match, pvclock_attach, diff --git a/sys/dev/pv/vioblk.c b/sys/dev/pv/vioblk.c index 2c924df04ff..d945671f328 100644 --- a/sys/dev/pv/vioblk.c +++ b/sys/dev/pv/vioblk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vioblk.c,v 1.32 2020/10/15 13:22:13 krw Exp $ */ +/* $OpenBSD: vioblk.c,v 1.33 2021/11/05 11:38:29 mpi Exp $ */ /* * Copyright (c) 2012 Stefan Fritsch. @@ -138,7 +138,7 @@ void vioblk_scsi_capacity(struct scsi_xfer *); void vioblk_scsi_capacity16(struct scsi_xfer *); void vioblk_scsi_done(struct scsi_xfer *, int); -struct cfattach vioblk_ca = { +const struct cfattach vioblk_ca = { sizeof(struct vioblk_softc), vioblk_match, vioblk_attach, diff --git a/sys/dev/pv/viocon.c b/sys/dev/pv/viocon.c index b1b22b5c5b2..bd96467c810 100644 --- a/sys/dev/pv/viocon.c +++ b/sys/dev/pv/viocon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: viocon.c,v 1.7 2019/05/26 15:20:04 sf Exp $ */ +/* $OpenBSD: viocon.c,v 1.8 2021/11/05 11:38:29 mpi Exp $ */ /* * Copyright (c) 2013-2015 Stefan Fritsch @@ -138,7 +138,7 @@ int vioconstop(struct tty *, int); int vioconioctl(dev_t, u_long, caddr_t, int, struct proc *); struct tty *viocontty(dev_t dev); -struct cfattach viocon_ca = { +const struct cfattach viocon_ca = { sizeof(struct viocon_softc), viocon_match, viocon_attach, diff --git a/sys/dev/pv/viomb.c b/sys/dev/pv/viomb.c index d4b09642ac4..8169770553e 100644 --- a/sys/dev/pv/viomb.c +++ b/sys/dev/pv/viomb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: viomb.c,v 1.7 2020/09/04 13:10:16 bket Exp $ */ +/* $OpenBSD: viomb.c,v 1.8 2021/11/05 11:38:29 mpi Exp $ */ /* $NetBSD: viomb.c,v 1.1 2011/10/30 12:12:21 hannken Exp $ */ /* @@ -114,7 +114,7 @@ int viomb_vq_dequeue(struct virtqueue *); int viomb_inflate_intr(struct virtqueue *); int viomb_deflate_intr(struct virtqueue *); -struct cfattach viomb_ca = { +const struct cfattach viomb_ca = { sizeof(struct viomb_softc), viomb_match, viomb_attach }; diff --git a/sys/dev/pv/viornd.c b/sys/dev/pv/viornd.c index da262d88a9e..39442bc8391 100644 --- a/sys/dev/pv/viornd.c +++ b/sys/dev/pv/viornd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: viornd.c,v 1.4 2020/05/29 04:42:25 deraadt Exp $ */ +/* $OpenBSD: viornd.c,v 1.5 2021/11/05 11:38:29 mpi Exp $ */ /* * Copyright (c) 2014 Stefan Fritsch @@ -59,7 +59,7 @@ void viornd_attach(struct device *, struct device *, void *); int viornd_vq_done(struct virtqueue *); void viornd_tick(void *); -struct cfattach viornd_ca = { +const struct cfattach viornd_ca = { sizeof(struct viornd_softc), viornd_match, viornd_attach, diff --git a/sys/dev/pv/vioscsi.c b/sys/dev/pv/vioscsi.c index 55dd8b2354b..8690363a0a0 100644 --- a/sys/dev/pv/vioscsi.c +++ b/sys/dev/pv/vioscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vioscsi.c,v 1.27 2021/10/24 09:16:53 deraadt Exp $ */ +/* $OpenBSD: vioscsi.c,v 1.28 2021/11/05 11:38:29 mpi Exp $ */ /* * Copyright (c) 2013 Google Inc. * @@ -70,7 +70,7 @@ void vioscsi_req_done(struct vioscsi_softc *, struct virtio_softc *, void *vioscsi_req_get(void *); void vioscsi_req_put(void *, void *); -struct cfattach vioscsi_ca = { +const struct cfattach vioscsi_ca = { sizeof(struct vioscsi_softc), vioscsi_match, vioscsi_attach, diff --git a/sys/dev/pv/vmmci.c b/sys/dev/pv/vmmci.c index deff44ba869..461df5801a1 100644 --- a/sys/dev/pv/vmmci.c +++ b/sys/dev/pv/vmmci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmmci.c,v 1.8 2020/06/24 22:03:40 cheloha Exp $ */ +/* $OpenBSD: vmmci.c,v 1.9 2021/11/05 11:38:29 mpi Exp $ */ /* * Copyright (c) 2017 Reyk Floeter @@ -58,7 +58,7 @@ int vmmci_config_change(struct virtio_softc *); void vmmci_tick(void *); void vmmci_tick_hook(struct device *); -struct cfattach vmmci_ca = { +const struct cfattach vmmci_ca = { sizeof(struct vmmci_softc), vmmci_match, vmmci_attach, diff --git a/sys/dev/pv/vmt.c b/sys/dev/pv/vmt.c index 18a17b1047c..fbc43e14f47 100644 --- a/sys/dev/pv/vmt.c +++ b/sys/dev/pv/vmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmt.c,v 1.23 2021/02/11 11:57:32 mestre Exp $ */ +/* $OpenBSD: vmt.c,v 1.24 2021/11/05 11:38:29 mpi Exp $ */ /* * Copyright (c) 2007 David Crawshaw @@ -370,7 +370,7 @@ struct vmt_tclo_rpc { #endif }; -struct cfattach vmt_ca = { +const struct cfattach vmt_ca = { sizeof(struct vmt_softc), vmt_match, vmt_attach, -- 2.20.1