Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2012 07:47:19 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r242909 - in stable/8/sys: dev/ale dev/ata dev/ata/chipsets dev/ath/ath_hal/ar5212 dev/bge dev/cas dev/dc dev/flash dev/fxp dev/gem dev/lge dev/nge dev/pci dev/re dev/sis dev/ste dev/st...
Message-ID:  <201211120747.qAC7lJFk078302@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Mon Nov 12 07:47:19 2012
New Revision: 242909
URL: http://svnweb.freebsd.org/changeset/base/242909

Log:
  MFC r242625:
  
  Remove duplicate const specifiers in many drivers (I hope I got all of
  them, please let me know if not).  Most of these are of the form:
  
  static const struct bzzt_type {
        [...list of members...]
  } const bzzt_devs[] = {
        [...list of initializers...]
  };
  
  The second const is unnecessary, as arrays cannot be modified anyway,
  and if the elements are const, the whole thing is const automatically
  (e.g. it is placed in .rodata).
  
  I have verified this does not change the binary output of a full kernel
  build (except for build timestamps embedded in the object files).
  
  Reviewed by:	yongari, marius

Modified:
  stable/8/sys/dev/ale/if_ale.c
  stable/8/sys/dev/ata/ata-card.c
  stable/8/sys/dev/ata/chipsets/ata-acard.c
  stable/8/sys/dev/ata/chipsets/ata-acerlabs.c
  stable/8/sys/dev/ata/chipsets/ata-adaptec.c
  stable/8/sys/dev/ata/chipsets/ata-amd.c
  stable/8/sys/dev/ata/chipsets/ata-ati.c
  stable/8/sys/dev/ata/chipsets/ata-highpoint.c
  stable/8/sys/dev/ata/chipsets/ata-intel.c
  stable/8/sys/dev/ata/chipsets/ata-ite.c
  stable/8/sys/dev/ata/chipsets/ata-jmicron.c
  stable/8/sys/dev/ata/chipsets/ata-marvell.c
  stable/8/sys/dev/ata/chipsets/ata-nvidia.c
  stable/8/sys/dev/ata/chipsets/ata-promise.c
  stable/8/sys/dev/ata/chipsets/ata-serverworks.c
  stable/8/sys/dev/ata/chipsets/ata-siliconimage.c
  stable/8/sys/dev/ata/chipsets/ata-sis.c
  stable/8/sys/dev/ata/chipsets/ata-via.c
  stable/8/sys/dev/ath/ath_hal/ar5212/ar5212.h
  stable/8/sys/dev/bge/if_bge.c
  stable/8/sys/dev/cas/if_cas.c
  stable/8/sys/dev/dc/if_dc.c
  stable/8/sys/dev/flash/at45d.c
  stable/8/sys/dev/fxp/if_fxp.c
  stable/8/sys/dev/gem/if_gem_pci.c
  stable/8/sys/dev/lge/if_lge.c
  stable/8/sys/dev/nge/if_nge.c
  stable/8/sys/dev/pci/pci.c
  stable/8/sys/dev/re/if_re.c
  stable/8/sys/dev/sis/if_sis.c
  stable/8/sys/dev/ste/if_ste.c
  stable/8/sys/dev/stge/if_stge.c
  stable/8/sys/dev/ti/if_ti.c
  stable/8/sys/dev/tl/if_tl.c
  stable/8/sys/dev/vr/if_vr.c
  stable/8/sys/dev/wb/if_wb.c
  stable/8/sys/dev/xl/if_xl.c
  stable/8/sys/pci/if_rl.c
  stable/8/sys/sparc64/pci/fire.c
  stable/8/sys/sparc64/pci/psycho.c
  stable/8/sys/sparc64/pci/schizo.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/dev/   (props changed)
  stable/8/sys/dev/ale/   (props changed)
  stable/8/sys/dev/ata/   (props changed)
  stable/8/sys/dev/ath/   (props changed)
  stable/8/sys/dev/bge/   (props changed)
  stable/8/sys/dev/cas/   (props changed)
  stable/8/sys/dev/dc/   (props changed)
  stable/8/sys/dev/flash/   (props changed)
  stable/8/sys/dev/fxp/   (props changed)
  stable/8/sys/dev/gem/   (props changed)
  stable/8/sys/dev/lge/   (props changed)
  stable/8/sys/dev/nge/   (props changed)
  stable/8/sys/dev/pci/   (props changed)
  stable/8/sys/dev/re/   (props changed)
  stable/8/sys/dev/sis/   (props changed)
  stable/8/sys/dev/ste/   (props changed)
  stable/8/sys/dev/stge/   (props changed)
  stable/8/sys/dev/ti/   (props changed)
  stable/8/sys/dev/tl/   (props changed)
  stable/8/sys/dev/vr/   (props changed)
  stable/8/sys/dev/wb/   (props changed)
  stable/8/sys/dev/xl/   (props changed)
  stable/8/sys/pci/   (props changed)
  stable/8/sys/sparc64/   (props changed)

