bnx2x: make bnx2x_close() static again
PATCH 1/1 bnx2x: make bnx2x_close() static again
Commit 8304859a "bnx2x: add fan failure event handling" made the function bnx2x_close() non-static unnecessarily. The function is not called from other sources. Make it static again.
--- drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 2 -- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +0 -2
@@ -2074,8 +2074,6 @@ static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms,#define BNX2X_VPD_LEN 128#define VENDOR_ID_LEN 4 -int bnx2x_close (struct net_device *dev); -/* Congestion management fairness mode */ #define CMNG_FNS_NONE 0#define CMNG_FNS_MINMAX 1
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +3 -1
@@ -8719,6 +8719,8 @@ static void bnx2x_parity_recover(struct bnx2x *bp) } } +static int bnx2x_close (struct net_device *dev); +/* bnx2x_nic_unload() flushes the bnx2x_wq, thus reset task is * scheduled on a general queue in order to prevent a dead lock. */
@@ -10291,7 +10293,7 @@ static int bnx2x_open(struct net_device *dev) }/* called with rtnl_lock */ -int bnx2x_close (struct net_device *dev) +static int bnx2x_close (struct net_device *dev) {struct bnx2x *bp =netdev_priv (dev);
Signature · 1 line
1.7.4.1
A message that is not in the archive (sent off-list or not yet received): D4345541C14421439B1167B74C9F383537EEF3@SJEXCHMB05.corp.ad.broadcom.com
Yuval Mintz
Acked-byQuoted 39 lines
Subject: [PATCH] bnx2x: make
bnx2x_close()static againCommit
8304859a"bnx2x: add fan failure event handling" made the functionbnx2x_close()non-static unnecessarily. The function is not called from other sources. Make it static again.Signed-off-by Michal Schmidt <[email protected]>--- drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 2 -- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-)drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +0
-2@@ -2074,8 +2074,6 @@ static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms,#define BNX2X_VPD_LEN 128#define VENDOR_ID_LEN 4 -int bnx2x_close (struct net_device *dev); -/* Congestion management fairness mode */ #define CMNG_FNS_NONE 0#define CMNG_FNS_MINMAX 1drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +2
-0@@ -8719,6 +8719,8 @@ static void bnx2x_parity_recover(struct bnx2x *bp) } } +static int bnx2x_close (struct net_device *dev); +/* bnx2x_nic_unload() flushes the bnx2x_wq, thus reset task is * scheduled on a general queue in order to prevent a dead lock. */
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c static int bnx2x_open(struct net_device *dev) · line 10299
Quoted 8 lines
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +1
-1@@ -10291,7 +10293,7 @@ static int bnx2x_open(struct net_device *dev) }/* called with rtnl_lock */ -int bnx2x_close (struct net_device *dev) +static int bnx2x_close (struct net_device *dev) {struct bnx2x *bp =netdev_priv (dev);
Thanks Michal.
From: "Yuval Mintz" <[email protected]>
Date: Thu, 16 Feb 2012 15:35:40 +0200
Quoted 7 lines
Quoted 7 lines
Subject: [PATCH] bnx2x: make
bnx2x_close()static againCommit
8304859a"bnx2x: add fan failure event handling" made the functionbnx2x_close()non-static unnecessarily. The function is not called from other sources. Make it static again.Signed-off-by Michal Schmidt <[email protected]>
...
Quoted 1 line
Acked-by Yuval Mintz <[email protected]>
Applied.