]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ctnetlink: fix compilation with NF_CONNTRACK_EVENTS=n
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 22 Jun 2012 23:43:51 +0000 (01:43 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 23 Jun 2012 00:13:46 +0000 (02:13 +0200)
commite864aa6ef8d4d92d767fc5af5d06668bd10ed5ba
tree8400a62a94cf69649348e278bb76eb3f42d55efc
parent60501e1dea6258dfde6657c6436caa6314da8546
netfilter: ctnetlink: fix compilation with NF_CONNTRACK_EVENTS=n

This patch fixes compilation with NF_CONNTRACK_EVENTS=n and
NETFILTER_NETLINK_QUEUE_CT=y.

I'm leaving all those static inline functions that calculate the size
of the event message out of the ifdef area of NF_CONNTRACK_EVENTS since
they will not be included by gcc in case they are unused.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c