diff options
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r-- | include/net/netlink.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h index 0bf325c29aff..7b510a9edb91 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h | |||
@@ -222,10 +222,10 @@ extern int nlmsg_notify(struct sock *sk, struct sk_buff *skb, | |||
222 | gfp_t flags); | 222 | gfp_t flags); |
223 | 223 | ||
224 | extern int nla_validate(struct nlattr *head, int len, int maxtype, | 224 | extern int nla_validate(struct nlattr *head, int len, int maxtype, |
225 | struct nla_policy *policy); | 225 | const struct nla_policy *policy); |
226 | extern int nla_parse(struct nlattr *tb[], int maxtype, | 226 | extern int nla_parse(struct nlattr *tb[], int maxtype, |
227 | struct nlattr *head, int len, | 227 | struct nlattr *head, int len, |
228 | struct nla_policy *policy); | 228 | const struct nla_policy *policy); |
229 | extern struct nlattr * nla_find(struct nlattr *head, int len, int attrtype); | 229 | extern struct nlattr * nla_find(struct nlattr *head, int len, int attrtype); |
230 | extern size_t nla_strlcpy(char *dst, const struct nlattr *nla, | 230 | extern size_t nla_strlcpy(char *dst, const struct nlattr *nla, |
231 | size_t dstsize); | 231 | size_t dstsize); |
@@ -360,7 +360,7 @@ static inline struct nlmsghdr *nlmsg_next(struct nlmsghdr *nlh, int *remaining) | |||
360 | */ | 360 | */ |
361 | static inline int nlmsg_parse(struct nlmsghdr *nlh, int hdrlen, | 361 | static inline int nlmsg_parse(struct nlmsghdr *nlh, int hdrlen, |
362 | struct nlattr *tb[], int maxtype, | 362 | struct nlattr *tb[], int maxtype, |
363 | struct nla_policy *policy) | 363 | const struct nla_policy *policy) |
364 | { | 364 | { |
365 | if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) | 365 | if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) |
366 | return -EINVAL; | 366 | return -EINVAL; |
@@ -392,7 +392,7 @@ static inline struct nlattr *nlmsg_find_attr(struct nlmsghdr *nlh, | |||
392 | * @policy: validation policy | 392 | * @policy: validation policy |
393 | */ | 393 | */ |
394 | static inline int nlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, | 394 | static inline int nlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, |
395 | struct nla_policy *policy) | 395 | const struct nla_policy *policy) |
396 | { | 396 | { |
397 | if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) | 397 | if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) |
398 | return -EINVAL; | 398 | return -EINVAL; |
@@ -729,7 +729,7 @@ static inline struct nlattr *nla_find_nested(struct nlattr *nla, int attrtype) | |||
729 | */ | 729 | */ |
730 | static inline int nla_parse_nested(struct nlattr *tb[], int maxtype, | 730 | static inline int nla_parse_nested(struct nlattr *tb[], int maxtype, |
731 | struct nlattr *nla, | 731 | struct nlattr *nla, |
732 | struct nla_policy *policy) | 732 | const struct nla_policy *policy) |
733 | { | 733 | { |
734 | return nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy); | 734 | return nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy); |
735 | } | 735 | } |
@@ -990,7 +990,7 @@ static inline int nla_nest_cancel(struct sk_buff *skb, struct nlattr *start) | |||
990 | * Returns 0 on success or a negative error code. | 990 | * Returns 0 on success or a negative error code. |
991 | */ | 991 | */ |
992 | static inline int nla_validate_nested(struct nlattr *start, int maxtype, | 992 | static inline int nla_validate_nested(struct nlattr *start, int maxtype, |
993 | struct nla_policy *policy) | 993 | const struct nla_policy *policy) |
994 | { | 994 | { |
995 | return nla_validate(nla_data(start), nla_len(start), maxtype, policy); | 995 | return nla_validate(nla_data(start), nla_len(start), maxtype, policy); |
996 | } | 996 | } |