Răsfoiți Sursa

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>
Patrick McHardy 16 ani în urmă
părinte
comite
d9e150071d
2 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 1 1
      include/net/netfilter/nfnetlink_log.h
  2. 1 0
      net/netfilter/nfnetlink_log.c

+ 1 - 1
include/net/netfilter/nfnetlink_log.h

@@ -2,7 +2,7 @@
 #define _KER_NFNETLINK_LOG_H
 
 void
-nfulnl_log_packet(unsigned int pf,
+nfulnl_log_packet(u_int8_t pf,
 		  unsigned int hooknum,
 		  const struct sk_buff *skb,
 		  const struct net_device *in,

+ 1 - 0
net/netfilter/nfnetlink_log.c

@@ -30,6 +30,7 @@
 #include <linux/random.h>
 #include <net/sock.h>
 #include <net/netfilter/nf_log.h>
+#include <net/netfilter/nfnetlink_log.h>
 
 #include <asm/atomic.h>