Commit ebf6b131 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

cxgb4vf: make a couple of functions static

The functions t4vf_link_down_rc_str and t4vf_handle_get_port_info are
local to the source and do not need to be in global scope, so make
them static.

Cleans up sparse warnings:
symbol 't4vf_link_down_rc_str' was not declared. Should it be static?
symbol 't4vf_handle_get_port_info' was not declared. Should it be static?
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 20e88320
...@@ -1812,7 +1812,7 @@ int t4vf_eth_eq_free(struct adapter *adapter, unsigned int eqid) ...@@ -1812,7 +1812,7 @@ int t4vf_eth_eq_free(struct adapter *adapter, unsigned int eqid)
* *
* Returns a string representation of the Link Down Reason Code. * Returns a string representation of the Link Down Reason Code.
*/ */
const char *t4vf_link_down_rc_str(unsigned char link_down_rc) static const char *t4vf_link_down_rc_str(unsigned char link_down_rc)
{ {
static const char * const reason[] = { static const char * const reason[] = {
"Link Down", "Link Down",
...@@ -1838,8 +1838,8 @@ const char *t4vf_link_down_rc_str(unsigned char link_down_rc) ...@@ -1838,8 +1838,8 @@ const char *t4vf_link_down_rc_str(unsigned char link_down_rc)
* *
* Processes a GET_PORT_INFO FW reply message. * Processes a GET_PORT_INFO FW reply message.
*/ */
void t4vf_handle_get_port_info(struct port_info *pi, static void t4vf_handle_get_port_info(struct port_info *pi,
const struct fw_port_cmd *cmd) const struct fw_port_cmd *cmd)
{ {
int action = FW_PORT_CMD_ACTION_G(be32_to_cpu(cmd->action_to_len16)); int action = FW_PORT_CMD_ACTION_G(be32_to_cpu(cmd->action_to_len16));
struct adapter *adapter = pi->adapter; struct adapter *adapter = pi->adapter;
......
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