Skip to contentSkip to conversation

ixgbevf: declare functions as static

PATCH Applied Jeff Kirsher 2 participants 2 messages Oct 5, 2010 – Oct 6, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ixgbevf: declare functions as static

From: Emil Tantilov <[email protected]>

Following patch fixes warnings reported by make namespacecheck

Reported by Stephen Hemminger

---

 drivers/net/ixgbevf/mbx.c |    2 +-
 drivers/net/ixgbevf/mbx.h |    2 --
 drivers/net/ixgbevf/vf.c  |    2 +-
 3 files changed, 2 insertions(+), 4 deletions(-)
drivers/net/ixgbevf/mbx.c +1 -1
index b814350..84ac486 100644
@@ -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;
 
drivers/net/ixgbevf/mbx.h +0 -2
index 1b0e0bf..8c063be 100644
@@ -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_ */
drivers/net/ixgbevf/vf.c +1 -1
index f6f9299..bfe42c1 100644
@@ -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,
maintainer Applied
#1 lore raw

From: Jeff Kirsher <[email protected]>
Date: Tue, 05 Oct 2010 16:11:30 -0700

Quoted 11 lines

From: Emil Tantilov <[email protected]>

Following patch fixes warnings reported by make namespacecheck

Reported by Stephen Hemminger

Applied.