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: Jingoo Han <jg1.han@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7f4341fef3
commit
4188e7df44
@ -1010,9 +1010,9 @@ static u32 be_encoded_q_len(int q_len)
|
||||
return len_encoded;
|
||||
}
|
||||
|
||||
int be_cmd_mccq_ext_create(struct be_adapter *adapter,
|
||||
struct be_queue_info *mccq,
|
||||
struct be_queue_info *cq)
|
||||
static int be_cmd_mccq_ext_create(struct be_adapter *adapter,
|
||||
struct be_queue_info *mccq,
|
||||
struct be_queue_info *cq)
|
||||
{
|
||||
struct be_mcc_wrb *wrb;
|
||||
struct be_cmd_req_mcc_ext_create *req;
|
||||
@ -1068,9 +1068,9 @@ int be_cmd_mccq_ext_create(struct be_adapter *adapter,
|
||||
return status;
|
||||
}
|
||||
|
||||
int be_cmd_mccq_org_create(struct be_adapter *adapter,
|
||||
struct be_queue_info *mccq,
|
||||
struct be_queue_info *cq)
|
||||
static int be_cmd_mccq_org_create(struct be_adapter *adapter,
|
||||
struct be_queue_info *mccq,
|
||||
struct be_queue_info *cq)
|
||||
{
|
||||
struct be_mcc_wrb *wrb;
|
||||
struct be_cmd_req_mcc_create *req;
|
||||
@ -3163,8 +3163,8 @@ err:
|
||||
}
|
||||
|
||||
/* Uses mbox */
|
||||
int be_cmd_get_profile_config_mbox(struct be_adapter *adapter,
|
||||
u8 domain, struct be_dma_mem *cmd)
|
||||
static int be_cmd_get_profile_config_mbox(struct be_adapter *adapter,
|
||||
u8 domain, struct be_dma_mem *cmd)
|
||||
{
|
||||
struct be_mcc_wrb *wrb;
|
||||
struct be_cmd_req_get_profile_config *req;
|
||||
@ -3191,8 +3191,8 @@ int be_cmd_get_profile_config_mbox(struct be_adapter *adapter,
|
||||
}
|
||||
|
||||
/* Uses sync mcc */
|
||||
int be_cmd_get_profile_config_mccq(struct be_adapter *adapter,
|
||||
u8 domain, struct be_dma_mem *cmd)
|
||||
static int be_cmd_get_profile_config_mccq(struct be_adapter *adapter,
|
||||
u8 domain, struct be_dma_mem *cmd)
|
||||
{
|
||||
struct be_mcc_wrb *wrb;
|
||||
struct be_cmd_req_get_profile_config *req;
|
||||
|
@ -472,7 +472,7 @@ static void accumulate_16bit_val(u32 *acc, u16 val)
|
||||
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,
|
||||
u32 erx_stat)
|
||||
{
|
||||
@ -1482,8 +1482,9 @@ static void be_rx_compl_process(struct be_rx_obj *rxo,
|
||||
}
|
||||
|
||||
/* 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,
|
||||
struct be_rx_compl_info *rxcp)
|
||||
static void be_rx_compl_process_gro(struct be_rx_obj *rxo,
|
||||
struct napi_struct *napi,
|
||||
struct be_rx_compl_info *rxcp)
|
||||
{
|
||||
struct be_adapter *adapter = rxo->adapter;
|
||||
struct be_rx_page_info *page_info;
|
||||
@ -2259,7 +2260,7 @@ static bool be_process_tx(struct be_adapter *adapter, struct be_tx_obj *txo,
|
||||
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_adapter *adapter = eqo->adapter;
|
||||
@ -3220,7 +3221,7 @@ static void be_netpoll(struct net_device *netdev)
|
||||
#endif
|
||||
|
||||
#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,
|
||||
const u8 *p, u32 img_start, int image_size,
|
||||
@ -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,
|
||||
const struct firmware *fw)
|
||||
{
|
||||
|
@ -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)
|
||||
ocrdma_drv->remove(adapter->ocrdma_dev);
|
||||
@ -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 &&
|
||||
ocrdma_drv->state_change_handler)
|
||||
@ -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 &&
|
||||
ocrdma_drv->state_change_handler)
|
||||
|
Loading…
Reference in New Issue
Block a user