]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
netlink: Make nlmsg_find_attr take a const nlmsghdr*.
authorNelson Elhage <nelhage@ksplice.com>
Wed, 3 Nov 2010 16:35:40 +0000 (16:35 +0000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:47:18 +0000 (12:47 -0400)
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>
include/net/netlink.h

index 4fc05b58503eb4beab8fc20b3ab0b762f9f3d293..28c27d16c93683d3bbd398c228298bc52420839d 100644 (file)
@@ -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),