diff mbox

[1/2] netlink: Make nlmsg_find_attr take a const nlmsghdr*.

Message ID 1288838141-17871-1-git-send-email-nelhage@ksplice.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Nelson Elhage Nov. 4, 2010, 2:35 a.m. UTC
This will let us use it on a nlmsghdr stored inside a netlink_callback.

Signed-off-by: Nelson Elhage <nelhage@ksplice.com>
---
 include/net/netlink.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

David Miller Nov. 4, 2010, 7:26 p.m. UTC | #1
From: Nelson Elhage <nelhage@ksplice.com>
Date: Wed,  3 Nov 2010 22:35:40 -0400

> This will let us use it on a nlmsghdr stored inside a netlink_callback.
> 
> Signed-off-by: Nelson Elhage <nelhage@ksplice.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/net/netlink.h b/include/net/netlink.h
index f3b201d..9801c55 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),