netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests: netfilter: Add missing resturn value.
@ 2024-09-27  3:22 zhangjiao2
  2024-09-27 11:54 ` Phil Sutter
  2024-09-27 11:58 ` Pablo Neira Ayuso
  0 siblings, 2 replies; 4+ messages in thread
From: zhangjiao2 @ 2024-09-27  3:22 UTC (permalink / raw)
  To: pablo
  Cc: kadlec, davem, edumazet, kuba, pabeni, shuah, netfilter-devel,
	coreteam, netdev, zhang jiao

From: zhang jiao <zhangjiao2@cmss.chinamobile.com>

There is no return value in count_entries, just add it.

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
---
 tools/testing/selftests/net/netfilter/conntrack_dump_flush.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/net/netfilter/conntrack_dump_flush.c b/tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
index bd9317bf5ada..dc056fec993b 100644
--- a/tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
+++ b/tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
@@ -207,6 +207,7 @@ static int conntrack_data_generate_v6(struct mnl_socket *sock,
 static int count_entries(const struct nlmsghdr *nlh, void *data)
 {
 	reply_counter++;
+	return MNL_CB_OK;
 }
 
 static int conntracK_count_zone(struct mnl_socket *sock, uint16_t zone)
-- 
2.33.0




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-27 12:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27  3:22 [PATCH] selftests: netfilter: Add missing resturn value zhangjiao2
2024-09-27 11:54 ` Phil Sutter
2024-09-27 12:04   ` Pablo Neira Ayuso
2024-09-27 11:58 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).