From: mpi Date: Sun, 13 Mar 2022 08:04:38 +0000 (+0000) Subject: Constify struct cfattach. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=78d5ff0ec949396ff3bbc97f51b741a17179ba18;p=openbsd Constify struct cfattach. ok miod@ --- diff --git a/sys/arch/hppa/dev/astro.c b/sys/arch/hppa/dev/astro.c index 1aa2db44506..e3460807294 100644 --- a/sys/arch/hppa/dev/astro.c +++ b/sys/arch/hppa/dev/astro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: astro.c,v 1.17 2014/11/16 12:30:57 deraadt Exp $ */ +/* $OpenBSD: astro.c,v 1.18 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -156,7 +156,7 @@ struct iommu_map_state { int astro_match(struct device *, void *, void *); void astro_attach(struct device *, struct device *, void *); -struct cfattach astro_ca = { +const struct cfattach astro_ca = { sizeof(struct astro_softc), astro_match, astro_attach }; diff --git a/sys/arch/hppa/dev/com_dino.c b/sys/arch/hppa/dev/com_dino.c index d1cac3c28c5..8115f020cc2 100644 --- a/sys/arch/hppa/dev/com_dino.c +++ b/sys/arch/hppa/dev/com_dino.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_dino.c,v 1.4 2007/07/15 19:25:49 kettenis Exp $ */ +/* $OpenBSD: com_dino.c,v 1.5 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2004 Michael Shalayeff @@ -61,7 +61,7 @@ struct com_dino_regs { int com_dino_match(struct device *, void *, void *); void com_dino_attach(struct device *, struct device *, void *); -struct cfattach com_dino_ca = { +const struct cfattach com_dino_ca = { sizeof(struct com_softc), com_dino_match, com_dino_attach }; diff --git a/sys/arch/hppa/dev/com_ssio.c b/sys/arch/hppa/dev/com_ssio.c index 97d86fb77e2..7c0ca94eb1b 100644 --- a/sys/arch/hppa/dev/com_ssio.c +++ b/sys/arch/hppa/dev/com_ssio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_ssio.c,v 1.2 2007/06/24 16:28:39 kettenis Exp $ */ +/* $OpenBSD: com_ssio.c,v 1.3 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -34,7 +34,7 @@ int com_ssio_match(struct device *, void *, void *); void com_ssio_attach(struct device *, struct device *, void *); -struct cfattach com_ssio_ca = { +const struct cfattach com_ssio_ca = { sizeof(struct com_softc), com_ssio_match, com_ssio_attach }; diff --git a/sys/arch/hppa/dev/cpu.c b/sys/arch/hppa/dev/cpu.c index 047d9602cd5..f6abc9dbd24 100644 --- a/sys/arch/hppa/dev/cpu.c +++ b/sys/arch/hppa/dev/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.42 2020/05/29 04:42:23 deraadt Exp $ */ +/* $OpenBSD: cpu.c,v 1.43 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -54,7 +54,7 @@ static volatile int start_secondary_cpu; int cpumatch(struct device *, void *, void *); void cpuattach(struct device *, struct device *, void *); -struct cfattach cpu_ca = { +const struct cfattach cpu_ca = { sizeof(struct cpu_softc), cpumatch, cpuattach }; diff --git a/sys/arch/hppa/dev/dino.c b/sys/arch/hppa/dev/dino.c index f08bf18e993..dd52d95835d 100644 --- a/sys/arch/hppa/dev/dino.c +++ b/sys/arch/hppa/dev/dino.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dino.c,v 1.32 2018/05/14 13:54:39 kettenis Exp $ */ +/* $OpenBSD: dino.c,v 1.33 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2003-2005 Michael Shalayeff @@ -126,7 +126,7 @@ int dinomatch(struct device *, void *, void *); void dinoattach(struct device *, struct device *, void *); int dino_intr(void *); -struct cfattach dino_ca = { +const struct cfattach dino_ca = { sizeof(struct dino_softc), dinomatch, dinoattach }; diff --git a/sys/arch/hppa/dev/elroy.c b/sys/arch/hppa/dev/elroy.c index d7ff4bc9859..4b389dfb2d2 100644 --- a/sys/arch/hppa/dev/elroy.c +++ b/sys/arch/hppa/dev/elroy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elroy.c,v 1.11 2012/02/25 17:08:49 miod Exp $ */ +/* $OpenBSD: elroy.c,v 1.12 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -49,7 +49,7 @@ int elroy_match(struct device *, void *, void *); void elroy_attach(struct device *, struct device *, void *); int elroy_intr(void *); -struct cfattach elroy_ca = { +const struct cfattach elroy_ca = { sizeof(struct elroy_softc), elroy_match, elroy_attach }; diff --git a/sys/arch/hppa/dev/gecko.c b/sys/arch/hppa/dev/gecko.c index 171b208513e..13ea4366f82 100644 --- a/sys/arch/hppa/dev/gecko.c +++ b/sys/arch/hppa/dev/gecko.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gecko.c,v 1.1 2008/04/27 14:39:51 kettenis Exp $ */ +/* $OpenBSD: gecko.c,v 1.2 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -39,7 +39,7 @@ struct gecko_softc { int gecko_match(struct device *, void *, void *); void gecko_attach(struct device *, struct device *, void *); -struct cfattach gecko_ca = { +const struct cfattach gecko_ca = { sizeof(struct gecko_softc), gecko_match, gecko_attach }; diff --git a/sys/arch/hppa/dev/lcd.c b/sys/arch/hppa/dev/lcd.c index 70be90a9a0a..335a14e858f 100644 --- a/sys/arch/hppa/dev/lcd.c +++ b/sys/arch/hppa/dev/lcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lcd.c,v 1.5 2020/03/06 01:45:32 cheloha Exp $ */ +/* $OpenBSD: lcd.c,v 1.6 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -48,7 +48,7 @@ struct lcd_softc { int lcd_match(struct device *, void *, void *); void lcd_attach(struct device *, struct device *, void *); -struct cfattach lcd_ca = { +const struct cfattach lcd_ca = { sizeof(struct lcd_softc), lcd_match, lcd_attach }; diff --git a/sys/arch/hppa/dev/lpt_ssio.c b/sys/arch/hppa/dev/lpt_ssio.c index 42253d547ef..3ed1e4a043a 100644 --- a/sys/arch/hppa/dev/lpt_ssio.c +++ b/sys/arch/hppa/dev/lpt_ssio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpt_ssio.c,v 1.1 2007/06/20 18:22:15 kettenis Exp $ */ +/* $OpenBSD: lpt_ssio.c,v 1.2 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -30,7 +30,7 @@ int lpt_ssio_match(struct device *, void *, void *); void lpt_ssio_attach(struct device *, struct device *, void *); -struct cfattach lpt_ssio_ca = { +const struct cfattach lpt_ssio_ca = { sizeof(struct lpt_softc), lpt_ssio_match, lpt_ssio_attach }; diff --git a/sys/arch/hppa/dev/mongoose.c b/sys/arch/hppa/dev/mongoose.c index 4e3794f473e..098c520c9a9 100644 --- a/sys/arch/hppa/dev/mongoose.c +++ b/sys/arch/hppa/dev/mongoose.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mongoose.c,v 1.22 2022/02/14 23:20:46 jsg Exp $ */ +/* $OpenBSD: mongoose.c,v 1.23 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -50,7 +50,7 @@ void mgattach_gedoens(struct device *, struct device *, void *); int mgmatch_gedoens(struct device *, void *, void *); -struct cfattach mg_gedoens_ca = { +const struct cfattach mg_gedoens_ca = { sizeof(struct mongoose_softc), mgmatch_gedoens, mgattach_gedoens }; diff --git a/sys/arch/hppa/dev/pdc.c b/sys/arch/hppa/dev/pdc.c index 7835c64cc68..896075bbd6b 100644 --- a/sys/arch/hppa/dev/pdc.c +++ b/sys/arch/hppa/dev/pdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pdc.c,v 1.40 2018/02/19 08:59:52 mpi Exp $ */ +/* $OpenBSD: pdc.c,v 1.41 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -63,7 +63,7 @@ struct consdev pdccons = { NULL, NULL, pdccngetc, pdccnputc, int pdcmatch(struct device *, void *, void *); void pdcattach(struct device *, struct device *, void *); -struct cfattach pdc_ca = { +const struct cfattach pdc_ca = { sizeof(pdcsoftc_t), pdcmatch, pdcattach }; diff --git a/sys/arch/hppa/dev/phantomas.c b/sys/arch/hppa/dev/phantomas.c index 5cb4b25de08..fb59d9b554e 100644 --- a/sys/arch/hppa/dev/phantomas.c +++ b/sys/arch/hppa/dev/phantomas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: phantomas.c,v 1.5 2010/04/29 13:48:29 jsing Exp $ */ +/* $OpenBSD: phantomas.c,v 1.6 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -48,7 +48,7 @@ struct phantomas_softc { int phantomasmatch(struct device *, void *, void *); void phantomasattach(struct device *, struct device *, void *); -struct cfattach phantomas_ca = { +const struct cfattach phantomas_ca = { sizeof(struct phantomas_softc), phantomasmatch, phantomasattach }; diff --git a/sys/arch/hppa/dev/power.c b/sys/arch/hppa/dev/power.c index 4c14be5868a..340859991c8 100644 --- a/sys/arch/hppa/dev/power.c +++ b/sys/arch/hppa/dev/power.c @@ -1,4 +1,4 @@ -/* $OpenBSD: power.c,v 1.10 2019/10/12 15:53:24 cheloha Exp $ */ +/* $OpenBSD: power.c,v 1.11 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2003 Michael Shalayeff @@ -55,7 +55,7 @@ struct power_softc { int powermatch(struct device *, void *, void *); void powerattach(struct device *, struct device *, void *); -struct cfattach power_ca = { +const struct cfattach power_ca = { sizeof(struct power_softc), powermatch, powerattach }; diff --git a/sys/arch/hppa/dev/siop_sgc.c b/sys/arch/hppa/dev/siop_sgc.c index 0cefeb3f1ac..d70543a3d5e 100644 --- a/sys/arch/hppa/dev/siop_sgc.c +++ b/sys/arch/hppa/dev/siop_sgc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siop_sgc.c,v 1.1 2007/08/05 19:09:52 kettenis Exp $ */ +/* $OpenBSD: siop_sgc.c,v 1.2 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -54,7 +54,7 @@ struct siop_sgc_softc { struct hppa_bus_space_tag sc_bustag; }; -struct cfattach siop_gedoens_ca = { +const struct cfattach siop_gedoens_ca = { sizeof(struct siop_sgc_softc), siop_sgc_match, siop_sgc_attach }; diff --git a/sys/arch/hppa/dev/ssio.c b/sys/arch/hppa/dev/ssio.c index 49df0167529..760e8f3e4bd 100644 --- a/sys/arch/hppa/dev/ssio.c +++ b/sys/arch/hppa/dev/ssio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssio.c,v 1.7 2009/03/08 22:19:04 miod Exp $ */ +/* $OpenBSD: ssio.c,v 1.8 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -114,7 +114,7 @@ struct ssio_softc { void *sc_ih; }; -struct cfattach ssio_ca = { +const struct cfattach ssio_ca = { sizeof(struct ssio_softc), ssio_match, ssio_attach }; diff --git a/sys/arch/hppa/dev/sti_sgc.c b/sys/arch/hppa/dev/sti_sgc.c index 5e70251b142..6ecfe44ae2d 100644 --- a/sys/arch/hppa/dev/sti_sgc.c +++ b/sys/arch/hppa/dev/sti_sgc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sti_sgc.c,v 1.40 2014/08/30 14:42:05 miod Exp $ */ +/* $OpenBSD: sti_sgc.c,v 1.41 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2000-2003 Michael Shalayeff @@ -61,7 +61,7 @@ int sti_sgc_probe(struct device *, void *, void *); void sti_sgc_attach(struct device *, struct device *, void *); paddr_t sti_sgc_getrom(int, struct confargs *); -struct cfattach sti_gedoens_ca = { +const struct cfattach sti_gedoens_ca = { sizeof(struct sti_softc), sti_sgc_probe, sti_sgc_attach }; diff --git a/sys/arch/hppa/dev/uturn.c b/sys/arch/hppa/dev/uturn.c index 513869f208c..a8985908fca 100644 --- a/sys/arch/hppa/dev/uturn.c +++ b/sys/arch/hppa/dev/uturn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uturn.c,v 1.7 2010/04/29 13:48:29 jsing Exp $ */ +/* $OpenBSD: uturn.c,v 1.8 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2004 Michael Shalayeff @@ -54,7 +54,7 @@ struct uturn_softc { int uturnmatch(struct device *, void *, void *); void uturnattach(struct device *, struct device *, void *); -struct cfattach uturn_ca = { +const struct cfattach uturn_ca = { sizeof(struct uturn_softc), uturnmatch, uturnattach }; diff --git a/sys/arch/hppa/gsc/com_gsc.c b/sys/arch/hppa/gsc/com_gsc.c index 4b67f2dbd36..06bcaf6864e 100644 --- a/sys/arch/hppa/gsc/com_gsc.c +++ b/sys/arch/hppa/gsc/com_gsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_gsc.c,v 1.21 2007/07/15 19:25:49 kettenis Exp $ */ +/* $OpenBSD: com_gsc.c,v 1.22 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -51,7 +51,7 @@ struct com_gsc_regs { int com_gsc_probe(struct device *, void *, void *); void com_gsc_attach(struct device *, struct device *, void *); -struct cfattach com_gsc_ca = { +const struct cfattach com_gsc_ca = { sizeof(struct com_softc), com_gsc_probe, com_gsc_attach }; diff --git a/sys/arch/hppa/gsc/fdc_gsc.c b/sys/arch/hppa/gsc/fdc_gsc.c index 0d576bbe475..70926ccc8f7 100644 --- a/sys/arch/hppa/gsc/fdc_gsc.c +++ b/sys/arch/hppa/gsc/fdc_gsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fdc_gsc.c,v 1.5 2004/04/07 18:24:19 mickey Exp $ */ +/* $OpenBSD: fdc_gsc.c,v 1.6 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -45,7 +45,7 @@ int fdc_gsc_probe(struct device *, void *, void *); void fdc_gsc_attach(struct device *, struct device *, void *); -struct cfattach fdc_gsc_ca = { +const struct cfattach fdc_gsc_ca = { sizeof(struct fdc_softc), fdc_gsc_probe, fdc_gsc_attach }; diff --git a/sys/arch/hppa/gsc/gsckbc.c b/sys/arch/hppa/gsc/gsckbc.c index cc26642ba98..439316477e0 100644 --- a/sys/arch/hppa/gsc/gsckbc.c +++ b/sys/arch/hppa/gsc/gsckbc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gsckbc.c,v 1.20 2019/10/12 15:53:24 cheloha Exp $ */ +/* $OpenBSD: gsckbc.c,v 1.21 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * All rights reserved. @@ -102,7 +102,7 @@ struct gsckbc_softc { int sc_type; }; -struct cfattach gsckbc_ca = { +const struct cfattach gsckbc_ca = { sizeof(struct gsckbc_softc), gsckbc_match, gsckbc_attach }; diff --git a/sys/arch/hppa/gsc/harmony.c b/sys/arch/hppa/gsc/harmony.c index c1ba6900ffe..118d89aadba 100644 --- a/sys/arch/hppa/gsc/harmony.c +++ b/sys/arch/hppa/gsc/harmony.c @@ -1,4 +1,4 @@ -/* $OpenBSD: harmony.c,v 1.36 2022/02/16 06:21:18 anton Exp $ */ +/* $OpenBSD: harmony.c,v 1.37 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2003 Jason L. Wright (jason@thought.net) @@ -1159,6 +1159,6 @@ struct cfdriver harmony_cd = { NULL, "harmony", DV_DULL }; -struct cfattach harmony_ca = { +const struct cfattach harmony_ca = { sizeof(struct harmony_softc), harmony_match, harmony_attach }; diff --git a/sys/arch/hppa/gsc/hil_gsc.c b/sys/arch/hppa/gsc/hil_gsc.c index 9b0e3cb5103..6854b92561a 100644 --- a/sys/arch/hppa/gsc/hil_gsc.c +++ b/sys/arch/hppa/gsc/hil_gsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hil_gsc.c,v 1.5 2005/12/22 07:09:52 miod Exp $ */ +/* $OpenBSD: hil_gsc.c,v 1.6 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * All rights reserved. @@ -51,7 +51,7 @@ struct hil_gsc_softc { int sc_hil_console; }; -struct cfattach hil_gsc_ca = { +const struct cfattach hil_gsc_ca = { sizeof(struct hil_gsc_softc), hil_gsc_match, hil_gsc_attach }; diff --git a/sys/arch/hppa/gsc/if_ie_gsc.c b/sys/arch/hppa/gsc/if_ie_gsc.c index 43029d1cd2d..068cd0c7ba6 100644 --- a/sys/arch/hppa/gsc/if_ie_gsc.c +++ b/sys/arch/hppa/gsc/if_ie_gsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ie_gsc.c,v 1.29 2015/11/24 17:11:38 mpi Exp $ */ +/* $OpenBSD: if_ie_gsc.c,v 1.30 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -70,7 +70,7 @@ struct ie_gsc_regs { int ie_gsc_probe(struct device *, void *, void *); void ie_gsc_attach(struct device *, struct device *, void *); -struct cfattach ie_gsc_ca = { +const struct cfattach ie_gsc_ca = { sizeof(struct ie_softc), ie_gsc_probe, ie_gsc_attach }; diff --git a/sys/arch/hppa/gsc/lpt_gsc.c b/sys/arch/hppa/gsc/lpt_gsc.c index 5f31d065c51..e6e43be89b8 100644 --- a/sys/arch/hppa/gsc/lpt_gsc.c +++ b/sys/arch/hppa/gsc/lpt_gsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpt_gsc.c,v 1.12 2011/09/16 17:20:07 miod Exp $ */ +/* $OpenBSD: lpt_gsc.c,v 1.13 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -71,7 +71,7 @@ int lpt_gsc_probe(struct device *, void *, void *); void lpt_gsc_attach(struct device *, struct device *, void *); -struct cfattach lpt_gsc_ca = { +const struct cfattach lpt_gsc_ca = { sizeof(struct lpt_softc), lpt_gsc_probe, lpt_gsc_attach }; diff --git a/sys/arch/hppa/gsc/mongoose_gsc.c b/sys/arch/hppa/gsc/mongoose_gsc.c index ec518c8b959..0bcbe831eee 100644 --- a/sys/arch/hppa/gsc/mongoose_gsc.c +++ b/sys/arch/hppa/gsc/mongoose_gsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mongoose_gsc.c,v 1.1 2004/10/30 10:26:32 miod Exp $ */ +/* $OpenBSD: mongoose_gsc.c,v 1.2 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2004, Miodrag Vallat. @@ -45,7 +45,7 @@ void mgattach_gsc(struct device *, struct device *, void *); int mgmatch_gsc(struct device *, void *, void *); -struct cfattach mg_gsc_ca = { +const struct cfattach mg_gsc_ca = { sizeof(struct mongoose_softc), mgmatch_gsc, mgattach_gsc }; diff --git a/sys/arch/hppa/gsc/oosiop_gsc.c b/sys/arch/hppa/gsc/oosiop_gsc.c index 10002805bc1..fddbf66f1d2 100644 --- a/sys/arch/hppa/gsc/oosiop_gsc.c +++ b/sys/arch/hppa/gsc/oosiop_gsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: oosiop_gsc.c,v 1.3 2010/04/20 20:21:54 miod Exp $ */ +/* $OpenBSD: oosiop_gsc.c,v 1.4 2022/03/13 08:04:38 mpi Exp $ */ /* $NetBSD: oosiop_gsc.c,v 1.2 2003/07/15 02:29:25 lukem Exp $ */ /* @@ -82,7 +82,7 @@ int oosiop_gsc_match(struct device *, void *, void *); void oosiop_gsc_attach(struct device *, struct device *, void *); int oosiop_gsc_intr(void *); -struct cfattach oosiop_gsc_ca = { +const struct cfattach oosiop_gsc_ca = { sizeof(struct oosiop_softc), oosiop_gsc_match, oosiop_gsc_attach }; diff --git a/sys/arch/hppa/gsc/osiop_gsc.c b/sys/arch/hppa/gsc/osiop_gsc.c index 77d11d3540e..d30478a6dc4 100644 --- a/sys/arch/hppa/gsc/osiop_gsc.c +++ b/sys/arch/hppa/gsc/osiop_gsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osiop_gsc.c,v 1.12 2005/12/13 23:13:45 mickey Exp $ */ +/* $OpenBSD: osiop_gsc.c,v 1.13 2022/03/13 08:04:38 mpi Exp $ */ /* $NetBSD: osiop_gsc.c,v 1.6 2002/10/02 05:17:50 thorpej Exp $ */ /* @@ -83,7 +83,7 @@ int osiop_gsc_match(struct device *, void *, void *); void osiop_gsc_attach(struct device *, struct device *, void *); int osiop_gsc_intr(void *); -struct cfattach osiop_gsc_ca = { +const struct cfattach osiop_gsc_ca = { sizeof(struct osiop_softc), osiop_gsc_match, osiop_gsc_attach }; diff --git a/sys/arch/hppa/gsc/siop_gsc.c b/sys/arch/hppa/gsc/siop_gsc.c index 3c54c8bbba5..2bff40dd420 100644 --- a/sys/arch/hppa/gsc/siop_gsc.c +++ b/sys/arch/hppa/gsc/siop_gsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siop_gsc.c,v 1.4 2007/08/23 21:01:22 kettenis Exp $ */ +/* $OpenBSD: siop_gsc.c,v 1.5 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -54,7 +54,7 @@ struct siop_gsc_softc { struct hppa_bus_space_tag sc_bustag; }; -struct cfattach siop_gsc_ca = { +const struct cfattach siop_gsc_ca = { sizeof(struct siop_gsc_softc), siop_gsc_match, siop_gsc_attach }; diff --git a/sys/arch/hppa/hppa/mainbus.c b/sys/arch/hppa/hppa/mainbus.c index f3019e4e430..0009da07193 100644 --- a/sys/arch/hppa/hppa/mainbus.c +++ b/sys/arch/hppa/hppa/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.89 2021/03/11 11:16:56 jsg Exp $ */ +/* $OpenBSD: mainbus.c,v 1.90 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -57,7 +57,7 @@ struct mainbus_softc { int mbmatch(struct device *, void *, void *); void mbattach(struct device *, struct device *, void *); -struct cfattach mainbus_ca = { +const struct cfattach mainbus_ca = { sizeof(struct mainbus_softc), mbmatch, mbattach }; diff --git a/sys/arch/hppa/hppa/mem.c b/sys/arch/hppa/hppa/mem.c index 813c341554b..6752427dcf3 100644 --- a/sys/arch/hppa/hppa/mem.c +++ b/sys/arch/hppa/hppa/mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem.c,v 1.5 2017/12/30 20:46:59 guenther Exp $ */ +/* $OpenBSD: mem.c,v 1.6 2022/03/13 08:04:38 mpi Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -144,7 +144,7 @@ struct mem_softc { int memmatch(struct device *, void *, void *); void memattach(struct device *, struct device *, void *); -struct cfattach mem_ca = { +const struct cfattach mem_ca = { sizeof(struct mem_softc), memmatch, memattach };