Modified: stable/8/sys/dev/ale/if_ale.c
==============================================================================
--- stable/8/sys/dev/ale/if_ale.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ale/if_ale.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -95,7 +95,7 @@ static const struct ale_dev {
 	uint16_t	ale_vendorid;
 	uint16_t	ale_deviceid;
 	const char	*ale_name;
-} const ale_devs[] = {
+} ale_devs[] = {
     { VENDORID_ATHEROS, DEVICEID_ATHEROS_AR81XX,
     "Atheros AR8121/AR8113/AR8114 PCIe Ethernet" },
 };

Modified: stable/8/sys/dev/ata/ata-card.c
==============================================================================
--- stable/8/sys/dev/ata/ata-card.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/ata-card.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$");
 
 #include "pccarddevs.h"
 
-static const struct pccard_product const ata_pccard_products[] = {
+static const struct pccard_product ata_pccard_products[] = {
 	PCMCIA_CARD(FREECOM, PCCARDIDE),
 	PCMCIA_CARD(EXP, EXPMULTIMEDIA),
 	PCMCIA_CARD(IODATA3, CBIDE2),

Modified: stable/8/sys/dev/ata/chipsets/ata-acard.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-acard.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-acard.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -81,7 +81,7 @@ static int
 ata_acard_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_ATP850R, 0, ATP_OLD, 0x00, ATA_UDMA2, "ATP850" },
      { ATA_ATP860A, 0, 0,       0x00, ATA_UDMA4, "ATP860A" },
      { ATA_ATP860R, 0, 0,       0x00, ATA_UDMA4, "ATP860R" },

Modified: stable/8/sys/dev/ata/chipsets/ata-acerlabs.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-acerlabs.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-acerlabs.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -75,7 +75,7 @@ static int
 ata_ali_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_ALI_5289, 0x00, 2, ALI_SATA, ATA_SA150, "M5289" },
      { ATA_ALI_5288, 0x00, 4, ALI_SATA, ATA_SA300, "M5288" },
      { ATA_ALI_5287, 0x00, 4, ALI_SATA, ATA_SA150, "M5287" },

Modified: stable/8/sys/dev/ata/chipsets/ata-adaptec.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-adaptec.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-adaptec.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -62,7 +62,7 @@ static int
 ata_adaptec_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_ADAPTEC_1420, 0, 4, MV_60XX, ATA_SA300, "1420SA" },
      { ATA_ADAPTEC_1430, 0, 4, MV_7042, ATA_SA300, "1430SA" },
      { 0, 0, 0, 0, 0, 0}};

Modified: stable/8/sys/dev/ata/chipsets/ata-amd.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-amd.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-amd.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -67,7 +67,7 @@ static int
 ata_amd_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_AMD756,  0x00, 0x00,              0, ATA_UDMA4, "756" },
      { ATA_AMD766,  0x00, AMD_CABLE|AMD_BUG, 0, ATA_UDMA5, "766" },
      { ATA_AMD768,  0x00, AMD_CABLE,         0, ATA_UDMA5, "768" },

Modified: stable/8/sys/dev/ata/chipsets/ata-ati.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-ati.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-ati.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -75,7 +75,7 @@ static int
 ata_ati_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_ATI_IXP200,    0x00, ATI_PATA, 0, ATA_UDMA5, "IXP200" },
      { ATA_ATI_IXP300,    0x00, ATI_PATA, 0, ATA_UDMA6, "IXP300" },
      { ATA_ATI_IXP300_S1, 0x00, ATI_SATA, SII_BUG, ATA_SA150, "IXP300" },

Modified: stable/8/sys/dev/ata/chipsets/ata-highpoint.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-highpoint.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-highpoint.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -73,7 +73,7 @@ ata_highpoint_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
     const struct ata_chip_id *idx;
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_HPT374, 0x07, HPT_374, 0,       ATA_UDMA6, "HPT374" },
      { ATA_HPT372, 0x02, HPT_372, 0,       ATA_UDMA6, "HPT372N" },
      { ATA_HPT372, 0x01, HPT_372, 0,       ATA_UDMA6, "HPT372" },

