Message ID | 20180104070150.15625-3-leon@kernel.org |
---|---|
State | Changes Requested, archived |
Delegated to: | David Ahern |
Headers | show |
Series | RDMA resource tracking | expand |
diff --git a/rdma/rdma.h b/rdma/rdma.h index cbd9aa89..1b66ae04 100644 --- a/rdma/rdma.h +++ b/rdma/rdma.h @@ -74,6 +74,7 @@ int rd_exec_cmd(struct rd *rd, const struct rd_cmd *c, const char *str); int rd_exec_dev(struct rd *rd, int (*cb)(struct rd *rd)); int rd_exec_link(struct rd *rd, int (*cb)(struct rd *rd), bool strict_port); void rd_free(struct rd *rd); +int rd_argc(struct rd *rd); /* * Device manipulation diff --git a/rdma/utils.c b/rdma/utils.c index b9c668a3..af2b374d 100644 --- a/rdma/utils.c +++ b/rdma/utils.c @@ -12,7 +12,7 @@ #include "rdma.h" #include <ctype.h> -static int rd_argc(struct rd *rd) +int rd_argc(struct rd *rd) { return rd->argc; }