[Devel] [PATCH RH9 2/2] netfilter: fix compilation error in nf_log_unknown_packet
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Fri Jan 6 15:02:11 MSK 2023
net/netfilter/nf_log_syslog.c: In function 'nf_log_unknown_packet':
net/netfilter/nf_log_syslog.c:932:9: error: too few arguments to function 'nf_log_buf_close'
932 | nf_log_buf_close(m);
| ^~~~~~~~~~~~~~~~
In file included from net/netfilter/nf_log_syslog.c:25:
./include/net/netfilter/nf_log.h:100:6: note: declared here
100 | void nf_log_buf_close(struct nf_log_buf *m, struct net *net);
| ^~~~~~~~~~~~~~~~
Fixes: a245e8cecfbe ("ve/nf_log_syslog: virtualize packet logging per-ve")
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
net/netfilter/nf_log_syslog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netfilter/nf_log_syslog.c b/net/netfilter/nf_log_syslog.c
index b05089283ddc..1ec5c15f426b 100644
--- a/net/netfilter/nf_log_syslog.c
+++ b/net/netfilter/nf_log_syslog.c
@@ -929,7 +929,7 @@ static void nf_log_unknown_packet(struct net *net, u_int8_t pf,
dump_mac_header(m, loginfo, skb);
- nf_log_buf_close(m);
+ nf_log_buf_close(m, net);
}
static void nf_log_netdev_packet(struct net *net, u_int8_t pf,
--
2.39.0
More information about the Devel
mailing list