projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f1b9c9
)
netlink: Make nlmsg_find_attr take a const nlmsghdr*.
author
Nelson Elhage
<nelhage@ksplice.com>
Wed, 3 Nov 2010 16:35:40 +0000
(16:35 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 4 Nov 2010 19:26:34 +0000
(12:26 -0700)
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>
include/net/netlink.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/netlink.h
b/include/net/netlink.h
index f3b201d335b3532858c846a8aadb1672de80dce3..9801c55de5d64e5357006f9cfb129bce139572dd 100644
(file)
--- 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),