]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
rdma: make rd_attr_check static
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Jun 2023 17:14:11 +0000 (10:14 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Jun 2023 16:33:34 +0000 (09:33 -0700)
Function defined and used in only one file.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/rdma.h
rdma/utils.c

index 8b421db807a65b1bb982c02e3e2714ed3ce92462..0bf77f4dcf9e31d8c0068217ea05b02222b0a360 100644 (file)
@@ -131,7 +131,6 @@ int rd_sendrecv_msg(struct rd *rd, unsigned int seq);
 void rd_prepare_msg(struct rd *rd, uint32_t cmd, uint32_t *seq, uint16_t flags);
 int rd_dev_init_cb(const struct nlmsghdr *nlh, void *data);
 int rd_attr_cb(const struct nlattr *attr, void *data);
-int rd_attr_check(const struct nlattr *attr, int *typep);
 
 /*
  * Print helpers
index a33ff420f8cba861c1995bf3c5ea79a76764d3dd..8a091c05e0a2df1d2a46c1d166906211d5c8db9d 100644 (file)
@@ -475,7 +475,7 @@ static const enum mnl_attr_data_type nldev_policy[RDMA_NLDEV_ATTR_MAX] = {
        [RDMA_NLDEV_ATTR_RES_RAW] = MNL_TYPE_BINARY,
 };
 
-int rd_attr_check(const struct nlattr *attr, int *typep)
+static int rd_attr_check(const struct nlattr *attr, int *typep)
 {
        int type;