diff options
author | Nelson Elhage <nelhage@ksplice.com> | 2010-11-03 16:35:40 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-13 05:31:26 +0200 |
commit | 29ee67cbbaac453bea60fcf843e91b9cb3f49874 (patch) | |
tree | 517afa764d31e10d969806b45a1bfef6c325c16c | |
parent | 27957444d79357335093639f4781afffc8fd1a43 (diff) | |
download | lwn-29ee67cbbaac453bea60fcf843e91b9cb3f49874.tar.gz lwn-29ee67cbbaac453bea60fcf843e91b9cb3f49874.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: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | include/net/netlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h index 668ad04a9171..5074fd6dff2d 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), |