netdev: make pci_error_handlers const
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 7 Sep 2012 16:33:15 +0000 (09:33 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 7 Sep 2012 22:35:00 +0000 (16:35 -0600)
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
23 files changed:
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
drivers/net/ethernet/broadcom/bnx2.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/emulex/benet/be_main.c
drivers/net/ethernet/intel/e100.c
drivers/net/ethernet/intel/e1000/e1000_main.c
drivers/net/ethernet/intel/e1000e/netdev.c
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/ethernet/intel/igbvf/netdev.c
drivers/net/ethernet/intel/ixgb/ixgb_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/neterion/s2io.c
drivers/net/ethernet/neterion/vxge/vxge-main.c
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
drivers/net/ethernet/qlogic/qlge/qlge_main.c

index 1bf5bbfe778e998e9f0ca86897adc6d7001e3ed6..64c8c2eb05b5c9bb3c81605ce9dd33fdcf6def6a 100644 (file)
@@ -2685,7 +2685,7 @@ static void atl1c_io_resume(struct pci_dev *pdev)
        netif_device_attach(netdev);
 }
 
-static struct pci_error_handlers atl1c_err_handler = {
+static const struct pci_error_handlers atl1c_err_handler = {
        .error_detected = atl1c_io_error_detected,
        .slot_reset = atl1c_io_slot_reset,
        .resume = atl1c_io_resume,
index a98acc8a956f9bba8f4c12c39322e3e63b51e443..e213da29e73d4debb9666810c2482cd1f8f51b50 100644 (file)
@@ -2489,7 +2489,7 @@ static void atl1e_io_resume(struct pci_dev *pdev)
        netif_device_attach(netdev);
 }
 
-static struct pci_error_handlers atl1e_err_handler = {
+static const struct pci_error_handlers atl1e_err_handler = {
        .error_detected = atl1e_io_error_detected,
        .slot_reset = atl1e_io_slot_reset,
        .resume = atl1e_io_resume,
index 79cebd8525ce3d451e30b935484dac18535939f2..a0e8399793b627c61e4d7681302c6495d1a564e0 100644 (file)
@@ -8742,7 +8742,7 @@ static void bnx2_io_resume(struct pci_dev *pdev)
        rtnl_unlock();
 }
 
-static struct pci_error_handlers bnx2_err_handler = {
+static const struct pci_error_handlers bnx2_err_handler = {
        .error_detected = bnx2_io_error_detected,
        .slot_reset     = bnx2_io_slot_reset,
        .resume         = bnx2_io_resume,
index dd451c3dd83d1d614a13070e85ffc9a3e8c458e8..81e377408a4e4da5db0018a00d983a90d8e0ee14 100644 (file)
@@ -12171,7 +12171,7 @@ static void bnx2x_io_resume(struct pci_dev *pdev)
        rtnl_unlock();
 }
 
-static struct pci_error_handlers bnx2x_err_handler = {
+static const struct pci_error_handlers bnx2x_err_handler = {
        .error_detected = bnx2x_io_error_detected,
        .slot_reset     = bnx2x_io_slot_reset,
        .resume         = bnx2x_io_resume,
index bf906c51d82a4085fd0167d826cdd3bcd497b2df..5639b5c85c547f39c6642b06a851a5b3e35b6cc3 100644 (file)
@@ -16397,7 +16397,7 @@ done:
        rtnl_unlock();
 }
 
-static struct pci_error_handlers tg3_err_handler = {
+static const struct pci_error_handlers tg3_err_handler = {
        .error_detected = tg3_io_error_detected,
        .slot_reset     = tg3_io_slot_reset,
        .resume         = tg3_io_resume
index 6505070abcfa35dca294a0a097239c4d176e03ee..875bbb999aa24d1e786e05da4548f9cfa6142a33 100644 (file)
@@ -3036,7 +3036,7 @@ static void t3_io_resume(struct pci_dev *pdev)
        t3_resume_ports(adapter);
 }
 
-static struct pci_error_handlers t3_err_handler = {
+static const struct pci_error_handlers t3_err_handler = {
        .error_detected = t3_io_error_detected,
        .slot_reset = t3_io_slot_reset,
        .resume = t3_io_resume,
index 5ed49af23d6ae37f5f7f7136412c9c0f20ac3e56..05bdbbbf145c48d70ede21132b7aaca075824784 100644 (file)
@@ -3453,7 +3453,7 @@ static void eeh_resume(struct pci_dev *pdev)
        rtnl_unlock();
 }
 
-static struct pci_error_handlers cxgb4_eeh = {
+static const struct pci_error_handlers cxgb4_eeh = {
        .error_detected = eeh_err_detected,
        .slot_reset     = eeh_slot_reset,
        .resume         = eeh_resume,
index c60de89b66696759a453ff4d69650c1905209c58..a0029552828167624a23c9697ecfa626bc479667 100644 (file)
@@ -4104,7 +4104,7 @@ err:
        dev_err(&adapter->pdev->dev, "EEH resume failed\n");
 }
 
-static struct pci_error_handlers be_eeh_handlers = {
+static const struct pci_error_handlers be_eeh_handlers = {
        .error_detected = be_eeh_err_detected,
        .slot_reset = be_eeh_reset,
        .resume = be_eeh_resume,
index 535f94fac4a16b8940bf5245ea036faa8b78c173..29ce9bd27f94ea21490f5b6c626d5a709a05ccd9 100644 (file)
@@ -3157,7 +3157,7 @@ static void e100_io_resume(struct pci_dev *pdev)
        }
 }
 
-static struct pci_error_handlers e100_err_handler = {
+static const struct pci_error_handlers e100_err_handler = {
        .error_detected = e100_io_error_detected,
        .slot_reset = e100_io_slot_reset,
        .resume = e100_io_resume,
index 3bfbb8df898935f4acf47a52ebb8be3f0f683a67..524cfb4cac618079d22c0f648f2418c43793b72c 100644 (file)
@@ -192,7 +192,7 @@ static pci_ers_result_t e1000_io_error_detected(struct pci_dev *pdev,
 static pci_ers_result_t e1000_io_slot_reset(struct pci_dev *pdev);
 static void e1000_io_resume(struct pci_dev *pdev);
 
-static struct pci_error_handlers e1000_err_handler = {
+static const struct pci_error_handlers e1000_err_handler = {
        .error_detected = e1000_io_error_detected,
        .slot_reset = e1000_io_slot_reset,
        .resume = e1000_io_resume,
index 95b245310f1761fa4f9b06de319cea48fdc28c92..1c650ecae88d3f1021fc219616959eac3ee2c545 100644 (file)
@@ -6472,7 +6472,7 @@ static void __devexit e1000_remove(struct pci_dev *pdev)
 }
 
 /* PCI Error Recovery (ERS) */
-static struct pci_error_handlers e1000_err_handler = {
+static const struct pci_error_handlers e1000_err_handler = {
        .error_detected = e1000_io_error_detected,
        .slot_reset = e1000_io_slot_reset,
        .resume = e1000_io_resume,
index b7c2d5050572828c8d07e228b2e44235e9f01801..25270648517b9d98ff9e8bbd41c8667739ed4e5b 100644 (file)
@@ -217,7 +217,7 @@ static pci_ers_result_t igb_io_error_detected(struct pci_dev *,
 static pci_ers_result_t igb_io_slot_reset(struct pci_dev *);
 static void igb_io_resume(struct pci_dev *);
 
-static struct pci_error_handlers igb_err_handler = {
+static const struct pci_error_handlers igb_err_handler = {
        .error_detected = igb_io_error_detected,
        .slot_reset = igb_io_slot_reset,
        .resume = igb_io_resume,
index 0696abfe994486d52477ce2cb0cc1759413dcabf..0ac11f527a84e289d8d42f693c7ebeff67e198a7 100644 (file)
@@ -2833,7 +2833,7 @@ static void __devexit igbvf_remove(struct pci_dev *pdev)
 }
 
 /* PCI Error Recovery (ERS) */
-static struct pci_error_handlers igbvf_err_handler = {
+static const struct pci_error_handlers igbvf_err_handler = {
        .error_detected = igbvf_io_error_detected,
        .slot_reset = igbvf_io_slot_reset,
        .resume = igbvf_io_resume,
index d05fc95befc5cf9421672e00c95c8071f1f56f60..d99a2d51b9482bb54926b3bb249ef13a26701201 100644 (file)
@@ -115,7 +115,7 @@ static pci_ers_result_t ixgb_io_error_detected (struct pci_dev *pdev,
 static pci_ers_result_t ixgb_io_slot_reset (struct pci_dev *pdev);
 static void ixgb_io_resume (struct pci_dev *pdev);
 
-static struct pci_error_handlers ixgb_err_handler = {
+static const struct pci_error_handlers ixgb_err_handler = {
        .error_detected = ixgb_io_error_detected,
        .slot_reset = ixgb_io_slot_reset,
        .resume = ixgb_io_resume,
index 4326f74f7137a333461683f00c8fc1cadfcee4b4..ade4d81a3177528d8758e3c6baa4fce78cccd456 100644 (file)
@@ -7677,7 +7677,7 @@ static void ixgbe_io_resume(struct pci_dev *pdev)
        netif_device_attach(netdev);
 }
 
-static struct pci_error_handlers ixgbe_err_handler = {
+static const struct pci_error_handlers ixgbe_err_handler = {
        .error_detected = ixgbe_io_error_detected,
        .slot_reset = ixgbe_io_slot_reset,
        .resume = ixgbe_io_resume,
index 60ef64587412a6a70af056f93e253f4fe407cce2..6647383c4ddc85f9639eb010e0f3c5f470f4c3b9 100644 (file)
@@ -3256,7 +3256,7 @@ static void ixgbevf_io_resume(struct pci_dev *pdev)
 }
 
 /* PCI Error Recovery (ERS) */
-static struct pci_error_handlers ixgbevf_err_handler = {
+static const struct pci_error_handlers ixgbevf_err_handler = {
        .error_detected = ixgbevf_io_error_detected,
        .slot_reset = ixgbevf_io_slot_reset,
        .resume = ixgbevf_io_resume,
index 48d0e90194cb19d2a322990425b478f9e178b623..d89e89b415cf394cc91f72dd5cdc8395cca7c121 100644 (file)
@@ -2301,7 +2301,7 @@ static pci_ers_result_t mlx4_pci_slot_reset(struct pci_dev *pdev)
        return ret ? PCI_ERS_RESULT_DISCONNECT : PCI_ERS_RESULT_RECOVERED;
 }
 
-static struct pci_error_handlers mlx4_err_handler = {
+static const struct pci_error_handlers mlx4_err_handler = {
        .error_detected = mlx4_pci_err_detected,
        .slot_reset     = mlx4_pci_slot_reset,
 };
index d958c229937221d81bf3fb01743a1b5029864d72..de50547c187d7429c755db17fc4f4242f2599894 100644 (file)
@@ -484,7 +484,7 @@ static DEFINE_PCI_DEVICE_TABLE(s2io_tbl) = {
 
 MODULE_DEVICE_TABLE(pci, s2io_tbl);
 
-static struct pci_error_handlers s2io_err_handler = {
+static const struct pci_error_handlers s2io_err_handler = {
        .error_detected = s2io_io_error_detected,
        .slot_reset = s2io_io_slot_reset,
        .resume = s2io_io_resume,
index de219044351063b1a9e2e400d4a823357c050b32..cfa71a30dc8daece534e1226a20aa2d00c210b00 100644 (file)
@@ -4799,7 +4799,7 @@ static void __devexit vxge_remove(struct pci_dev *pdev)
                             __LINE__);
 }
 
-static struct pci_error_handlers vxge_err_handler = {
+static const struct pci_error_handlers vxge_err_handler = {
        .error_detected = vxge_io_error_detected,
        .slot_reset = vxge_io_slot_reset,
        .resume = vxge_io_resume,
index feb85d56c750c425cb6e5ab9d3cee37b2dfc0251..b2a94d02a5217db7638164962d59b16f8def20ad 100644 (file)
@@ -2795,7 +2795,7 @@ static const struct dev_pm_ops pch_gbe_pm_ops = {
 };
 #endif
 
-static struct pci_error_handlers pch_gbe_err_handler = {
+static const struct pci_error_handlers pch_gbe_err_handler = {
        .error_detected = pch_gbe_io_error_detected,
        .slot_reset = pch_gbe_io_slot_reset,
        .resume = pch_gbe_io_resume
index 342b3a79bd0fd7a6a6bde8860446c20c78595ef2..0fa18ae07de5eafd4ddace6f75536ca118fee45a 100644 (file)
@@ -3336,7 +3336,7 @@ netxen_free_vlan_ip_list(struct netxen_adapter *adapter)
 { }
 #endif
 
-static struct pci_error_handlers netxen_err_handler = {
+static const struct pci_error_handlers netxen_err_handler = {
        .error_detected = netxen_io_error_detected,
        .slot_reset = netxen_io_slot_reset,
        .resume = netxen_io_resume,
index 212c121932758613f5a446fe63b6524ed161ab3a..473ce134ca63d83c42ac115be60ca6e32aec04dc 100644 (file)
@@ -4522,7 +4522,7 @@ static void
 qlcnic_restore_indev_addr(struct net_device *dev, unsigned long event)
 { }
 #endif
-static struct pci_error_handlers qlcnic_err_handler = {
+static const struct pci_error_handlers qlcnic_err_handler = {
        .error_detected = qlcnic_io_error_detected,
        .slot_reset = qlcnic_io_slot_reset,
        .resume = qlcnic_io_resume,
index b53a3b60b6480e340acf8e73b46e04319b942c3b..b262d6156816134e980c81915b23e10b526d8803 100644 (file)
@@ -4847,7 +4847,7 @@ static void qlge_io_resume(struct pci_dev *pdev)
        netif_device_attach(ndev);
 }
 
-static struct pci_error_handlers qlge_err_handler = {
+static const struct pci_error_handlers qlge_err_handler = {
        .error_detected = qlge_io_error_detected,
        .slot_reset = qlge_io_slot_reset,
        .resume = qlge_io_resume,