The patch titled Add genetlink utilities for payload length calculation has been removed from the -mm tree. Its filename is add-genetlink-utilities-for-payload-length-calculation.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ 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 file 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 @@ -169,4 +169,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 origin.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