Commit 4188e7df authored by Jingoo Han's avatar Jingoo Han Committed by David S. Miller

be2net: Staticize local functions

These local functions are used only in this file.
Fix the following sparse warnings:

drivers/net/ethernet/emulex/benet/be_main.c:475:6: warning: symbol 'populate_erx_stats' was not declared. Should it be static?
drivers/net/ethernet/emulex/benet/be_main.c:1485:6: warning: symbol 'be_rx_compl_process_gro' was not declared. Should it be static?
drivers/net/ethernet/emulex/benet/be_main.c:2262:5: warning: symbol 'be_poll' was not declared. Should it be static?
drivers/net/ethernet/emulex/benet/be_main.c:3223:6: warning: symbol 'flash_cookie' was not declared. Should it be static?
drivers/net/ethernet/emulex/benet/be_main.c:3280:27: warning: symbol 'get_fsec_info' was not declared. Should it be static?
drivers/net/ethernet/emulex/benet/be_cmds.c:1013:5: warning: symbol 'be_cmd_mccq_ext_create' was not declared. Should it be static?
drivers/net/ethernet/emulex/benet/be_cmds.c:1071:5: warning: symbol 'be_cmd_mccq_org_create' was not declared. Should it be static?
drivers/net/ethernet/emulex/benet/be_cmds.c:3166:5: warning: symbol 'be_cmd_get_profile_config_mbox' was not declared. Should it be
static?
drivers/net/ethernet/emulex/benet/be_cmds.c:3194:5: warning: symbol 'be_cmd_get_profile_config_mccq' was not declared. Should it be
static?
drivers/net/ethernet/emulex/benet/be_roce.c:96:6: warning: symbol '_be_roce_dev_remove' was not declared. Should it be static?
drivers/net/ethernet/emulex/benet/be_roce.c:113:6: warning: symbol '_be_roce_dev_open' was not declared. Should it be static?
drivers/net/ethernet/emulex/benet/be_roce.c:129:6: warning: symbol '_be_roce_dev_close' was not declared. Should it be static?
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7f4341fe
...@@ -1010,7 +1010,7 @@ static u32 be_encoded_q_len(int q_len) ...@@ -1010,7 +1010,7 @@ static u32 be_encoded_q_len(int q_len)
return len_encoded; return len_encoded;
} }
int be_cmd_mccq_ext_create(struct be_adapter *adapter, static int be_cmd_mccq_ext_create(struct be_adapter *adapter,
struct be_queue_info *mccq, struct be_queue_info *mccq,
struct be_queue_info *cq) struct be_queue_info *cq)
{ {
...@@ -1068,7 +1068,7 @@ int be_cmd_mccq_ext_create(struct be_adapter *adapter, ...@@ -1068,7 +1068,7 @@ int be_cmd_mccq_ext_create(struct be_adapter *adapter,
return status; return status;
} }
int be_cmd_mccq_org_create(struct be_adapter *adapter, static int be_cmd_mccq_org_create(struct be_adapter *adapter,
struct be_queue_info *mccq, struct be_queue_info *mccq,
struct be_queue_info *cq) struct be_queue_info *cq)
{ {
...@@ -3163,7 +3163,7 @@ int be_cmd_get_func_config(struct be_adapter *adapter) ...@@ -3163,7 +3163,7 @@ int be_cmd_get_func_config(struct be_adapter *adapter)
} }
/* Uses mbox */ /* Uses mbox */
int be_cmd_get_profile_config_mbox(struct be_adapter *adapter, static int be_cmd_get_profile_config_mbox(struct be_adapter *adapter,
u8 domain, struct be_dma_mem *cmd) u8 domain, struct be_dma_mem *cmd)
{ {
struct be_mcc_wrb *wrb; struct be_mcc_wrb *wrb;
...@@ -3191,7 +3191,7 @@ int be_cmd_get_profile_config_mbox(struct be_adapter *adapter, ...@@ -3191,7 +3191,7 @@ int be_cmd_get_profile_config_mbox(struct be_adapter *adapter,
} }
/* Uses sync mcc */ /* Uses sync mcc */
int be_cmd_get_profile_config_mccq(struct be_adapter *adapter, static int be_cmd_get_profile_config_mccq(struct be_adapter *adapter,
u8 domain, struct be_dma_mem *cmd) u8 domain, struct be_dma_mem *cmd)
{ {
struct be_mcc_wrb *wrb; struct be_mcc_wrb *wrb;
......
...@@ -472,7 +472,7 @@ static void accumulate_16bit_val(u32 *acc, u16 val) ...@@ -472,7 +472,7 @@ static void accumulate_16bit_val(u32 *acc, u16 val)
ACCESS_ONCE(*acc) = newacc; ACCESS_ONCE(*acc) = newacc;
} }
void populate_erx_stats(struct be_adapter *adapter, static void populate_erx_stats(struct be_adapter *adapter,
struct be_rx_obj *rxo, struct be_rx_obj *rxo,
u32 erx_stat) u32 erx_stat)
{ {
...@@ -1482,7 +1482,8 @@ static void be_rx_compl_process(struct be_rx_obj *rxo, ...@@ -1482,7 +1482,8 @@ static void be_rx_compl_process(struct be_rx_obj *rxo,
} }
/* Process the RX completion indicated by rxcp when GRO is enabled */ /* Process the RX completion indicated by rxcp when GRO is enabled */
void be_rx_compl_process_gro(struct be_rx_obj *rxo, struct napi_struct *napi, static void be_rx_compl_process_gro(struct be_rx_obj *rxo,
struct napi_struct *napi,
struct be_rx_compl_info *rxcp) struct be_rx_compl_info *rxcp)
{ {
struct be_adapter *adapter = rxo->adapter; struct be_adapter *adapter = rxo->adapter;
...@@ -2259,7 +2260,7 @@ static bool be_process_tx(struct be_adapter *adapter, struct be_tx_obj *txo, ...@@ -2259,7 +2260,7 @@ static bool be_process_tx(struct be_adapter *adapter, struct be_tx_obj *txo,
return (work_done < budget); /* Done */ return (work_done < budget); /* Done */
} }
int be_poll(struct napi_struct *napi, int budget) static int be_poll(struct napi_struct *napi, int budget)
{ {
struct be_eq_obj *eqo = container_of(napi, struct be_eq_obj, napi); struct be_eq_obj *eqo = container_of(napi, struct be_eq_obj, napi);
struct be_adapter *adapter = eqo->adapter; struct be_adapter *adapter = eqo->adapter;
...@@ -3220,7 +3221,7 @@ static void be_netpoll(struct net_device *netdev) ...@@ -3220,7 +3221,7 @@ static void be_netpoll(struct net_device *netdev)
#endif #endif
#define FW_FILE_HDR_SIGN "ServerEngines Corp. " #define FW_FILE_HDR_SIGN "ServerEngines Corp. "
char flash_cookie[2][16] = {"*** SE FLAS", "H DIRECTORY *** "}; static char flash_cookie[2][16] = {"*** SE FLAS", "H DIRECTORY *** "};
static bool be_flash_redboot(struct be_adapter *adapter, static bool be_flash_redboot(struct be_adapter *adapter,
const u8 *p, u32 img_start, int image_size, const u8 *p, u32 img_start, int image_size,
...@@ -3277,7 +3278,7 @@ static bool is_comp_in_ufi(struct be_adapter *adapter, ...@@ -3277,7 +3278,7 @@ static bool is_comp_in_ufi(struct be_adapter *adapter,
} }
struct flash_section_info *get_fsec_info(struct be_adapter *adapter, static struct flash_section_info *get_fsec_info(struct be_adapter *adapter,
int header_size, int header_size,
const struct firmware *fw) const struct firmware *fw)
{ {
......
...@@ -93,7 +93,7 @@ void be_roce_dev_add(struct be_adapter *adapter) ...@@ -93,7 +93,7 @@ void be_roce_dev_add(struct be_adapter *adapter)
} }
} }
void _be_roce_dev_remove(struct be_adapter *adapter) static void _be_roce_dev_remove(struct be_adapter *adapter)
{ {
if (ocrdma_drv && ocrdma_drv->remove && adapter->ocrdma_dev) if (ocrdma_drv && ocrdma_drv->remove && adapter->ocrdma_dev)
ocrdma_drv->remove(adapter->ocrdma_dev); ocrdma_drv->remove(adapter->ocrdma_dev);
...@@ -110,7 +110,7 @@ void be_roce_dev_remove(struct be_adapter *adapter) ...@@ -110,7 +110,7 @@ void be_roce_dev_remove(struct be_adapter *adapter)
} }
} }
void _be_roce_dev_open(struct be_adapter *adapter) static void _be_roce_dev_open(struct be_adapter *adapter)
{ {
if (ocrdma_drv && adapter->ocrdma_dev && if (ocrdma_drv && adapter->ocrdma_dev &&
ocrdma_drv->state_change_handler) ocrdma_drv->state_change_handler)
...@@ -126,7 +126,7 @@ void be_roce_dev_open(struct be_adapter *adapter) ...@@ -126,7 +126,7 @@ void be_roce_dev_open(struct be_adapter *adapter)
} }
} }
void _be_roce_dev_close(struct be_adapter *adapter) static void _be_roce_dev_close(struct be_adapter *adapter)
{ {
if (ocrdma_drv && adapter->ocrdma_dev && if (ocrdma_drv && adapter->ocrdma_dev &&
ocrdma_drv->state_change_handler) ocrdma_drv->state_change_handler)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment