]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: add ifdef around ctnetlink_proto_size
authorArnd Bergmann <arnd@arndb.de>
Wed, 15 Nov 2017 17:28:21 +0000 (18:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Nov 2017 01:49:00 +0000 (10:49 +0900)
commit25e8c1846db4883c9ea273115e9807a8d413ad7c
treea5a7c1216323dff7bc7bed339f45549be1c70bd1
parent1e7898add6f39d00d13dddcd3a7b38a75b3503c5
netfilter: add ifdef around ctnetlink_proto_size

This function is no longer marked 'inline', so we now get a warning
when it is unused:

net/netfilter/nf_conntrack_netlink.c:536:15: error: 'ctnetlink_proto_size' defined but not used [-Werror=unused-function]

We could mark it inline again, mark it __maybe_unused, or add an #ifdef
around the definition. I'm picking the third approach here since that
seems to be what the rest of the file has.

Fixes: 7a8131142c16 ("netfilter: conntrack: don't cache nlattr_tuple_size result in nla_size")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_netlink.c