aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-11-18 06:16:52 -0500
committerPatrick McHardy <kaber@trash.net>2008-11-18 06:16:52 -0500
commitd9e150071d18b5c87ba7a097af4063a5ad0c6a0c (patch)
treed554185f1c64df5ec6856c0f320e7f16037f14a5
parent19abb7b090a6bce88d4e9b2914a0367f4f684432 (diff)
netfilter: nfnetlink_log: fix warning and prototype mismatch
net/netfilter/nfnetlink_log.c:537:1: warning: symbol 'nfulnl_log_packet' was not declared. Should it be static? Including the proper header also revealed an incorrect prototype. Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r--include/net/netfilter/nfnetlink_log.h2
-rw-r--r--net/netfilter/nfnetlink_log.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/net/netfilter/nfnetlink_log.h b/include/net/netfilter/nfnetlink_log.h
index 9b67f948a8d7..b0569ff0775e 100644
--- a/include/net/netfilter/nfnetlink_log.h
+++ b/include/net/netfilter/nfnetlink_log.h
@@ -2,7 +2,7 @@
2#define _KER_NFNETLINK_LOG_H 2#define _KER_NFNETLINK_LOG_H
3 3
4void 4void
5nfulnl_log_packet(unsigned int pf, 5nfulnl_log_packet(u_int8_t pf,
6 unsigned int hooknum, 6 unsigned int hooknum,
7 const struct sk_buff *skb, 7 const struct sk_buff *skb,
8 const struct net_device *in, 8 const struct net_device *in,
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c
index a51892b3f01a..2770b4e57ea0 100644
--- a/net/netfilter/nfnetlink_log.c
+++ b/net/netfilter/nfnetlink_log.c
@@ -30,6 +30,7 @@
30#include <linux/random.h> 30#include <linux/random.h>
31#include <net/sock.h> 31#include <net/sock.h>
32#include <net/netfilter/nf_log.h> 32#include <net/netfilter/nf_log.h>
33#include <net/netfilter/nfnetlink_log.h>
33 34
34#include <asm/atomic.h> 35#include <asm/atomic.h>
35 36