|
@@ -154,15 +154,12 @@ void *genlmsg_put(struct sk_buff *skb, u32 portid, u32 seq,
|
|
/**
|
|
/**
|
|
* genlmsg_nlhdr - Obtain netlink header from user specified header
|
|
* genlmsg_nlhdr - Obtain netlink header from user specified header
|
|
* @user_hdr: user header as returned from genlmsg_put()
|
|
* @user_hdr: user header as returned from genlmsg_put()
|
|
- * @family: generic netlink family
|
|
|
|
*
|
|
*
|
|
* Returns pointer to netlink header.
|
|
* Returns pointer to netlink header.
|
|
*/
|
|
*/
|
|
-static inline struct nlmsghdr *
|
|
|
|
-genlmsg_nlhdr(void *user_hdr, const struct genl_family *family)
|
|
|
|
|
|
+static inline struct nlmsghdr *genlmsg_nlhdr(void *user_hdr)
|
|
{
|
|
{
|
|
return (struct nlmsghdr *)((char *)user_hdr -
|
|
return (struct nlmsghdr *)((char *)user_hdr -
|
|
- family->hdrsize -
|
|
|
|
GENL_HDRLEN -
|
|
GENL_HDRLEN -
|
|
NLMSG_HDRLEN);
|
|
NLMSG_HDRLEN);
|
|
}
|
|
}
|
|
@@ -190,16 +187,14 @@ static inline int genlmsg_parse(const struct nlmsghdr *nlh,
|
|
* genl_dump_check_consistent - check if sequence is consistent and advertise if not
|
|
* genl_dump_check_consistent - check if sequence is consistent and advertise if not
|
|
* @cb: netlink callback structure that stores the sequence number
|
|
* @cb: netlink callback structure that stores the sequence number
|
|
* @user_hdr: user header as returned from genlmsg_put()
|
|
* @user_hdr: user header as returned from genlmsg_put()
|
|
- * @family: generic netlink family
|
|
|
|
*
|
|
*
|
|
* Cf. nl_dump_check_consistent(), this just provides a wrapper to make it
|
|
* Cf. nl_dump_check_consistent(), this just provides a wrapper to make it
|
|
* simpler to use with generic netlink.
|
|
* simpler to use with generic netlink.
|
|
*/
|
|
*/
|
|
static inline void genl_dump_check_consistent(struct netlink_callback *cb,
|
|
static inline void genl_dump_check_consistent(struct netlink_callback *cb,
|
|
- void *user_hdr,
|
|
|
|
- const struct genl_family *family)
|
|
|
|
|
|
+ void *user_hdr)
|
|
{
|
|
{
|
|
- nl_dump_check_consistent(cb, genlmsg_nlhdr(user_hdr, family));
|
|
|
|
|
|
+ nl_dump_check_consistent(cb, genlmsg_nlhdr(user_hdr));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|