summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNelson Elhage <nelhage@ksplice.com>2010-11-03 16:35:40 +0000
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-06-26 12:47:18 -0400
commit32e92da012e081ce4f741974761e92b215ff58b5 (patch)
treea52491cae95b54a982e9d29918134ab48fd43339 /include
parent02e6f1ee075a325dc9079b3dc143d898e924ce64 (diff)
downloadlinux-stable-32e92da012e081ce4f741974761e92b215ff58b5.tar.gz
linux-stable-32e92da012e081ce4f741974761e92b215ff58b5.tar.bz2
linux-stable-32e92da012e081ce4f741974761e92b215ff58b5.zip
netlink: Make nlmsg_find_attr take a const nlmsghdr*.
commit 6b8c92ba07287578718335ce409de8e8d7217e40 upstream. This will let us use it on a nlmsghdr stored inside a netlink_callback. Signed-off-by: Nelson Elhage <nelhage@ksplice.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/netlink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h
index 4fc05b58503e..28c27d16c936 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -384,7 +384,7 @@ static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen,
*
* Returns the first attribute which matches the specified type.
*/
-static inline struct nlattr *nlmsg_find_attr(struct nlmsghdr *nlh,
+static inline struct nlattr *nlmsg_find_attr(const struct nlmsghdr *nlh,
int hdrlen, int attrtype)
{
return nla_find(nlmsg_attrdata(nlh, hdrlen),