···189189190190/* Maximum number of multicast addresses to filter (vs. rx-all-multicast).191191 This chip uses a 512 element hash table based on the Ethernet CRC. */192192-static int multicast_filter_limit = 100;192192+static const int multicast_filter_limit = 100;193193194194/* Set the copy breakpoint for the copy-only-tiny-frames scheme.195195 Setting to > 1518 effectively disables this feature. */···374374375375376376/* array of board data directly indexed by pci_tbl[x].driver_data */377377-static struct {377377+static const struct {378378 const char *name;379379 unsigned long flags;380380} natsemi_pci_info[] __devinitdata = {
···113113static int num_media = 0;114114115115/* Maximum events (Rx packets, etc.) to handle at each interrupt. */116116-static int max_interrupt_work = 20;116116+static const int max_interrupt_work = 20;117117118118/* Maximum number of multicast addresses to filter (vs. Rx-all-multicast).119119 The RTL chips use a 64 element hash table based on the Ethernet CRC. */120120-static int multicast_filter_limit = 32;120120+static const int multicast_filter_limit = 32;121121122122/* MAC address length */123123#define MAC_ADDR_LEN 6
···5959#ifdef SB1000_DEBUG6060static int sb1000_debug = SB1000_DEBUG;6161#else6262-static int sb1000_debug = 1;6262+static const int sb1000_debug = 1;6363#endif64646565static const int SB1000_IO_EXTENT = 8;
+1-1
drivers/net/sis190.c
···366366 * Maximum number of multicast addresses to filter (vs. Rx-all-multicast).367367 * The chips use a 64 element hash table based on the Ethernet CRC.368368 */369369-static int multicast_filter_limit = 32;369369+static const int multicast_filter_limit = 32;370370371371static void __mdio_cmd(void __iomem *ioaddr, u32 ctl)372372{
+4-4
drivers/net/sis900.c
···100100 SIS_900 = 0,101101 SIS_7016102102};103103-static char * card_names[] = {103103+static const char * card_names[] = {104104 "SiS 900 PCI Fast Ethernet",105105 "SiS 7016 PCI Fast Ethernet"106106};···115115116116static void sis900_read_mode(struct net_device *net_dev, int *speed, int *duplex);117117118118-static struct mii_chip_info {118118+static const struct mii_chip_info {119119 const char * name;120120 u16 phy_id0;121121 u16 phy_id1;···400400 void *ring_space;401401 long ioaddr;402402 int i, ret;403403- char *card_name = card_names[pci_id->driver_data];403403+ const char *card_name = card_names[pci_id->driver_data];404404 const char *dev_name = pci_name(pci_dev);405405406406/* when built into the kernel, we only print version if device is found */···12751275 struct net_device *net_dev = (struct net_device *)data;12761276 struct sis900_private *sis_priv = net_dev->priv;12771277 struct mii_phy *mii_phy = sis_priv->mii;12781278- static int next_tick = 5*HZ;12781278+ static const int next_tick = 5*HZ;12791279 u16 status;1280128012811281 if (!sis_priv->autong_complete){
···186186 * Do we need the EBUF error during signaling, too, to detect SUPERNET_3187187 * PLL bug?188188 */189189-static int plc_imsk_na = PL_PCM_CODE | PL_TRACE_PROP | PL_PCM_BREAK |189189+static const int plc_imsk_na = PL_PCM_CODE | PL_TRACE_PROP | PL_PCM_BREAK |190190 PL_PCM_ENABLED | PL_SELF_TEST | PL_EBUF_ERR;191191#else /* SUPERNET_3 */192192/*···195195static int plc_imsk_na = PL_PCM_CODE | PL_TRACE_PROP | PL_PCM_BREAK |196196 PL_PCM_ENABLED | PL_SELF_TEST ;197197#endif /* SUPERNET_3 */198198-static int plc_imsk_act = PL_PCM_CODE | PL_TRACE_PROP | PL_PCM_BREAK |198198+static const int plc_imsk_act = PL_PCM_CODE | PL_TRACE_PROP | PL_PCM_BREAK |199199 PL_PCM_ENABLED | PL_SELF_TEST | PL_EBUF_ERR;200200201201/* external functions */
+1-1
drivers/net/skfp/skfddi.c
···6767/* each new release!!! */6868#define VERSION "2.07"69697070-static const char *boot_msg = 7070+static const char * const boot_msg = 7171 "SysKonnect FDDI PCI Adapter driver v" VERSION " for\n"7272 " SK-55xx/SK-58xx adapters (SK-NET FDDI-FP/UP/LP)";7373
+2-2
drivers/net/starfire.c
···201201static int mtu;202202/* Maximum number of multicast addresses to filter (vs. rx-all-multicast).203203 The Starfire has a 512 element hash table based on the Ethernet CRC. */204204-static int multicast_filter_limit = 512;204204+static const int multicast_filter_limit = 512;205205/* Whether to do TCP/UDP checksums in hardware */206206static int enable_hw_cksum = 1;207207···463463MODULE_DEVICE_TABLE(pci, starfire_pci_tbl);464464465465/* A chip capabilities table, matching the CH_xxx entries in xxx_pci_tbl[] above. */466466-static struct chip_info {466466+static const struct chip_info {467467 const char *name;468468 int drv_flags;469469} netdrv_tbl[] __devinitdata = {
+2-2
drivers/net/sundance.c
···106106static int debug = 1; /* 1 normal messages, 0 quiet .. 7 verbose. */107107/* Maximum number of multicast addresses to filter (vs. rx-all-multicast).108108 Typical is a 64 element hash table based on the Ethernet CRC. */109109-static int multicast_filter_limit = 32;109109+static const int multicast_filter_limit = 32;110110111111/* Set the copy breakpoint for the copy-only-tiny-frames scheme.112112 Setting to > 1518 effectively disables this feature.···298298struct pci_id_info {299299 const char *name;300300};301301-static struct pci_id_info pci_id_tbl[] = {301301+static const struct pci_id_info pci_id_tbl[] = {302302 {"D-Link DFE-550TX FAST Ethernet Adapter"},303303 {"D-Link DFE-550FX 100Mbps Fiber-optics Adapter"},304304 {"D-Link DFE-580TX 4 port Server Adapter"},
+1-1
drivers/net/sungem_phy.c
···3939#include "sungem_phy.h"40404141/* Link modes of the BCM5400 PHY */4242-static int phy_BCM5400_link_table[8][3] = {4242+static const int phy_BCM5400_link_table[8][3] = {4343 { 0, 0, 0 }, /* No link */4444 { 0, 0, 0 }, /* 10BT Half Duplex */4545 { 1, 0, 0 }, /* 10BT Full Duplex */
+2-2
drivers/net/tg3.c
···77857785}7786778677877787/* Only test the commonly used registers */77887788-static int tg3_test_registers(struct tg3 *tp)77887788+static const int tg3_test_registers(struct tg3 *tp)77897789{77907790 int i, is_5705;77917791 u32 offset, read_mask, write_mask, val, save_val, read_val;···7999799980008000static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len)80018001{80028002- static u32 test_pattern[] = { 0x00000000, 0xffffffff, 0xaa55a55a };80028002+ static const u32 test_pattern[] = { 0x00000000, 0xffffffff, 0xaa55a55a };80038003 int i;80048004 u32 j;80058005