ixgbevf: declare functions as static
authorEmil Tantilov <emil.s.tantilov@intel.com>
Tue, 5 Oct 2010 13:11:30 +0000 (13:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Oct 2010 03:10:31 +0000 (20:10 -0700)
Following patch fixes warnings reported by `make namespacecheck`

Reported by Stephen Hemminger

CC: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Acked-by: Greg Rose <greg.v.rose@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbevf/mbx.c
drivers/net/ixgbevf/mbx.h
drivers/net/ixgbevf/vf.c

index b8143501e6fc04eca2a06f285c3d0c42c53f97e8..84ac486f4a65f9f4abb65b5d94236c646b56bec0 100644 (file)
@@ -308,7 +308,7 @@ out_no_read:
  *
  *  Initializes the hw->mbx struct to correct values for vf mailbox
  */
-s32 ixgbevf_init_mbx_params_vf(struct ixgbe_hw *hw)
+static s32 ixgbevf_init_mbx_params_vf(struct ixgbe_hw *hw)
 {
        struct ixgbe_mbx_info *mbx = &hw->mbx;
 
index 1b0e0bf4c0f5c05934ba1027e9c124c85cabdc39..8c063bebee7f13a5f1b6d28054c4d1fe5658fc3f 100644 (file)
@@ -95,6 +95,4 @@
 /* forward declaration of the HW struct */
 struct ixgbe_hw;
 
-s32 ixgbevf_init_mbx_params_vf(struct ixgbe_hw *);
-
 #endif /* _IXGBE_MBX_H_ */
index f6f929958ba0beb3cb3ec60970042976f1062247..bfe42c1fcfafa681c660d10e2b399e20d12f22ca 100644 (file)
@@ -368,7 +368,7 @@ static s32 ixgbevf_check_mac_link_vf(struct ixgbe_hw *hw,
        return 0;
 }
 
-struct ixgbe_mac_operations ixgbevf_mac_ops = {
+static struct ixgbe_mac_operations ixgbevf_mac_ops = {
        .init_hw             = ixgbevf_init_hw_vf,
        .reset_hw            = ixgbevf_reset_hw_vf,
        .start_hw            = ixgbevf_start_hw_vf,
This page took 0.026117 seconds and 5 git commands to generate.