The patch titled Add genetlink utilities for payload length calculation has been added to the -mm tree. Its filename is add-genetlink-utilities-for-payload-length-calculation.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Add genetlink utilities for payload length calculation From: Balbir Singh <balbir@xxxxxxxxxx> Add two utility helper functions genlmsg_msg_size() and genlmsg_total_size(). These functions are derived from their netlink counterparts. Signed-off-by: Balbir Singh <balbir@xxxxxxxxxx> Cc: Jamal Hadi <hadi@xxxxxxxxxx> Cc: Shailabh Nagar <nagar@xxxxxxxxxxxxxx> Cc: Thomas Graf <tgraf@xxxxxxx> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> Cc: Jay Lan <jlan@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- include/net/genetlink.h | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+) diff -puN include/net/genetlink.h~add-genetlink-utilities-for-payload-length-calculation include/net/genetlink.h --- a/include/net/genetlink.h~add-genetlink-utilities-for-payload-length-calculation +++ a/include/net/genetlink.h @@ -171,4 +171,22 @@ static inline int genlmsg_len(const stru return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); } +/** + * genlmsg_msg_size - length of genetlink message not including padding + * @payload: length of message payload + */ +static inline int genlmsg_msg_size(int payload) +{ + return GENL_HDRLEN + payload; +} + +/** + * genlmsg_total_size - length of genetlink message including padding + * @payload: length of message payload + */ +static inline int genlmsg_total_size(int payload) +{ + return NLMSG_ALIGN(genlmsg_msg_size(payload)); +} + #endif /* __NET_GENERIC_NETLINK_H */ _ Patches currently in -mm which might be from balbir@xxxxxxxxxx are add-genetlink-utilities-for-payload-length-calculation.patch fix-taskstats-size-calculation-use-the-new-genetlink-utility-functions.patch fix-getdelaysc-cpumask-length-and-error-reporting.patch csa-basic-accounting-over-taskstats.patch csa-extended-system-accounting-over-taskstats.patch csa-convert-config-tag-for-extended-accounting-routines.patch csa-accounting-taskstats-update.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html