From: Leon Romanovsky Date: Wed, 31 Jan 2018 08:11:48 +0000 (+0200) Subject: rdma: Make visible the number of arguments X-Git-Tag: v4.16.0~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f4892e2c8d4fb22118713e0c83290b352fe0e34;p=thirdparty%2Fiproute2.git rdma: Make visible the number of arguments Signed-off-by: Leon Romanovsky Signed-off-by: Stephen Hemminger --- diff --git a/rdma/rdma.h b/rdma/rdma.h index cbd9aa89f..1b66ae048 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 b9c668a38..af2b374de 100644 --- a/rdma/utils.c +++ b/rdma/utils.c @@ -12,7 +12,7 @@ #include "rdma.h" #include -static int rd_argc(struct rd *rd) +int rd_argc(struct rd *rd) { return rd->argc; }