diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-08-29 06:08:05 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-08-29 06:08:05 +0000 |
commit | b15bc76c62161409e04fcb986d174856b3662ef3 (patch) | |
tree | cef186f363ef857a11efa29c5adf925a1cce7b2d /sys/dev | |
parent | 001bb62ccba9e90f7c2ec4eacb978131906dc341 (diff) |
static const, not const static
c99 6.11.5:
"The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature."
ok miod@ tb@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/adwlib.c | 8 | ||||
-rw-r--r-- | sys/dev/isa/gus.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_mtd_pci.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_tht.c | 6 | ||||
-rw-r--r-- | sys/dev/pci/pciide_natsemi_reg.h | 14 | ||||
-rw-r--r-- | sys/dev/pci/pciide_opti_reg.h | 10 | ||||
-rw-r--r-- | sys/dev/pci/yds.c | 6 | ||||
-rw-r--r-- | sys/dev/sbus/cs4231.c | 4 |
8 files changed, 28 insertions, 28 deletions
diff --git a/sys/dev/ic/adwlib.c b/sys/dev/ic/adwlib.c index 2e346d52dd0..3fe5eb3b075 100644 --- a/sys/dev/ic/adwlib.c +++ b/sys/dev/ic/adwlib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adwlib.c,v 1.28 2022/08/01 20:35:25 miod Exp $ */ +/* $OpenBSD: adwlib.c,v 1.29 2022/08/29 06:08:03 jsg Exp $ */ /* $NetBSD: adwlib.c,v 1.20 2000/07/04 04:17:03 itojun Exp $ */ /* @@ -95,7 +95,7 @@ void AdwDelayMicroSecond(u_int32_t); * Additional structure information can be found in adwlib.h where * the structure is defined. */ -const static ADW_EEPROM adw_3550_Default_EEPROM = { +static const ADW_EEPROM adw_3550_Default_EEPROM = { ADW_EEPROM_BIOS_ENABLE, /* 00 cfg_lsw */ 0x0000, /* 01 cfg_msw */ 0xFFFF, /* 02 disc_enable */ @@ -132,7 +132,7 @@ const static ADW_EEPROM adw_3550_Default_EEPROM = { 0 /* 35 saved_adw_err_addr */ }; -const static ADW_EEPROM adw_38C0800_Default_EEPROM = { +static const ADW_EEPROM adw_38C0800_Default_EEPROM = { ADW_EEPROM_BIOS_ENABLE, /* 00 cfg_lsw */ 0x0000, /* 01 cfg_msw */ 0xFFFF, /* 02 disc_enable */ @@ -178,7 +178,7 @@ const static ADW_EEPROM adw_38C0800_Default_EEPROM = { { 0,0,0,0 } /* 60-63 reserved2[4] */ }; -const static ADW_EEPROM adw_38C1600_Default_EEPROM = { +static const ADW_EEPROM adw_38C1600_Default_EEPROM = { ADW_EEPROM_BIOS_ENABLE, /* 00 cfg_lsw */ 0x0000, /* 01 cfg_msw */ 0xFFFF, /* 02 disc_enable */ diff --git a/sys/dev/isa/gus.c b/sys/dev/isa/gus.c index 77c381a1fdd..fbe64587fd2 100644 --- a/sys/dev/isa/gus.c +++ b/sys/dev/isa/gus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gus.c,v 1.50 2022/03/21 19:22:40 miod Exp $ */ +/* $OpenBSD: gus.c,v 1.51 2022/08/29 06:08:04 jsg Exp $ */ /* $NetBSD: gus.c,v 1.51 1998/01/25 23:48:06 mycroft Exp $ */ /*- @@ -291,7 +291,7 @@ const struct audio_hw_if gus_hw_if = { NULL }; -const static struct audio_hw_if gusmax_hw_if = { +static const struct audio_hw_if gusmax_hw_if = { gusmaxopen, gusmax_close, gusmax_set_params, diff --git a/sys/dev/pci/if_mtd_pci.c b/sys/dev/pci/if_mtd_pci.c index fcda4c40e71..2a2242e52df 100644 --- a/sys/dev/pci/if_mtd_pci.c +++ b/sys/dev/pci/if_mtd_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mtd_pci.c,v 1.12 2022/03/11 18:00:48 mpi Exp $ */ +/* $OpenBSD: if_mtd_pci.c,v 1.13 2022/08/29 06:08:04 jsg Exp $ */ /* * Copyright (c) 2003 Oleg Safiullin <form@pdp11.org.ru> @@ -58,7 +58,7 @@ const struct cfattach mtd_pci_ca = { sizeof(struct mtd_softc), mtd_pci_match, mtd_pci_attach }; -const static struct pci_matchid mtd_pci_devices[] = { +static const struct pci_matchid mtd_pci_devices[] = { { PCI_VENDOR_MYSON, PCI_PRODUCT_MYSON_MTD800 }, { PCI_VENDOR_MYSON, PCI_PRODUCT_MYSON_MTD803 }, { PCI_VENDOR_MYSON, PCI_PRODUCT_MYSON_MTD891 }, diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c index e157acc9bc3..e07be120ec3 100644 --- a/sys/dev/pci/if_tht.c +++ b/sys/dev/pci/if_tht.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tht.c,v 1.145 2022/03/11 18:00:48 mpi Exp $ */ +/* $OpenBSD: if_tht.c,v 1.146 2022/08/29 06:08:04 jsg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -1549,7 +1549,7 @@ tht_fifo_write_dmap(struct tht_softc *sc, struct tht_fifo *tf, void tht_fifo_write_pad(struct tht_softc *sc, struct tht_fifo *tf, int bc) { - const static u_int32_t pad = 0x0; + static const u_int32_t pad = 0x0; /* this assumes you'll only ever be writing multiples of 4 bytes */ if (bc % 8) @@ -1570,7 +1570,7 @@ tht_fifo_post(struct tht_softc *sc, struct tht_fifo *tf) tf->tf_wptr, tf->tf_rptr); } -const static bus_size_t tht_mac_regs[3] = { +static const bus_size_t tht_mac_regs[3] = { THT_REG_RX_UNC_MAC2, THT_REG_RX_UNC_MAC1, THT_REG_RX_UNC_MAC0 }; diff --git a/sys/dev/pci/pciide_natsemi_reg.h b/sys/dev/pci/pciide_natsemi_reg.h index 473aa4ab842..9c381a85721 100644 --- a/sys/dev/pci/pciide_natsemi_reg.h +++ b/sys/dev/pci/pciide_natsemi_reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide_natsemi_reg.h,v 1.8 2022/01/09 05:42:58 jsg Exp $ */ +/* $OpenBSD: pciide_natsemi_reg.h,v 1.9 2022/08/29 06:08:04 jsg Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -113,23 +113,23 @@ static u_int8_t natsemi_dma_recover[] = { 6, 8, 9 }; #define SCx200_PIOFORMAT_SHIFT 31 /* PIO mode timings */ -const static u_int32_t scx200_pio33[2][5] = { +static const u_int32_t scx200_pio33[2][5] = { /* Format 0 */ { 0x00009172, 0x00012171, 0x00020080, 0x00032010, 0x00040010 }, /* Format 1 */ { 0x9172d132, 0x21717121, 0x00803020, 0x20102010, 0x00100010 }}; -const static u_int32_t scx200_pio66[2][5] = { +static const u_int32_t scx200_pio66[2][5] = { /* Format 0 */ { 0x0000f8e4, 0x000153f3, 0x000213f1, 0x00034231, 0x00041131 }, /* Format 1 */ { 0xf8e4f8e4, 0x53f3f353, 0x13f18141, 0x42314231, 0x11311131 }}; /* DMA mode timings */ -const static u_int32_t scx200_dma33[] = { 0x00077771, 0x00012121, 0x00002020 }; -const static u_int32_t scx200_dma66[] = { 0x000ffff3, 0x00035352, 0x00015151 }; +static const u_int32_t scx200_dma33[] = { 0x00077771, 0x00012121, 0x00002020 }; +static const u_int32_t scx200_dma66[] = { 0x000ffff3, 0x00035352, 0x00015151 }; /* UDMA mode timings */ -const static u_int32_t scx200_udma33[] = { 0x00921250, 0x00911140, 0x00911030 }; -const static u_int32_t scx200_udma66[] = { 0x009436a1, 0x00933481, 0x00923261 }; +static const u_int32_t scx200_udma33[] = { 0x00921250, 0x00911140, 0x00911030 }; +static const u_int32_t scx200_udma66[] = { 0x009436a1, 0x00933481, 0x00923261 }; #endif /* !_DEV_PCI_PCIIDE_NATSEMI_REG_H_ */ diff --git a/sys/dev/pci/pciide_opti_reg.h b/sys/dev/pci/pciide_opti_reg.h index 83f8950f093..1bf176ddde9 100644 --- a/sys/dev/pci/pciide_opti_reg.h +++ b/sys/dev/pci/pciide_opti_reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide_opti_reg.h,v 1.4 2008/06/26 05:42:17 ray Exp $ */ +/* $OpenBSD: pciide_opti_reg.h,v 1.5 2022/08/29 06:08:04 jsg Exp $ */ /* $NetBSD: pciide_opti_reg.h,v 1.2 2000/06/07 20:42:53 scw Exp $ */ /*- @@ -104,22 +104,22 @@ * supported by the OPTi chip. The first index of the two-dimensional * arrays is used for a 33MHz PCIbus, the second for a 25MHz PCIbus. */ -const static u_int8_t opti_tim_cp[2][8] = { /* Command Pulse */ +static const u_int8_t opti_tim_cp[2][8] = { /* Command Pulse */ {5, 4, 3, 2, 2, 7, 2, 2}, {4, 3, 2, 2, 1, 5, 2, 1} }; -const static u_int8_t opti_tim_rt[2][8] = { /* Recovery Time */ +static const u_int8_t opti_tim_rt[2][8] = { /* Recovery Time */ {9, 4, 0, 0, 0, 6, 0, 0}, {6, 2, 0, 0, 0, 4, 0, 0} }; -const static u_int8_t opti_tim_as[2][8] = { /* Address Setup */ +static const u_int8_t opti_tim_as[2][8] = { /* Address Setup */ {2, 1, 1, 1, 0, 0, 0, 0}, {1, 1, 0, 0, 0, 0, 0, 0} }; -const static u_int8_t opti_tim_em[8] = { /* Enhanced Mode */ +static const u_int8_t opti_tim_em[8] = { /* Enhanced Mode */ 0, 0, 0, 1, 2, 0, 1 ,2 }; diff --git a/sys/dev/pci/yds.c b/sys/dev/pci/yds.c index d4910b587c7..5657423174e 100644 --- a/sys/dev/pci/yds.c +++ b/sys/dev/pci/yds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yds.c,v 1.59 2022/03/21 19:22:41 miod Exp $ */ +/* $OpenBSD: yds.c,v 1.60 2022/08/29 06:08:04 jsg Exp $ */ /* $NetBSD: yds.c,v 1.5 2001/05/21 23:55:04 minoura Exp $ */ /* @@ -199,7 +199,7 @@ static void yds_dump_play_slot(struct yds_softc *, int); #define YDS_DUMP_PLAY_SLOT(n,sc,bank) #endif /* AUDIO_DEBUG */ -const static struct audio_hw_if yds_hw_if = { +static const struct audio_hw_if yds_hw_if = { yds_open, yds_close, yds_set_params, @@ -224,7 +224,7 @@ const static struct audio_hw_if yds_hw_if = { yds_trigger_input }; -const static struct { +static const struct { u_int id; u_int flags; #define YDS_CAP_MCODE_1 0x0001 diff --git a/sys/dev/sbus/cs4231.c b/sys/dev/sbus/cs4231.c index 2672609ae1a..bdf261390f5 100644 --- a/sys/dev/sbus/cs4231.c +++ b/sys/dev/sbus/cs4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4231.c,v 1.41 2022/03/21 19:22:41 miod Exp $ */ +/* $OpenBSD: cs4231.c,v 1.42 2022/08/29 06:08:04 jsg Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -287,7 +287,7 @@ cs4231_set_speed(struct cs4231_softc *sc, u_long *argp) } speed_struct; u_long arg = *argp; - const static speed_struct speed_table[] = { + static const speed_struct speed_table[] = { {5510, (0 << 1) | CLOCK_XTAL2}, {5510, (0 << 1) | CLOCK_XTAL2}, {6620, (7 << 1) | CLOCK_XTAL2}, |