diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-09-29 14:16:01 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-09-29 11:18:56 -0400 |
commit | 281d0ccfae86c5b35ac48a0f2f20a6775a85cd05 (patch) | |
tree | 3d969be4059aefc96cb6bd34055188b6777d4a91 /drivers/infiniband/hw/hns/hns_roce_hem.c | |
parent | 4ea597ea3de2733873cdcfd5c4a9a2760a126daf (diff) |
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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_hem.c')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hem.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hem.c b/drivers/infiniband/hw/hns/hns_roce_hem.c index 125e26ebf250..8388ae25640c 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hem.c +++ b/drivers/infiniband/hw/hns/hns_roce_hem.c @@ -363,9 +363,9 @@ static int hns_roce_set_hem(struct hns_roce_dev *hr_dev, return ret; } -int hns_roce_table_mhop_get(struct hns_roce_dev *hr_dev, - struct hns_roce_hem_table *table, - unsigned long obj) +static int hns_roce_table_mhop_get(struct hns_roce_dev *hr_dev, + struct hns_roce_hem_table *table, + unsigned long obj) { struct device *dev = hr_dev->dev; struct hns_roce_hem_mhop mhop; @@ -576,10 +576,10 @@ out: return ret; } -void hns_roce_table_mhop_put(struct hns_roce_dev *hr_dev, - struct hns_roce_hem_table *table, - unsigned long obj, - int check_refcount) +static void hns_roce_table_mhop_put(struct hns_roce_dev *hr_dev, + struct hns_roce_hem_table *table, + unsigned long obj, + int check_refcount) { struct device *dev = hr_dev->dev; struct hns_roce_hem_mhop mhop; @@ -983,8 +983,8 @@ err_kcalloc_hem_buf: return -ENOMEM; } -void hns_roce_cleanup_mhop_hem_table(struct hns_roce_dev *hr_dev, - struct hns_roce_hem_table *table) +static void hns_roce_cleanup_mhop_hem_table(struct hns_roce_dev *hr_dev, + struct hns_roce_hem_table *table) { struct hns_roce_hem_mhop mhop; u32 buf_chunk_size; |