]> www.infradead.org Git - users/jedix/linux-maple.git/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)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 7 Oct 2019 21:57:56 +0000 (23:57 +0200)
commit94177f6e11c74b6ca3bcf7f65d3d74f00bbd6a8c
treebcaae1ca734ad36a3ce8349b05a4ed845f0b22d5
parent8dea982a88dce157825d054fdbeb7fcf378908ba
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>
Acked-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/ipset/ip_set.h
net/netfilter/ipset/ip_set_core.c