[PATCH 6/6] nlmsg: remove unused function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With the new CFLAGS, a notification pops up:

nlmsg.c:64:8: warning: no previous prototype for "mnl_nlmsg_aligned_size"

Marking it thus as static reveals it can be removed.

nlmsg.c:64:15: warning: "mnl_nlmsg_aligned_size" defined but not used

Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
 src/nlmsg.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/src/nlmsg.c b/src/nlmsg.c
index e09e46a..de2e8e0 100644
--- a/src/nlmsg.c
+++ b/src/nlmsg.c
@@ -56,18 +56,6 @@ EXPORT_SYMBOL size_t mnl_nlmsg_size(size_t len)
 }
 
 /**
- * mnl_nlmsg_aligned_size - calculate the aligned size of Netlink messages
- * \param len length of the Netlink payload
- *
- * This function returns the size of a netlink message (header plus payload)
- * with alignment.
- */
-size_t mnl_nlmsg_aligned_size(size_t len)
-{
-	return MNL_ALIGN(mnl_nlmsg_size(len));
-}
-
-/**
  * mnl_nlmsg_get_payload_len - get the length of the Netlink payload
  * \param nlh pointer to the header of the Netlink message
  *
-- 
1.7.1

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


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux