diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2023-06-01 10:14:11 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2023-06-02 09:33:34 -0700 |
commit | 9c1f7f453f53ce75880f2de63021713211734735 (patch) | |
tree | 6125bff766e61407faae4b9f5041b611c608b088 | |
parent | c2c913b5bc89d49034d56e7ea620a0e949a4b419 (diff) | |
download | iproute2-9c1f7f453f53ce75880f2de63021713211734735.tar.gz |
rdma: make rd_attr_check static
Function defined and used in only one file.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r-- | rdma/rdma.h | 1 | ||||
-rw-r--r-- | rdma/utils.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/rdma/rdma.h b/rdma/rdma.h index 8b421db80..0bf77f4dc 100644 --- a/rdma/rdma.h +++ b/rdma/rdma.h @@ -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 diff --git a/rdma/utils.c b/rdma/utils.c index a33ff420f..8a091c05e 100644 --- a/rdma/utils.c +++ b/rdma/utils.c @@ -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; |