Commit 1de751ca authored by Jason Gunthorpe's avatar Jason Gunthorpe

RDMA/uverbs: Make all the method functions in uverbs_cmd static

Now that we use struct uverbs_uapi to link the method functions to the
dispatcher there is no reason to have them be extern symbols.
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
parent d120c3c9
...@@ -294,63 +294,4 @@ extern const struct uverbs_object_def UVERBS_OBJECT(UVERBS_OBJECT_FLOW_ACTION); ...@@ -294,63 +294,4 @@ extern const struct uverbs_object_def UVERBS_OBJECT(UVERBS_OBJECT_FLOW_ACTION);
extern const struct uverbs_object_def UVERBS_OBJECT(UVERBS_OBJECT_DM); extern const struct uverbs_object_def UVERBS_OBJECT(UVERBS_OBJECT_DM);
extern const struct uverbs_object_def UVERBS_OBJECT(UVERBS_OBJECT_COUNTERS); extern const struct uverbs_object_def UVERBS_OBJECT(UVERBS_OBJECT_COUNTERS);
#define IB_UVERBS_DECLARE_CMD(name) \
ssize_t ib_uverbs_##name(struct ib_uverbs_file *file, \
const char __user *buf, int in_len, \
int out_len)
IB_UVERBS_DECLARE_CMD(get_context);
IB_UVERBS_DECLARE_CMD(query_device);
IB_UVERBS_DECLARE_CMD(query_port);
IB_UVERBS_DECLARE_CMD(alloc_pd);
IB_UVERBS_DECLARE_CMD(dealloc_pd);
IB_UVERBS_DECLARE_CMD(reg_mr);
IB_UVERBS_DECLARE_CMD(rereg_mr);
IB_UVERBS_DECLARE_CMD(dereg_mr);
IB_UVERBS_DECLARE_CMD(alloc_mw);
IB_UVERBS_DECLARE_CMD(dealloc_mw);
IB_UVERBS_DECLARE_CMD(create_comp_channel);
IB_UVERBS_DECLARE_CMD(create_cq);
IB_UVERBS_DECLARE_CMD(resize_cq);
IB_UVERBS_DECLARE_CMD(poll_cq);
IB_UVERBS_DECLARE_CMD(req_notify_cq);
IB_UVERBS_DECLARE_CMD(destroy_cq);
IB_UVERBS_DECLARE_CMD(create_qp);
IB_UVERBS_DECLARE_CMD(open_qp);
IB_UVERBS_DECLARE_CMD(query_qp);
IB_UVERBS_DECLARE_CMD(modify_qp);
IB_UVERBS_DECLARE_CMD(destroy_qp);
IB_UVERBS_DECLARE_CMD(post_send);
IB_UVERBS_DECLARE_CMD(post_recv);
IB_UVERBS_DECLARE_CMD(post_srq_recv);
IB_UVERBS_DECLARE_CMD(create_ah);
IB_UVERBS_DECLARE_CMD(destroy_ah);
IB_UVERBS_DECLARE_CMD(attach_mcast);
IB_UVERBS_DECLARE_CMD(detach_mcast);
IB_UVERBS_DECLARE_CMD(create_srq);
IB_UVERBS_DECLARE_CMD(modify_srq);
IB_UVERBS_DECLARE_CMD(query_srq);
IB_UVERBS_DECLARE_CMD(destroy_srq);
IB_UVERBS_DECLARE_CMD(create_xsrq);
IB_UVERBS_DECLARE_CMD(open_xrcd);
IB_UVERBS_DECLARE_CMD(close_xrcd);
#define IB_UVERBS_DECLARE_EX_CMD(name) \
int ib_uverbs_ex_##name(struct ib_uverbs_file *file, \
struct ib_udata *ucore, \
struct ib_udata *uhw)
IB_UVERBS_DECLARE_EX_CMD(create_flow);
IB_UVERBS_DECLARE_EX_CMD(destroy_flow);
IB_UVERBS_DECLARE_EX_CMD(query_device);
IB_UVERBS_DECLARE_EX_CMD(create_cq);
IB_UVERBS_DECLARE_EX_CMD(create_qp);
IB_UVERBS_DECLARE_EX_CMD(create_wq);
IB_UVERBS_DECLARE_EX_CMD(modify_wq);
IB_UVERBS_DECLARE_EX_CMD(destroy_wq);
IB_UVERBS_DECLARE_EX_CMD(create_rwq_ind_table);
IB_UVERBS_DECLARE_EX_CMD(destroy_rwq_ind_table);
IB_UVERBS_DECLARE_EX_CMD(modify_qp);
IB_UVERBS_DECLARE_EX_CMD(modify_cq);
#endif /* UVERBS_H */ #endif /* UVERBS_H */
...@@ -65,9 +65,9 @@ _ib_uverbs_lookup_comp_file(s32 fd, struct ib_uverbs_file *ufile) ...@@ -65,9 +65,9 @@ _ib_uverbs_lookup_comp_file(s32 fd, struct ib_uverbs_file *ufile)
#define ib_uverbs_lookup_comp_file(_fd, _ufile) \ #define ib_uverbs_lookup_comp_file(_fd, _ufile) \
_ib_uverbs_lookup_comp_file((_fd)*typecheck(s32, _fd), _ufile) _ib_uverbs_lookup_comp_file((_fd)*typecheck(s32, _fd), _ufile)
ssize_t ib_uverbs_get_context(struct ib_uverbs_file *file, static ssize_t ib_uverbs_get_context(struct ib_uverbs_file *file,
const char __user *buf, const char __user *buf, int in_len,
int in_len, int out_len) int out_len)
{ {
struct ib_uverbs_get_context cmd; struct ib_uverbs_get_context cmd;
struct ib_uverbs_get_context_resp resp; struct ib_uverbs_get_context_resp resp;
...@@ -224,9 +224,9 @@ static void copy_query_dev_fields(struct ib_ucontext *ucontext, ...@@ -224,9 +224,9 @@ static void copy_query_dev_fields(struct ib_ucontext *ucontext,
resp->phys_port_cnt = ib_dev->phys_port_cnt; resp->phys_port_cnt = ib_dev->phys_port_cnt;
} }
ssize_t ib_uverbs_query_device(struct ib_uverbs_file *file, static ssize_t ib_uverbs_query_device(struct ib_uverbs_file *file,
const char __user *buf, const char __user *buf, int in_len,
int in_len, int out_len) int out_len)
{ {
struct ib_uverbs_query_device cmd; struct ib_uverbs_query_device cmd;
struct ib_uverbs_query_device_resp resp; struct ib_uverbs_query_device_resp resp;
...@@ -272,9 +272,9 @@ static u32 make_port_cap_flags(const struct ib_port_attr *attr) ...@@ -272,9 +272,9 @@ static u32 make_port_cap_flags(const struct ib_port_attr *attr)
return res; return res;
} }
ssize_t ib_uverbs_query_port(struct ib_uverbs_file *file, static ssize_t ib_uverbs_query_port(struct ib_uverbs_file *file,
const char __user *buf, const char __user *buf, int in_len,
int in_len, int out_len) int out_len)
{ {
struct ib_uverbs_query_port cmd; struct ib_uverbs_query_port cmd;
struct ib_uverbs_query_port_resp resp; struct ib_uverbs_query_port_resp resp;
...@@ -337,9 +337,9 @@ ssize_t ib_uverbs_query_port(struct ib_uverbs_file *file, ...@@ -337,9 +337,9 @@ ssize_t ib_uverbs_query_port(struct ib_uverbs_file *file,
return in_len; return in_len;
} }
ssize_t ib_uverbs_alloc_pd(struct ib_uverbs_file *file, static ssize_t ib_uverbs_alloc_pd(struct ib_uverbs_file *file,
const char __user *buf, const char __user *buf, int in_len,
int in_len, int out_len) int out_len)
{ {
struct ib_uverbs_alloc_pd cmd; struct ib_uverbs_alloc_pd cmd;
struct ib_uverbs_alloc_pd_resp resp; struct ib_uverbs_alloc_pd_resp resp;
...@@ -396,9 +396,9 @@ ssize_t ib_uverbs_alloc_pd(struct ib_uverbs_file *file, ...@@ -396,9 +396,9 @@ ssize_t ib_uverbs_alloc_pd(struct ib_uverbs_file *file,
return ret; return ret;
} }
ssize_t ib_uverbs_dealloc_pd(struct ib_uverbs_file *file, static ssize_t ib_uverbs_dealloc_pd(struct ib_uverbs_file *file,
const char __user *buf, const char __user *buf, int in_len,
int in_len, int out_len) int out_len)
{ {
struct ib_uverbs_dealloc_pd cmd; struct ib_uverbs_dealloc_pd cmd;
...@@ -494,7 +494,7 @@ static void xrcd_table_delete(struct ib_uverbs_device *dev, ...@@ -494,7 +494,7 @@ static void xrcd_table_delete(struct ib_uverbs_device *dev,
} }
} }
ssize_t ib_uverbs_open_xrcd(struct ib_uverbs_file *file, static ssize_t ib_uverbs_open_xrcd(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -615,7 +615,7 @@ ssize_t ib_uverbs_open_xrcd(struct ib_uverbs_file *file, ...@@ -615,7 +615,7 @@ ssize_t ib_uverbs_open_xrcd(struct ib_uverbs_file *file,
return ret; return ret;
} }
ssize_t ib_uverbs_close_xrcd(struct ib_uverbs_file *file, static ssize_t ib_uverbs_close_xrcd(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -653,9 +653,8 @@ int ib_uverbs_dealloc_xrcd(struct ib_uobject *uobject, ...@@ -653,9 +653,8 @@ int ib_uverbs_dealloc_xrcd(struct ib_uobject *uobject,
return ret; return ret;
} }
ssize_t ib_uverbs_reg_mr(struct ib_uverbs_file *file, static ssize_t ib_uverbs_reg_mr(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len, int out_len)
int out_len)
{ {
struct ib_uverbs_reg_mr cmd; struct ib_uverbs_reg_mr cmd;
struct ib_uverbs_reg_mr_resp resp; struct ib_uverbs_reg_mr_resp resp;
...@@ -745,7 +744,7 @@ ssize_t ib_uverbs_reg_mr(struct ib_uverbs_file *file, ...@@ -745,7 +744,7 @@ ssize_t ib_uverbs_reg_mr(struct ib_uverbs_file *file,
return ret; return ret;
} }
ssize_t ib_uverbs_rereg_mr(struct ib_uverbs_file *file, static ssize_t ib_uverbs_rereg_mr(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -836,7 +835,7 @@ ssize_t ib_uverbs_rereg_mr(struct ib_uverbs_file *file, ...@@ -836,7 +835,7 @@ ssize_t ib_uverbs_rereg_mr(struct ib_uverbs_file *file,
return ret; return ret;
} }
ssize_t ib_uverbs_dereg_mr(struct ib_uverbs_file *file, static ssize_t ib_uverbs_dereg_mr(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -849,7 +848,7 @@ ssize_t ib_uverbs_dereg_mr(struct ib_uverbs_file *file, ...@@ -849,7 +848,7 @@ ssize_t ib_uverbs_dereg_mr(struct ib_uverbs_file *file,
in_len); in_len);
} }
ssize_t ib_uverbs_alloc_mw(struct ib_uverbs_file *file, static ssize_t ib_uverbs_alloc_mw(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -917,7 +916,7 @@ ssize_t ib_uverbs_alloc_mw(struct ib_uverbs_file *file, ...@@ -917,7 +916,7 @@ ssize_t ib_uverbs_alloc_mw(struct ib_uverbs_file *file,
return ret; return ret;
} }
ssize_t ib_uverbs_dealloc_mw(struct ib_uverbs_file *file, static ssize_t ib_uverbs_dealloc_mw(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -930,7 +929,7 @@ ssize_t ib_uverbs_dealloc_mw(struct ib_uverbs_file *file, ...@@ -930,7 +929,7 @@ ssize_t ib_uverbs_dealloc_mw(struct ib_uverbs_file *file,
in_len); in_len);
} }
ssize_t ib_uverbs_create_comp_channel(struct ib_uverbs_file *file, static ssize_t ib_uverbs_create_comp_channel(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -1074,7 +1073,7 @@ static int ib_uverbs_create_cq_cb(struct ib_uverbs_file *file, ...@@ -1074,7 +1073,7 @@ static int ib_uverbs_create_cq_cb(struct ib_uverbs_file *file,
return 0; return 0;
} }
ssize_t ib_uverbs_create_cq(struct ib_uverbs_file *file, static ssize_t ib_uverbs_create_cq(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -1127,9 +1126,8 @@ static int ib_uverbs_ex_create_cq_cb(struct ib_uverbs_file *file, ...@@ -1127,9 +1126,8 @@ static int ib_uverbs_ex_create_cq_cb(struct ib_uverbs_file *file,
return 0; return 0;
} }
int ib_uverbs_ex_create_cq(struct ib_uverbs_file *file, static int ib_uverbs_ex_create_cq(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore, struct ib_udata *uhw)
struct ib_udata *uhw)
{ {
struct ib_uverbs_ex_create_cq_resp resp; struct ib_uverbs_ex_create_cq_resp resp;
struct ib_uverbs_ex_create_cq cmd; struct ib_uverbs_ex_create_cq cmd;
...@@ -1160,7 +1158,7 @@ int ib_uverbs_ex_create_cq(struct ib_uverbs_file *file, ...@@ -1160,7 +1158,7 @@ int ib_uverbs_ex_create_cq(struct ib_uverbs_file *file,
return PTR_ERR_OR_ZERO(obj); return PTR_ERR_OR_ZERO(obj);
} }
ssize_t ib_uverbs_resize_cq(struct ib_uverbs_file *file, static ssize_t ib_uverbs_resize_cq(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -1227,7 +1225,7 @@ static int copy_wc_to_user(struct ib_device *ib_dev, void __user *dest, ...@@ -1227,7 +1225,7 @@ static int copy_wc_to_user(struct ib_device *ib_dev, void __user *dest,
return 0; return 0;
} }
ssize_t ib_uverbs_poll_cq(struct ib_uverbs_file *file, static ssize_t ib_uverbs_poll_cq(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -1278,7 +1276,7 @@ ssize_t ib_uverbs_poll_cq(struct ib_uverbs_file *file, ...@@ -1278,7 +1276,7 @@ ssize_t ib_uverbs_poll_cq(struct ib_uverbs_file *file,
return ret; return ret;
} }
ssize_t ib_uverbs_req_notify_cq(struct ib_uverbs_file *file, static ssize_t ib_uverbs_req_notify_cq(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -1300,7 +1298,7 @@ ssize_t ib_uverbs_req_notify_cq(struct ib_uverbs_file *file, ...@@ -1300,7 +1298,7 @@ ssize_t ib_uverbs_req_notify_cq(struct ib_uverbs_file *file,
return in_len; return in_len;
} }
ssize_t ib_uverbs_destroy_cq(struct ib_uverbs_file *file, static ssize_t ib_uverbs_destroy_cq(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -1615,7 +1613,7 @@ static int ib_uverbs_create_qp_cb(struct ib_uverbs_file *file, ...@@ -1615,7 +1613,7 @@ static int ib_uverbs_create_qp_cb(struct ib_uverbs_file *file,
return 0; return 0;
} }
ssize_t ib_uverbs_create_qp(struct ib_uverbs_file *file, static ssize_t ib_uverbs_create_qp(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -1675,9 +1673,8 @@ static int ib_uverbs_ex_create_qp_cb(struct ib_uverbs_file *file, ...@@ -1675,9 +1673,8 @@ static int ib_uverbs_ex_create_qp_cb(struct ib_uverbs_file *file,
return 0; return 0;
} }
int ib_uverbs_ex_create_qp(struct ib_uverbs_file *file, static int ib_uverbs_ex_create_qp(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore, struct ib_udata *uhw)
struct ib_udata *uhw)
{ {
struct ib_uverbs_ex_create_qp_resp resp; struct ib_uverbs_ex_create_qp_resp resp;
struct ib_uverbs_ex_create_qp cmd = {0}; struct ib_uverbs_ex_create_qp cmd = {0};
...@@ -1711,8 +1708,9 @@ int ib_uverbs_ex_create_qp(struct ib_uverbs_file *file, ...@@ -1711,8 +1708,9 @@ int ib_uverbs_ex_create_qp(struct ib_uverbs_file *file,
return 0; return 0;
} }
ssize_t ib_uverbs_open_qp(struct ib_uverbs_file *file, static ssize_t ib_uverbs_open_qp(struct ib_uverbs_file *file,
const char __user *buf, int in_len, int out_len) const char __user *buf, int in_len,
int out_len)
{ {
struct ib_uverbs_open_qp cmd; struct ib_uverbs_open_qp cmd;
struct ib_uverbs_create_qp_resp resp; struct ib_uverbs_create_qp_resp resp;
...@@ -1818,7 +1816,7 @@ static void copy_ah_attr_to_uverbs(struct ib_uverbs_qp_dest *uverb_attr, ...@@ -1818,7 +1816,7 @@ static void copy_ah_attr_to_uverbs(struct ib_uverbs_qp_dest *uverb_attr,
uverb_attr->port_num = rdma_ah_get_port_num(rdma_attr); uverb_attr->port_num = rdma_ah_get_port_num(rdma_attr);
} }
ssize_t ib_uverbs_query_qp(struct ib_uverbs_file *file, static ssize_t ib_uverbs_query_qp(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -2091,7 +2089,7 @@ static int modify_qp(struct ib_uverbs_file *file, ...@@ -2091,7 +2089,7 @@ static int modify_qp(struct ib_uverbs_file *file,
return ret; return ret;
} }
ssize_t ib_uverbs_modify_qp(struct ib_uverbs_file *file, static ssize_t ib_uverbs_modify_qp(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -2117,9 +2115,8 @@ ssize_t ib_uverbs_modify_qp(struct ib_uverbs_file *file, ...@@ -2117,9 +2115,8 @@ ssize_t ib_uverbs_modify_qp(struct ib_uverbs_file *file,
return in_len; return in_len;
} }
int ib_uverbs_ex_modify_qp(struct ib_uverbs_file *file, static int ib_uverbs_ex_modify_qp(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore, struct ib_udata *uhw)
struct ib_udata *uhw)
{ {
struct ib_uverbs_ex_modify_qp cmd = {}; struct ib_uverbs_ex_modify_qp cmd = {};
int ret; int ret;
...@@ -2152,7 +2149,7 @@ int ib_uverbs_ex_modify_qp(struct ib_uverbs_file *file, ...@@ -2152,7 +2149,7 @@ int ib_uverbs_ex_modify_qp(struct ib_uverbs_file *file,
return ret; return ret;
} }
ssize_t ib_uverbs_destroy_qp(struct ib_uverbs_file *file, static ssize_t ib_uverbs_destroy_qp(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -2190,7 +2187,7 @@ static void *alloc_wr(size_t wr_size, __u32 num_sge) ...@@ -2190,7 +2187,7 @@ static void *alloc_wr(size_t wr_size, __u32 num_sge)
num_sge * sizeof (struct ib_sge), GFP_KERNEL); num_sge * sizeof (struct ib_sge), GFP_KERNEL);
} }
ssize_t ib_uverbs_post_send(struct ib_uverbs_file *file, static ssize_t ib_uverbs_post_send(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -2470,7 +2467,7 @@ static struct ib_recv_wr *ib_uverbs_unmarshall_recv(const char __user *buf, ...@@ -2470,7 +2467,7 @@ static struct ib_recv_wr *ib_uverbs_unmarshall_recv(const char __user *buf,
return ERR_PTR(ret); return ERR_PTR(ret);
} }
ssize_t ib_uverbs_post_recv(struct ib_uverbs_file *file, static ssize_t ib_uverbs_post_recv(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -2519,7 +2516,7 @@ ssize_t ib_uverbs_post_recv(struct ib_uverbs_file *file, ...@@ -2519,7 +2516,7 @@ ssize_t ib_uverbs_post_recv(struct ib_uverbs_file *file,
return ret ? ret : in_len; return ret ? ret : in_len;
} }
ssize_t ib_uverbs_post_srq_recv(struct ib_uverbs_file *file, static ssize_t ib_uverbs_post_srq_recv(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -2569,7 +2566,7 @@ ssize_t ib_uverbs_post_srq_recv(struct ib_uverbs_file *file, ...@@ -2569,7 +2566,7 @@ ssize_t ib_uverbs_post_srq_recv(struct ib_uverbs_file *file,
return ret ? ret : in_len; return ret ? ret : in_len;
} }
ssize_t ib_uverbs_create_ah(struct ib_uverbs_file *file, static ssize_t ib_uverbs_create_ah(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -2658,8 +2655,9 @@ ssize_t ib_uverbs_create_ah(struct ib_uverbs_file *file, ...@@ -2658,8 +2655,9 @@ ssize_t ib_uverbs_create_ah(struct ib_uverbs_file *file,
return ret; return ret;
} }
ssize_t ib_uverbs_destroy_ah(struct ib_uverbs_file *file, static ssize_t ib_uverbs_destroy_ah(struct ib_uverbs_file *file,
const char __user *buf, int in_len, int out_len) const char __user *buf, int in_len,
int out_len)
{ {
struct ib_uverbs_destroy_ah cmd; struct ib_uverbs_destroy_ah cmd;
...@@ -2670,7 +2668,7 @@ ssize_t ib_uverbs_destroy_ah(struct ib_uverbs_file *file, ...@@ -2670,7 +2668,7 @@ ssize_t ib_uverbs_destroy_ah(struct ib_uverbs_file *file,
in_len); in_len);
} }
ssize_t ib_uverbs_attach_mcast(struct ib_uverbs_file *file, static ssize_t ib_uverbs_attach_mcast(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -2719,7 +2717,7 @@ ssize_t ib_uverbs_attach_mcast(struct ib_uverbs_file *file, ...@@ -2719,7 +2717,7 @@ ssize_t ib_uverbs_attach_mcast(struct ib_uverbs_file *file,
return ret ? ret : in_len; return ret ? ret : in_len;
} }
ssize_t ib_uverbs_detach_mcast(struct ib_uverbs_file *file, static ssize_t ib_uverbs_detach_mcast(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -3081,9 +3079,8 @@ static int kern_spec_to_ib_spec(struct ib_uverbs_file *ufile, ...@@ -3081,9 +3079,8 @@ static int kern_spec_to_ib_spec(struct ib_uverbs_file *ufile,
return kern_spec_to_ib_spec_filter(kern_spec, ib_spec); return kern_spec_to_ib_spec_filter(kern_spec, ib_spec);
} }
int ib_uverbs_ex_create_wq(struct ib_uverbs_file *file, static int ib_uverbs_ex_create_wq(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore, struct ib_udata *uhw)
struct ib_udata *uhw)
{ {
struct ib_uverbs_ex_create_wq cmd = {}; struct ib_uverbs_ex_create_wq cmd = {};
struct ib_uverbs_ex_create_wq_resp resp = {}; struct ib_uverbs_ex_create_wq_resp resp = {};
...@@ -3197,9 +3194,8 @@ int ib_uverbs_ex_create_wq(struct ib_uverbs_file *file, ...@@ -3197,9 +3194,8 @@ int ib_uverbs_ex_create_wq(struct ib_uverbs_file *file,
return err; return err;
} }
int ib_uverbs_ex_destroy_wq(struct ib_uverbs_file *file, static int ib_uverbs_ex_destroy_wq(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore, struct ib_udata *uhw)
struct ib_udata *uhw)
{ {
struct ib_uverbs_ex_destroy_wq cmd = {}; struct ib_uverbs_ex_destroy_wq cmd = {};
struct ib_uverbs_ex_destroy_wq_resp resp = {}; struct ib_uverbs_ex_destroy_wq_resp resp = {};
...@@ -3243,9 +3239,8 @@ int ib_uverbs_ex_destroy_wq(struct ib_uverbs_file *file, ...@@ -3243,9 +3239,8 @@ int ib_uverbs_ex_destroy_wq(struct ib_uverbs_file *file,
return ib_copy_to_udata(ucore, &resp, resp.response_length); return ib_copy_to_udata(ucore, &resp, resp.response_length);
} }
int ib_uverbs_ex_modify_wq(struct ib_uverbs_file *file, static int ib_uverbs_ex_modify_wq(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore, struct ib_udata *uhw)
struct ib_udata *uhw)
{ {
struct ib_uverbs_ex_modify_wq cmd = {}; struct ib_uverbs_ex_modify_wq cmd = {};
struct ib_wq *wq; struct ib_wq *wq;
...@@ -3292,7 +3287,7 @@ int ib_uverbs_ex_modify_wq(struct ib_uverbs_file *file, ...@@ -3292,7 +3287,7 @@ int ib_uverbs_ex_modify_wq(struct ib_uverbs_file *file,
return ret; return ret;
} }
int ib_uverbs_ex_create_rwq_ind_table(struct ib_uverbs_file *file, static int ib_uverbs_ex_create_rwq_ind_table(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore,
struct ib_udata *uhw) struct ib_udata *uhw)
{ {
...@@ -3435,7 +3430,7 @@ int ib_uverbs_ex_create_rwq_ind_table(struct ib_uverbs_file *file, ...@@ -3435,7 +3430,7 @@ int ib_uverbs_ex_create_rwq_ind_table(struct ib_uverbs_file *file,
return err; return err;
} }
int ib_uverbs_ex_destroy_rwq_ind_table(struct ib_uverbs_file *file, static int ib_uverbs_ex_destroy_rwq_ind_table(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore,
struct ib_udata *uhw) struct ib_udata *uhw)
{ {
...@@ -3464,7 +3459,7 @@ int ib_uverbs_ex_destroy_rwq_ind_table(struct ib_uverbs_file *file, ...@@ -3464,7 +3459,7 @@ int ib_uverbs_ex_destroy_rwq_ind_table(struct ib_uverbs_file *file,
cmd.ind_tbl_handle, file, 0); cmd.ind_tbl_handle, file, 0);
} }
int ib_uverbs_ex_create_flow(struct ib_uverbs_file *file, static int ib_uverbs_ex_create_flow(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore,
struct ib_udata *uhw) struct ib_udata *uhw)
{ {
...@@ -3642,7 +3637,7 @@ int ib_uverbs_ex_create_flow(struct ib_uverbs_file *file, ...@@ -3642,7 +3637,7 @@ int ib_uverbs_ex_create_flow(struct ib_uverbs_file *file,
return err; return err;
} }
int ib_uverbs_ex_destroy_flow(struct ib_uverbs_file *file, static int ib_uverbs_ex_destroy_flow(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore,
struct ib_udata *uhw) struct ib_udata *uhw)
{ {
...@@ -3799,7 +3794,7 @@ static int __uverbs_create_xsrq(struct ib_uverbs_file *file, ...@@ -3799,7 +3794,7 @@ static int __uverbs_create_xsrq(struct ib_uverbs_file *file,
return ret; return ret;
} }
ssize_t ib_uverbs_create_srq(struct ib_uverbs_file *file, static ssize_t ib_uverbs_create_srq(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -3836,8 +3831,9 @@ ssize_t ib_uverbs_create_srq(struct ib_uverbs_file *file, ...@@ -3836,8 +3831,9 @@ ssize_t ib_uverbs_create_srq(struct ib_uverbs_file *file,
return in_len; return in_len;
} }
ssize_t ib_uverbs_create_xsrq(struct ib_uverbs_file *file, static ssize_t ib_uverbs_create_xsrq(struct ib_uverbs_file *file,
const char __user *buf, int in_len, int out_len) const char __user *buf, int in_len,
int out_len)
{ {
struct ib_uverbs_create_xsrq cmd; struct ib_uverbs_create_xsrq cmd;
struct ib_uverbs_create_srq_resp resp; struct ib_uverbs_create_srq_resp resp;
...@@ -3862,7 +3858,7 @@ ssize_t ib_uverbs_create_xsrq(struct ib_uverbs_file *file, ...@@ -3862,7 +3858,7 @@ ssize_t ib_uverbs_create_xsrq(struct ib_uverbs_file *file,
return in_len; return in_len;
} }
ssize_t ib_uverbs_modify_srq(struct ib_uverbs_file *file, static ssize_t ib_uverbs_modify_srq(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -3892,9 +3888,9 @@ ssize_t ib_uverbs_modify_srq(struct ib_uverbs_file *file, ...@@ -3892,9 +3888,9 @@ ssize_t ib_uverbs_modify_srq(struct ib_uverbs_file *file,
return ret ? ret : in_len; return ret ? ret : in_len;
} }
ssize_t ib_uverbs_query_srq(struct ib_uverbs_file *file, static ssize_t ib_uverbs_query_srq(struct ib_uverbs_file *file,
const char __user *buf, const char __user *buf, int in_len,
int in_len, int out_len) int out_len)
{ {
struct ib_uverbs_query_srq cmd; struct ib_uverbs_query_srq cmd;
struct ib_uverbs_query_srq_resp resp; struct ib_uverbs_query_srq_resp resp;
...@@ -3931,7 +3927,7 @@ ssize_t ib_uverbs_query_srq(struct ib_uverbs_file *file, ...@@ -3931,7 +3927,7 @@ ssize_t ib_uverbs_query_srq(struct ib_uverbs_file *file,
return in_len; return in_len;
} }
ssize_t ib_uverbs_destroy_srq(struct ib_uverbs_file *file, static ssize_t ib_uverbs_destroy_srq(struct ib_uverbs_file *file,
const char __user *buf, int in_len, const char __user *buf, int in_len,
int out_len) int out_len)
{ {
...@@ -3959,7 +3955,7 @@ ssize_t ib_uverbs_destroy_srq(struct ib_uverbs_file *file, ...@@ -3959,7 +3955,7 @@ ssize_t ib_uverbs_destroy_srq(struct ib_uverbs_file *file,
return in_len; return in_len;
} }
int ib_uverbs_ex_query_device(struct ib_uverbs_file *file, static int ib_uverbs_ex_query_device(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore,
struct ib_udata *uhw) struct ib_udata *uhw)
{ {
...@@ -4086,9 +4082,8 @@ int ib_uverbs_ex_query_device(struct ib_uverbs_file *file, ...@@ -4086,9 +4082,8 @@ int ib_uverbs_ex_query_device(struct ib_uverbs_file *file,
return err; return err;
} }
int ib_uverbs_ex_modify_cq(struct ib_uverbs_file *file, static int ib_uverbs_ex_modify_cq(struct ib_uverbs_file *file,
struct ib_udata *ucore, struct ib_udata *ucore, struct ib_udata *uhw)
struct ib_udata *uhw)
{ {
struct ib_uverbs_ex_modify_cq cmd = {}; struct ib_uverbs_ex_modify_cq cmd = {};
struct ib_cq *cq; struct ib_cq *cq;
......
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