]> granicus.if.org Git - ipset/commit
netfilter: ipset: move ip_set_comment functions from ip_set.h to ip_set_core.c.
authorJeremy Sowden <jeremy@azazel.net>
Thu, 3 Oct 2019 19:56:03 +0000 (20:56 +0100)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Mon, 7 Oct 2019 19:49:54 +0000 (21:49 +0200)
commita7cd6535667a6816316cefc6df7ebad45e4afd65
tree39d695f151ec30648042cbd957c220d8d47d0bf1
parent4392230c2eaaa0c62e995f1ea9c9c3f622dd4845
netfilter: ipset: move ip_set_comment functions from ip_set.h to ip_set_core.c.

Most of the functions are only called from within ip_set_core.c.

The exception is ip_set_init_comment.  However, this is too complex to
be a good candidate for a static inline function.  Move it to
ip_set_core.c, change its linkage to extern and export it, leaving a
declaration in ip_set.h.

ip_set_comment_free is only used as an extension destructor, so change
its prototype to match and drop cast.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
kernel/include/linux/netfilter/ipset/ip_set.h
kernel/net/netfilter/ipset/ip_set_core.c