@@ -304,7 +304,7 @@ static void lookup_iova(
}
}
-void rfc_lookup_iova(
+static void rfc_lookup_iova(
struct rfc_mem *mem,
u64 iova,
int *m_out,
@@ -67,14 +67,14 @@ static DEFINE_SPINLOCK(rfc_net_lock);
#define UNLOCK(x, y) spin_unlock_irqrestore((x), (y))
#define LOCK_INIT(x) spin_lock_init((x))
-struct net_device *rfc_net_dev;
+static struct net_device *rfc_net_dev;
struct rfc_skb_blk_push {
struct page *page1;
u32 daddr;
int len;
struct list_head active_push_reqs;
};
-struct list_head skb_blk_push_list;
+static struct list_head skb_blk_push_list;
struct rfc_net_private {
struct napi_struct napi;
struct net_device *dev;
@@ -86,7 +86,7 @@ static unsigned char rfc_net_mac_addr[6] = {
};
//struct page *xmit_page = NULL;
-struct work_struct net_blk_work;
+static struct work_struct net_blk_work;
static struct workqueue_struct *net_blk_wrk_st;
static void rfc_net_xfer_complete(struct bio *bio)
@@ -50,7 +50,7 @@
static LIST_HEAD(rfc_dev_list);
static DEFINE_SPINLOCK(dev_list_lock); /* spinlock for device list */
-struct rfc_obj_info g_cb = {0};
+static struct rfc_obj_info g_cb = {0};
struct rfc_dev *net_to_rfc(struct net_device *ndev)
{
@@ -85,7 +85,7 @@ struct rfc_dev *get_rfc_by_name(const char *name)
return found;
}
-struct rfc_dev *get_rfc_by_objname(const char *objname)
+static struct rfc_dev *get_rfc_by_objname(const char *objname)
{
struct rfc_dev *rfc;
struct rfc_dev *found = NULL;
@@ -139,7 +139,7 @@ static int find_sgl_length(struct sg_table *rsg)
return length;
}
-void print_sgl(struct sg_table *rsg)
+static void print_sgl(struct sg_table *rsg)
{
struct scatterlist *sgl = rsg->sgl, *tmpsg;
int i = 0;
@@ -227,7 +227,7 @@ int rfc_send(struct rfc_dev *rfc,
}
-int rfc_send_data_free(void *data, struct sg_table *rsg)
+static int rfc_send_data_free(void *data, struct sg_table *rsg)
{
struct rfc_obj_info *obj = (struct rfc_obj_info *)data;
@@ -41,7 +41,7 @@
#include "rfc_queue.h"
#include "rfc_task.h"
-char *rfc_qp_state_name[] = {
+static char *rfc_qp_state_name[] = {
[QP_STATE_RESET] = "RESET",
[QP_STATE_INIT] = "INIT",
[QP_STATE_READY] = "READY",
@@ -699,7 +699,7 @@ static void build_rdma_network_hdr(union rdma_network_hdr *hdr,
iph->ttl = 50;
}
-struct page *ackpage;
+static struct page *ackpage;
static enum resp_states rfc_resp_get_sgl(struct rfc_qp *qp,
struct rfc_obj_info *obj,
@@ -78,7 +78,7 @@ static DEFINE_SPINLOCK(rfc_req_lock);
#define RFC_SKB_SECTOR 0xa5
static u8 *dev_data;
-struct work_struct rfcwork;
+static struct work_struct rfcwork;
struct rfc_data {
struct sg_table *sg_head;
@@ -90,7 +90,7 @@ struct rfc_data {
struct rdma_hdr_common *rdma_hdr;
};
-struct list_head rfc_obj_list;
+static struct list_head rfc_obj_list;
static struct workqueue_struct *rfcblk_work;
@@ -112,7 +112,7 @@ static struct rfcblk_device
struct gendisk *rfcblk_disk;
} rfcblk_dev;
-struct list_head rdma_dev_list;
+static struct list_head rdma_dev_list;
struct list_rdma_ip_dev {
char node[264];
u32 ipaddr;
@@ -1708,7 +1708,7 @@ EXPORT_SYMBOL_GPL(nvmet_fc_rcv_ls_req);
*/
//extern struct sg_table *rxe_get_target_sgl(void *buf, int len);
-u64 (*get_rdma_sgl_fn)(void *buf, int len, struct sg_table **rsgp,
+static u64 (*get_rdma_sgl_fn)(void *buf, int len, struct sg_table **rsgp,
char *name) = NULL;
/*int fc_register_rdma_alloc_tgt_pgs(u64 (*fc_rdma_sgl_fn)(void *buf, int len,
struct sg_table **rsgp, char *name));*/
@@ -36,7 +36,7 @@ static inline u32 nvmet_rw_len(struct nvmet_req *req)
return ((u32)le16_to_cpu(req->cmd->rw.length) + 1) <<
req->ns->blksize_shift;
}
-u64 (*set_fc_rdma_done_fn)(void *buf, int len, char *name) = NULL;
+static u64 (*set_fc_rdma_done_fn)(void *buf, int len, char *name) = NULL;
int fc_register_rdma_dma_done(u64 (*fc_rdma_dma_done_fn)(void *buf,
int len, char *name))
Fixes: 7b62371a9e64 ("RDMA over Fibre Channel") Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> --- infiniband/sw/rfc/rfc_mr.c | 2 +- infiniband/sw/rfc/rfc_net.c | 6 +++--- infiniband/sw/rfc/rfc_obj.c | 8 ++++---- infiniband/sw/rfc/rfc_qp.c | 2 +- infiniband/sw/rfc/rfc_resp.c | 2 +- infiniband/sw/rfc/rfc_tb.c | 6 +++--- nvme/target/fc.c | 2 +- nvme/target/io-cmd.c | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html