netfilter: conntrack: wrap two inline functions in config checks.
authorJeremy Sowden <jeremy@azazel.net>
Fri, 13 Sep 2019 08:13:12 +0000 (09:13 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 13 Sep 2019 10:47:10 +0000 (12:47 +0200)
commit22e81d7416d04355a7dfa248f187feba641c199e
tree54f6816412827c90cda6807c186179d6998ba330
parent25d7cbcd2bb5d919b9ba6fcdfe788e72c2df7e6e
netfilter: conntrack: wrap two inline functions in config checks.

nf_conntrack_synproxy.h contains three inline functions.  The contents
of two of them are wrapped in CONFIG_NETFILTER_SYNPROXY checks and just
return NULL if it is not enabled.  The third does nothing if they return
NULL, so wrap its contents as well.

nf_ct_timeout_data is only called if CONFIG_NETFILTER_TIMEOUT is
enabled.  Wrap its contents in a CONFIG_NETFILTER_TIMEOUT check like the
other inline functions in nf_conntrack_timeout.h.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_synproxy.h
include/net/netfilter/nf_conntrack_timeout.h