From patchwork Wed Oct 2 20:24:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pablo Neira Ayuso X-Patchwork-Id: 13820346 X-Patchwork-Delegate: kuba@kernel.org Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99674217304; Wed, 2 Oct 2024 20:24:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.188.207 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727900677; cv=none; b=nuPZP56WHXjKYW+vgDMUvh5L0y7snDIQE3w8nLMOZcjHaQGWWOUUzZHuaqt48frSnORjt9JXQwuwO19wqozOTWG8yO9Q7X/hrt02xsWmitvdF26HsJRG7LwsVBHKHtb2Gg1p8MEHLm/r4psrbGWxaLnMjkv6i6nD2394pYNkzw8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727900677; c=relaxed/simple; bh=ZlY4WaLKqZWgtFrLuhqB9ved4MY9bkGzIkmue7qw3cY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sSnRId6wG2PLFzcBmpTrHb9ecYHLKh3MniL/vPyM7IMHjFHdqBtKtwgJF4DGbvmNpTqfF5lpWSp/zPXC3bPGTKxWAdEXDCwVkMSJjbyPo3F/rel47Vr9uEM66/MC1NBCAwBXU4tg0YyC7HC2S4ObLzk0TVf7fWn/lCTsz/88nxM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org; spf=pass smtp.mailfrom=netfilter.org; arc=none smtp.client-ip=217.70.188.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org From: Pablo Neira Ayuso To: netfilter-devel@vger.kernel.org Cc: davem@davemloft.net, netdev@vger.kernel.org, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, fw@strlen.de Subject: [PATCH net 4/4] selftests: netfilter: Add missing return value Date: Wed, 2 Oct 2024 22:24:21 +0200 Message-Id: <20241002202421.1281311-5-pablo@netfilter.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20241002202421.1281311-1-pablo@netfilter.org> References: <20241002202421.1281311-1-pablo@netfilter.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org From: zhang jiao There is no return value in count_entries, just add it. Fixes: eff3c558bb7e ("netfilter: ctnetlink: support filtering by zone") Signed-off-by: zhang jiao Signed-off-by: Pablo Neira Ayuso --- 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)