Commit 281d0ccf authored by Colin Ian King's avatar Colin Ian King Committed by Doug Ledford

RDMA/hns: make various function static, fixes warnings

The functions hns_roce_table_mhop_get, hns_roce_table_mhop_put,
hns_roce_cleanup_mhop_hem_table,  hns_roce_v1_post_mbox,
hns_roce_cmq_setup_basic_desc, hns_roce_cmq_send,
hns_roce_cmq_query_hw_info are all local to the source and do
not need to be in global scope, so make them static.

Cleans up sparse warnings:
symbol 'hns_roce_table_mhop_get' was not declared. Should it be static?
symbol 'hns_roce_table_mhop_put' was not declared. Should it be static?
symbol 'hns_roce_cleanup_mhop_hem_table' was not declared. Should it be
static?
symbol 'hns_roce_v1_post_mbox' was not declared. Should it be static?
symbol 'hns_roce_cmq_setup_basic_desc' was not declared. Should it be
static?
symbol 'hns_roce_cmq_send' was not declared. Should it be static?
symbol 'hns_roce_cmq_query_hw_info' was not declared. Should it be static?
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 4ea597ea
...@@ -363,7 +363,7 @@ static int hns_roce_set_hem(struct hns_roce_dev *hr_dev, ...@@ -363,7 +363,7 @@ static int hns_roce_set_hem(struct hns_roce_dev *hr_dev,
return ret; return ret;
} }
int hns_roce_table_mhop_get(struct hns_roce_dev *hr_dev, static int hns_roce_table_mhop_get(struct hns_roce_dev *hr_dev,
struct hns_roce_hem_table *table, struct hns_roce_hem_table *table,
unsigned long obj) unsigned long obj)
{ {
...@@ -576,7 +576,7 @@ int hns_roce_table_get(struct hns_roce_dev *hr_dev, ...@@ -576,7 +576,7 @@ int hns_roce_table_get(struct hns_roce_dev *hr_dev,
return ret; return ret;
} }
void hns_roce_table_mhop_put(struct hns_roce_dev *hr_dev, static void hns_roce_table_mhop_put(struct hns_roce_dev *hr_dev,
struct hns_roce_hem_table *table, struct hns_roce_hem_table *table,
unsigned long obj, unsigned long obj,
int check_refcount) int check_refcount)
...@@ -983,7 +983,7 @@ int hns_roce_init_hem_table(struct hns_roce_dev *hr_dev, ...@@ -983,7 +983,7 @@ int hns_roce_init_hem_table(struct hns_roce_dev *hr_dev,
return -ENOMEM; return -ENOMEM;
} }
void hns_roce_cleanup_mhop_hem_table(struct hns_roce_dev *hr_dev, static void hns_roce_cleanup_mhop_hem_table(struct hns_roce_dev *hr_dev,
struct hns_roce_hem_table *table) struct hns_roce_hem_table *table)
{ {
struct hns_roce_hem_mhop mhop; struct hns_roce_hem_mhop mhop;
......
...@@ -1628,7 +1628,7 @@ static int hns_roce_v1_cmd_pending(struct hns_roce_dev *hr_dev) ...@@ -1628,7 +1628,7 @@ static int hns_roce_v1_cmd_pending(struct hns_roce_dev *hr_dev)
return (!!(status & (1 << HCR_GO_BIT))); return (!!(status & (1 << HCR_GO_BIT)));
} }
int hns_roce_v1_post_mbox(struct hns_roce_dev *hr_dev, u64 in_param, static int hns_roce_v1_post_mbox(struct hns_roce_dev *hr_dev, u64 in_param,
u64 out_param, u32 in_modifier, u8 op_modifier, u64 out_param, u32 in_modifier, u8 op_modifier,
u16 op, u16 token, int event) u16 op, u16 token, int event)
{ {
......
...@@ -496,7 +496,7 @@ static void hns_roce_v2_cmq_exit(struct hns_roce_dev *hr_dev) ...@@ -496,7 +496,7 @@ static void hns_roce_v2_cmq_exit(struct hns_roce_dev *hr_dev)
hns_roce_free_cmq_desc(hr_dev, &priv->cmq.crq); hns_roce_free_cmq_desc(hr_dev, &priv->cmq.crq);
} }
void hns_roce_cmq_setup_basic_desc(struct hns_roce_cmq_desc *desc, static void hns_roce_cmq_setup_basic_desc(struct hns_roce_cmq_desc *desc,
enum hns_roce_opcode_type opcode, enum hns_roce_opcode_type opcode,
bool is_read) bool is_read)
{ {
...@@ -542,7 +542,7 @@ static int hns_roce_cmq_csq_clean(struct hns_roce_dev *hr_dev) ...@@ -542,7 +542,7 @@ static int hns_roce_cmq_csq_clean(struct hns_roce_dev *hr_dev)
return clean; return clean;
} }
int hns_roce_cmq_send(struct hns_roce_dev *hr_dev, static int hns_roce_cmq_send(struct hns_roce_dev *hr_dev,
struct hns_roce_cmq_desc *desc, int num) struct hns_roce_cmq_desc *desc, int num)
{ {
struct hns_roce_v2_priv *priv = (struct hns_roce_v2_priv *)hr_dev->priv; struct hns_roce_v2_priv *priv = (struct hns_roce_v2_priv *)hr_dev->priv;
...@@ -629,7 +629,7 @@ int hns_roce_cmq_send(struct hns_roce_dev *hr_dev, ...@@ -629,7 +629,7 @@ int hns_roce_cmq_send(struct hns_roce_dev *hr_dev,
return ret; return ret;
} }
int hns_roce_cmq_query_hw_info(struct hns_roce_dev *hr_dev) static int hns_roce_cmq_query_hw_info(struct hns_roce_dev *hr_dev)
{ {
struct hns_roce_query_version *resp; struct hns_roce_query_version *resp;
struct hns_roce_cmq_desc desc; struct hns_roce_cmq_desc desc;
......
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