Modified: stable/8/sys/dev/ata/chipsets/ata-intel.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-intel.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-intel.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -105,7 +105,7 @@ static int
 ata_intel_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_I82371FB,     0,          0, 2, ATA_WDMA2, "PIIX" },
      { ATA_I82371SB,     0,          0, 2, ATA_WDMA2, "PIIX3" },
      { ATA_I82371AB,     0,          0, 2, ATA_UDMA2, "PIIX4" },

Modified: stable/8/sys/dev/ata/chipsets/ata-ite.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-ite.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-ite.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -64,7 +64,7 @@ static int
 ata_ite_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_IT8213F, 0x00, 0x00, 0x00, ATA_UDMA6, "IT8213F" },
      { ATA_IT8212F, 0x00, 0x00, 0x00, ATA_UDMA6, "IT8212F" },
      { ATA_IT8211F, 0x00, 0x00, 0x00, ATA_UDMA6, "IT8211F" },

Modified: stable/8/sys/dev/ata/chipsets/ata-jmicron.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-jmicron.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-jmicron.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -64,7 +64,7 @@ ata_jmicron_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
     const struct ata_chip_id *idx;
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_JMB360, 0, 1, 0, ATA_SA300, "JMB360" },
      { ATA_JMB361, 0, 1, 1, ATA_UDMA6, "JMB361" },
      { ATA_JMB362, 0, 2, 0, ATA_SA300, "JMB362" },

Modified: stable/8/sys/dev/ata/chipsets/ata-marvell.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-marvell.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-marvell.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -99,7 +99,7 @@ static int
 ata_marvell_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_M88SX5040, 0, 4, MV_50XX, ATA_SA150, "88SX5040" },
      { ATA_M88SX5041, 0, 4, MV_50XX, ATA_SA150, "88SX5041" },
      { ATA_M88SX5080, 0, 8, MV_50XX, ATA_SA150, "88SX5080" },

Modified: stable/8/sys/dev/ata/chipsets/ata-nvidia.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-nvidia.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-nvidia.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -75,7 +75,7 @@ static int
 ata_nvidia_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_NFORCE1,         0, 0,       0, ATA_UDMA5, "nForce" },
      { ATA_NFORCE2,         0, 0,       0, ATA_UDMA6, "nForce2" },
      { ATA_NFORCE2_PRO,     0, 0,       0, ATA_UDMA6, "nForce2 Pro" },

Modified: stable/8/sys/dev/ata/chipsets/ata-promise.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-promise.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-promise.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -130,7 +130,7 @@ ata_promise_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
     const struct ata_chip_id *idx;
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_PDC20246,  0, PR_OLD, 0x00,     ATA_UDMA2, "PDC20246" },
      { ATA_PDC20262,  0, PR_NEW, 0x00,     ATA_UDMA4, "PDC20262" },
      { ATA_PDC20263,  0, PR_NEW, 0x00,     ATA_UDMA4, "PDC20263" },

Modified: stable/8/sys/dev/ata/chipsets/ata-serverworks.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-serverworks.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-serverworks.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -78,7 +78,7 @@ static int
 ata_serverworks_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_ROSB4,     0x00, SWKS_33,  0, ATA_WDMA2, "ROSB4" },
      { ATA_CSB5,      0x92, SWKS_100, 0, ATA_UDMA5, "CSB5" },
      { ATA_CSB5,      0x00, SWKS_66,  0, ATA_UDMA4, "CSB5" },

Modified: stable/8/sys/dev/ata/chipsets/ata-siliconimage.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-siliconimage.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-siliconimage.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -87,7 +87,7 @@ static int
 ata_sii_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_SII3114,   0x00, SII_MEMIO, SII_4CH,    ATA_SA150, "3114" },
      { ATA_SII3512,   0x02, SII_MEMIO, 0,          ATA_SA150, "3512" },
      { ATA_SII3112,   0x02, SII_MEMIO, 0,          ATA_SA150, "3112" },

Modified: stable/8/sys/dev/ata/chipsets/ata-sis.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-sis.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-sis.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -74,7 +74,7 @@ ata_sis_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
     const struct ata_chip_id *idx;
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_SIS182,  0x00, SIS_SATA,   0, ATA_SA150, "182" }, /* south */
      { ATA_SIS181,  0x00, SIS_SATA,   0, ATA_SA150, "181" }, /* south */
      { ATA_SIS180,  0x00, SIS_SATA,   0, ATA_SA150, "180" }, /* south */

Modified: stable/8/sys/dev/ata/chipsets/ata-via.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-via.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ata/chipsets/ata-via.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -89,7 +89,7 @@ static int
 ata_via_probe(device_t dev)
 {
     struct ata_pci_controller *ctlr = device_get_softc(dev);
-    static const struct ata_chip_id const ids[] =
+    static const struct ata_chip_id ids[] =
     {{ ATA_VIA82C586, 0x02, VIA33,  0x00,    ATA_UDMA2, "82C586B" },
      { ATA_VIA82C586, 0x00, VIA33,  0x00,    ATA_WDMA2, "82C586" },
      { ATA_VIA82C596, 0x12, VIA66,  VIACLK,  ATA_UDMA4, "82C596B" },
@@ -113,7 +113,7 @@ ata_via_probe(device_t dev)
      { ATA_VIAVX855,  0x00, VIA133, 0x00,    ATA_UDMA6, "VX855" },
      { ATA_VIAVX900,  0x00, VIA133, VIASATA, ATA_SA300, "VX900" },
      { 0, 0, 0, 0, 0, 0 }};
-    static const struct ata_chip_id const new_ids[] =
+    static const struct ata_chip_id new_ids[] =
     {{ ATA_VIA6410,   0x00, 0,      0x00,    ATA_UDMA6, "6410" },
      { ATA_VIA6420,   0x00, 7,      0x00,    ATA_SA150, "6420" },
      { ATA_VIA6421,   0x00, 6,      VIABAR,  ATA_SA150, "6421" },

Modified: stable/8/sys/dev/ath/ath_hal/ar5212/ar5212.h
==============================================================================
--- stable/8/sys/dev/ath/ath_hal/ar5212/ar5212.h	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ath/ath_hal/ar5212/ar5212.h	Mon Nov 12 07:47:19 2012	(r242909)
@@ -143,7 +143,7 @@ typedef struct RfHalFuncs {
 		      int16_t *minPower, int16_t *maxPower,
 		      const struct ieee80211_channel *, uint16_t *rfXpdGain);
 	HAL_BOOL  (*getChannelMaxMinPower)(struct ath_hal *ah,
-		      const const struct ieee80211_channel *,
+		      const struct ieee80211_channel *,
 		      int16_t *maxPow, int16_t *minPow);
 	int16_t	  (*getNfAdjust)(struct ath_hal *, const HAL_CHANNEL_INTERNAL*);
 } RF_HAL_FUNCS;

Modified: stable/8/sys/dev/bge/if_bge.c
==============================================================================
--- stable/8/sys/dev/bge/if_bge.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/bge/if_bge.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -139,7 +139,7 @@ MODULE_DEPEND(bge, miibus, 1, 1, 1);
 static const struct bge_type {
 	uint16_t	bge_vid;
 	uint16_t	bge_did;
-} const bge_devs[] = {
+} bge_devs[] = {
 	{ ALTEON_VENDORID,	ALTEON_DEVICEID_BCM5700 },
 	{ ALTEON_VENDORID,	ALTEON_DEVICEID_BCM5701 },
 
@@ -239,7 +239,7 @@ static const struct bge_type {
 static const struct bge_vendor {
 	uint16_t	v_id;
 	const char	*v_name;
-} const bge_vendors[] = {
+} bge_vendors[] = {
 	{ ALTEON_VENDORID,	"Alteon" },
 	{ ALTIMA_VENDORID,	"Altima" },
 	{ APPLE_VENDORID,	"Apple" },
@@ -254,7 +254,7 @@ static const struct bge_vendor {
 static const struct bge_revision {
 	uint32_t	br_chipid;
 	const char	*br_name;
-} const bge_revisions[] = {
+} bge_revisions[] = {
 	{ BGE_CHIPID_BCM5700_A0,	"BCM5700 A0" },
 	{ BGE_CHIPID_BCM5700_A1,	"BCM5700 A1" },
 	{ BGE_CHIPID_BCM5700_B0,	"BCM5700 B0" },
@@ -328,7 +328,7 @@ static const struct bge_revision {
  * Some defaults for major revisions, so that newer steppings
  * that we don't know about have a shot at working.
  */
-static const struct bge_revision const bge_majorrevs[] = {
+static const struct bge_revision bge_majorrevs[] = {
 	{ BGE_ASICREV_BCM5700,		"unknown BCM5700" },
 	{ BGE_ASICREV_BCM5701,		"unknown BCM5701" },
 	{ BGE_ASICREV_BCM5703,		"unknown BCM5703" },
@@ -2786,7 +2786,7 @@ bge_mbox_reorder(struct bge_softc *sc)
 		const uint16_t vendor;
 		const uint16_t device;
 		const char *desc;
-	} const mbox_reorder_lists[] = {
+	} mbox_reorder_lists[] = {
 		{ 0x1022, 0x7450, "AMD-8131 PCI-X Bridge" },
 	};
 	devclass_t pci, pcib;

Modified: stable/8/sys/dev/cas/if_cas.c
==============================================================================
--- stable/8/sys/dev/cas/if_cas.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/cas/if_cas.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -2629,7 +2629,7 @@ static const struct cas_pci_dev {
 	uint8_t		cpd_revid;
 	int		cpd_variant;
 	const char	*cpd_desc;
-} const cas_pci_devlist[] = {
+} cas_pci_devlist[] = {
 	{ 0x0035100b, 0x0, CAS_SATURN, "NS DP83065 Saturn Gigabit Ethernet" },
 	{ 0xabba108e, 0x10, CAS_CASPLUS, "Sun Cassini+ Gigabit Ethernet" },
 	{ 0xabba108e, 0x0, CAS_CAS, "Sun Cassini Gigabit Ethernet" },

Modified: stable/8/sys/dev/dc/if_dc.c
==============================================================================
--- stable/8/sys/dev/dc/if_dc.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/dc/if_dc.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -150,7 +150,7 @@ MODULE_DEPEND(dc, miibus, 1, 1, 1);
 /*
  * Various supported device vendors/types and their names.
  */
-static const struct dc_type const dc_devs[] = {
+static const struct dc_type dc_devs[] = {
 	{ DC_DEVID(DC_VENDORID_DEC, DC_DEVICEID_21143), 0,
 		"Intel 21143 10/100BaseTX" },
 	{ DC_DEVID(DC_VENDORID_DAVICOM, DC_DEVICEID_DM9009), 0,

Modified: stable/8/sys/dev/flash/at45d.c
==============================================================================
--- stable/8/sys/dev/flash/at45d.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/flash/at45d.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -106,7 +106,7 @@ static int at45d_wait_ready(device_t dev
  * 2^N byte pages.  If support for the latter is enabled, the sector offset
  * has to be reduced by one.
  */
-static const struct at45d_flash_ident const at45d_flash_devices[] = {
+static const struct at45d_flash_ident at45d_flash_devices[] = {
 	{ "AT45DB011B", 0x1f2200, 512, 9, 264, 256 },
 	{ "AT45DB021B", 0x1f2300, 1024, 9, 264, 256 },
 	{ "AT45DB041x", 0x1f2400, 2028, 9, 264, 256 },

Modified: stable/8/sys/dev/fxp/if_fxp.c
==============================================================================
--- stable/8/sys/dev/fxp/if_fxp.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/fxp/if_fxp.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -111,7 +111,7 @@ static int tx_threshold = 64;
  *
  * See struct fxp_cb_config for the bit definitions.
  */
-static const u_char const fxp_cb_config_template[] = {
+static const u_char fxp_cb_config_template[] = {
 	0x0, 0x0,		/* cb_status */
 	0x0, 0x0,		/* cb_command */
 	0x0, 0x0, 0x0, 0x0,	/* link_addr */
@@ -155,7 +155,7 @@ static const u_char const fxp_cb_config_
  * particular variants, but we don't currently differentiate between
  * them.
  */
-static const struct fxp_ident const fxp_ident_table[] = {
+static const struct fxp_ident fxp_ident_table[] = {
     { 0x1029,	-1,	0, "Intel 82559 PCI/CardBus Pro/100" },
     { 0x1030,	-1,	0, "Intel 82559 Pro/100 Ethernet" },
     { 0x1031,	-1,	3, "Intel 82801CAM (ICH3) Pro/100 VE Ethernet" },
@@ -3052,7 +3052,7 @@ static const struct ucode {
 	int		length;
 	u_short		int_delay_offset;
 	u_short		bundle_max_offset;
-} const ucode_table[] = {
+} ucode_table[] = {
 	{ FXP_REV_82558_A4, UCODE(fxp_ucode_d101a), D101_CPUSAVER_DWORD, 0 },
 	{ FXP_REV_82558_B0, UCODE(fxp_ucode_d101b0), D101_CPUSAVER_DWORD, 0 },
 	{ FXP_REV_82559_A0, UCODE(fxp_ucode_d101ma),

Modified: stable/8/sys/dev/gem/if_gem_pci.c
==============================================================================
--- stable/8/sys/dev/gem/if_gem_pci.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/gem/if_gem_pci.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -104,7 +104,7 @@ static const struct gem_pci_dev {
 	uint32_t	gpd_devid;
 	int		gpd_variant;
 	const char	*gpd_desc;
-} const gem_pci_devlist[] = {
+} gem_pci_devlist[] = {
 	{ 0x1101108e, GEM_SUN_ERI,	"Sun ERI 10/100 Ethernet" },
 	{ 0x2bad108e, GEM_SUN_GEM,	"Sun GEM Gigabit Ethernet" },
 	{ 0x0021106b, GEM_APPLE_GMAC,	"Apple UniNorth GMAC Ethernet" },

Modified: stable/8/sys/dev/lge/if_lge.c
==============================================================================
--- stable/8/sys/dev/lge/if_lge.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/lge/if_lge.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -110,7 +110,7 @@ __FBSDID("$FreeBSD$");
 /*
  * Various supported device vendors/types and their names.
  */
-static const struct lge_type const lge_devs[] = {
+static const struct lge_type lge_devs[] = {
 	{ LGE_VENDORID, LGE_DEVICEID, "Level 1 Gigabit Ethernet" },
 	{ 0, 0, NULL }
 };

Modified: stable/8/sys/dev/nge/if_nge.c
==============================================================================
--- stable/8/sys/dev/nge/if_nge.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/nge/if_nge.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -139,7 +139,7 @@ MODULE_DEPEND(nge, miibus, 1, 1, 1);
 /*
  * Various supported device vendors/types and their names.
  */
-static const struct nge_type const nge_devs[] = {
+static const struct nge_type nge_devs[] = {
 	{ NGE_VENDORID, NGE_DEVICEID,
 	    "National Semiconductor Gigabit Ethernet" },
 	{ 0, 0, NULL }

Modified: stable/8/sys/dev/pci/pci.c
==============================================================================
--- stable/8/sys/dev/pci/pci.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/pci/pci.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -216,7 +216,7 @@ struct pci_quirk {
 	int	arg2;
 };
 
-static const struct pci_quirk const pci_quirks[] = {
+static const struct pci_quirk pci_quirks[] = {
 	/* The Intel 82371AB and 82443MX has a map register at offset 0x90. */
 	{ 0x71138086, PCI_QUIRK_MAP_REG,	0x90,	 0 },
 	{ 0x719b8086, PCI_QUIRK_MAP_REG,	0x90,	 0 },

Modified: stable/8/sys/dev/re/if_re.c
==============================================================================
--- stable/8/sys/dev/re/if_re.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/re/if_re.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -171,7 +171,7 @@ TUNABLE_INT("hw.re.prefer_iomap", &prefe
 /*
  * Various supported device vendors/types and their names.
  */
-static const struct rl_type const re_devs[] = {
+static const struct rl_type re_devs[] = {
 	{ DLINK_VENDORID, DLINK_DEVICEID_528T, 0,
 	    "D-Link DGE-528(T) Gigabit Ethernet Adapter" },
 	{ DLINK_VENDORID, DLINK_DEVICEID_530T_REVC, 0,
@@ -194,7 +194,7 @@ static const struct rl_type const re_dev
 	    "US Robotics 997902 (RTL8169S) Gigabit Ethernet" }
 };
 
-static const struct rl_hwrev const re_hwrevs[] = {
+static const struct rl_hwrev re_hwrevs[] = {
 	{ RL_HWREV_8139, RL_8139, "", RL_MTU },
 	{ RL_HWREV_8139A, RL_8139, "A", RL_MTU },
 	{ RL_HWREV_8139AG, RL_8139, "A-G", RL_MTU },

Modified: stable/8/sys/dev/sis/if_sis.c
==============================================================================
--- stable/8/sys/dev/sis/if_sis.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/sis/if_sis.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -127,7 +127,7 @@ MODULE_DEPEND(sis, miibus, 1, 1, 1);
 /*
  * Various supported device vendors/types and their names.
  */
-static const struct sis_type const sis_devs[] = {
+static const struct sis_type sis_devs[] = {
 	{ SIS_VENDORID, SIS_DEVICEID_900, "SiS 900 10/100BaseTX" },
 	{ SIS_VENDORID, SIS_DEVICEID_7016, "SiS 7016 10/100BaseTX" },
 	{ NS_VENDORID, NS_DEVICEID_DP83815, "NatSemi DP8381[56] 10/100BaseTX" },

Modified: stable/8/sys/dev/ste/if_ste.c
==============================================================================
--- stable/8/sys/dev/ste/if_ste.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ste/if_ste.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -85,7 +85,7 @@ MODULE_DEPEND(ste, miibus, 1, 1, 1);
 /*
  * Various supported device vendors/types and their names.
  */
-static const struct ste_type const ste_devs[] = {
+static const struct ste_type ste_devs[] = {
 	{ ST_VENDORID, ST_DEVICEID_ST201_1, "Sundance ST201 10/100BaseTX" },
 	{ ST_VENDORID, ST_DEVICEID_ST201_2, "Sundance ST201 10/100BaseTX" },
 	{ DL_VENDORID, DL_DEVICEID_DL10050, "D-Link DL10050 10/100BaseTX" },

Modified: stable/8/sys/dev/stge/if_stge.c
==============================================================================
--- stable/8/sys/dev/stge/if_stge.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/stge/if_stge.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -98,7 +98,7 @@ static const struct stge_product {
 	uint16_t	stge_vendorid;
 	uint16_t	stge_deviceid;
 	const char	*stge_name;
-} const stge_products[] = {
+} stge_products[] = {
 	{ VENDOR_SUNDANCETI,	DEVICEID_SUNDANCETI_ST1023,
 	  "Sundance ST-1023 Gigabit Ethernet" },
 

Modified: stable/8/sys/dev/ti/if_ti.c
==============================================================================
--- stable/8/sys/dev/ti/if_ti.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/ti/if_ti.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -145,7 +145,7 @@ typedef enum {
  * Various supported device vendors/types and their names.
  */
 
-static const struct ti_type const ti_devs[] = {
+static const struct ti_type ti_devs[] = {
 	{ ALT_VENDORID,	ALT_DEVICEID_ACENIC,
 		"Alteon AceNIC 1000baseSX Gigabit Ethernet" },
 	{ ALT_VENDORID,	ALT_DEVICEID_ACENIC_COPPER,

Modified: stable/8/sys/dev/tl/if_tl.c
==============================================================================
--- stable/8/sys/dev/tl/if_tl.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/tl/if_tl.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -229,7 +229,7 @@ MODULE_DEPEND(tl, miibus, 1, 1, 1);
  * Various supported device vendors/types and their names.
  */
 
-static const struct tl_type const tl_devs[] = {
+static const struct tl_type tl_devs[] = {
 	{ TI_VENDORID,	TI_DEVICEID_THUNDERLAN,
 		"Texas Instruments ThunderLAN" },
 	{ COMPAQ_VENDORID, COMPAQ_DEVICEID_NETEL_10,

Modified: stable/8/sys/dev/vr/if_vr.c
==============================================================================
--- stable/8/sys/dev/vr/if_vr.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/vr/if_vr.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -119,7 +119,7 @@ static const struct vr_type {
 	u_int16_t		vr_did;
 	int			vr_quirks;
 	const char		*vr_name;
-} const vr_devs[] = {
+} vr_devs[] = {
 	{ VIA_VENDORID, VIA_DEVICEID_RHINE,
 	    VR_Q_NEEDALIGN,
 	    "VIA VT3043 Rhine I 10/100BaseTX" },
@@ -199,7 +199,7 @@ static const struct vr_tx_threshold_tabl
 	int tx_cfg;
 	int bcr_cfg;
 	int value;
-} const vr_tx_threshold_tables[] = {
+} vr_tx_threshold_tables[] = {
 	{ VR_TXTHRESH_64BYTES, VR_BCR1_TXTHRESH64BYTES,	64 },
 	{ VR_TXTHRESH_128BYTES, VR_BCR1_TXTHRESH128BYTES, 128 },
 	{ VR_TXTHRESH_256BYTES, VR_BCR1_TXTHRESH256BYTES, 256 },

Modified: stable/8/sys/dev/wb/if_wb.c
==============================================================================
--- stable/8/sys/dev/wb/if_wb.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/wb/if_wb.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -130,7 +130,7 @@ MODULE_DEPEND(wb, miibus, 1, 1, 1);
 /*
  * Various supported device vendors/types and their names.
  */
-static const struct wb_type const wb_devs[] = {
+static const struct wb_type wb_devs[] = {
 	{ WB_VENDORID, WB_DEVICEID_840F,
 		"Winbond W89C840F 10/100BaseTX" },
 	{ CP_VENDORID, CP_DEVICEID_RL100,

Modified: stable/8/sys/dev/xl/if_xl.c
==============================================================================
--- stable/8/sys/dev/xl/if_xl.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/dev/xl/if_xl.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -161,7 +161,7 @@ MODULE_DEPEND(xl, miibus, 1, 1, 1);
 /*
  * Various supported device vendors/types and their names.
  */
-static const struct xl_type const xl_devs[] = {
+static const struct xl_type xl_devs[] = {
 	{ TC_VENDORID, TC_DEVICEID_BOOMERANG_10BT,
 		"3Com 3c900-TPO Etherlink XL" },
 	{ TC_VENDORID, TC_DEVICEID_BOOMERANG_10BT_COMBO,

Modified: stable/8/sys/pci/if_rl.c
==============================================================================
--- stable/8/sys/pci/if_rl.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/pci/if_rl.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -131,7 +131,7 @@ MODULE_DEPEND(rl, miibus, 1, 1, 1);
 /*
  * Various supported device vendors/types and their names.
  */
-static const struct rl_type const rl_devs[] = {
+static const struct rl_type rl_devs[] = {
 	{ RT_VENDORID, RT_DEVICEID_8129, RL_8129,
 		"RealTek 8129 10/100BaseTX" },
 	{ RT_VENDORID, RT_DEVICEID_8139, RL_8139,

Modified: stable/8/sys/sparc64/pci/fire.c
==============================================================================
--- stable/8/sys/sparc64/pci/fire.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/sparc64/pci/fire.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -249,7 +249,7 @@ struct fire_desc {
 	const char	*fd_name;
 };
 
-static const struct fire_desc const fire_compats[] = {
+static const struct fire_desc fire_compats[] = {
 	{ "pciex108e,80f0",	FIRE_MODE_FIRE,		"Fire" },
 #if 0
 	{ "pciex108e,80f8",	FIRE_MODE_OBERON,	"Oberon" },

Modified: stable/8/sys/sparc64/pci/psycho.c
==============================================================================
--- stable/8/sys/sparc64/pci/psycho.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/sparc64/pci/psycho.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -222,14 +222,14 @@ struct psycho_desc {
 	const char	*pd_name;
 };
 
-static const struct psycho_desc const psycho_compats[] = {
+static const struct psycho_desc psycho_compats[] = {
 	{ "pci108e,8000", PSYCHO_MODE_PSYCHO,	"Psycho compatible" },
 	{ "pci108e,a000", PSYCHO_MODE_SABRE,	"Sabre compatible" },
 	{ "pci108e,a001", PSYCHO_MODE_SABRE,	"Hummingbird compatible" },
 	{ NULL,		  0,			NULL }
 };
 
-static const struct psycho_desc const psycho_models[] = {
+static const struct psycho_desc psycho_models[] = {
 	{ "SUNW,psycho",  PSYCHO_MODE_PSYCHO,	"Psycho" },
 	{ "SUNW,sabre",   PSYCHO_MODE_SABRE,	"Sabre" },
 	{ NULL,		  0,			NULL }

Modified: stable/8/sys/sparc64/pci/schizo.c
==============================================================================
--- stable/8/sys/sparc64/pci/schizo.c	Mon Nov 12 07:34:05 2012	(r242908)
+++ stable/8/sys/sparc64/pci/schizo.c	Mon Nov 12 07:47:19 2012	(r242909)
@@ -229,7 +229,7 @@ struct schizo_desc {
 	const char	*sd_name;
 };
 
-static const struct schizo_desc const schizo_compats[] = {
+static const struct schizo_desc schizo_compats[] = {
 	{ "pci108e,8001",	SCHIZO_MODE_SCZ,	"Schizo" },
 #if 0
 	{ "pci108e,8002",	SCHIZO_MODE_XMS,	"XMITS" },



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211120747.qAC7lJFk078302>