From patchwork Tue Jan 21 13:01:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Bastien Curutchet (eBPF Foundation)" X-Patchwork-Id: 13946264 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BD391E3DD0; Tue, 21 Jan 2025 13:01:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737464493; cv=none; b=SRBbqPFpUOQjz5JjtoWS6x8N2lp/EhuvkH+Az+zhiLmZPp1i0kfB7DVMsIiLaKBYYkMlBFrpIToKMTPv8e8o8uDpzDjyNojEPdluBCITXx4QdGu2wiv6iTEv+HTo4fYfx22n+7ae2RuhfcrF0WLlClxN0e7fyn3bXW/bqXKDpq0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737464493; c=relaxed/simple; bh=0Nr7e/NtqvjGyug6WlmvTn7BiwzmE1kcYBSG07uZQZY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OTECVzg48s6w1Mr2sqLwPTw/8sDw9H3ODq6uUL79b310mlgpFN/RvPYgbEKyZoHJ9TT3qDxCwRi2C6BGRUmO/8r3nk+2jdkRkpfVtLtl1tGJey3CHOXLd803Pg4+jhIOyXBJHzrdvJ2+lXDfrzxEMJtclLw6558I0luElqYZ48o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=XUkyMXmi; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="XUkyMXmi" Received: by mail.gandi.net (Postfix) with ESMTPSA id A12C31BF208; Tue, 21 Jan 2025 13:01:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1737464488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A1xSk4qxT/8ra8CyA+fYL/qAEHJzTXBv629tkpHZtFo=; b=XUkyMXmiZCNLZthmo6MW2Fp+7ddUxb5ukHNi2D6D5bVLt9glHarSIdm8VCUYOeponB3J2a 292kZbJJ5AV/veDLU7Sj6RmQbh9BZjR9pyH7e01MOqIYcl8j/4hc5eYvHrBNzraai7c9Nj V6yiGtEkcIrOvEqJBU67qdm6mlciw2xqjJ2yIPQp8CI/TyW6u+sBH5nxsKk9fwMrkJ9I9v FqpJsuqcvIhEsNqavzpfLFmjXDdEnenL7Zq4kb3UmSMl4UeTyDsEzhzoHWmJPRkVtSZput yoHo4xnabqE+p1c8KVJ1Nj9t4WOmeEx0WwjAtEFzvezL4xIQK07kWWjT/CnRog== From: "Bastien Curutchet (eBPF Foundation)" Date: Tue, 21 Jan 2025 14:01:24 +0100 Subject: [PATCH bpf-next v2 02/10] selftests/bpf: Remove unused argument Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250121-redirect-multi-v2-2-fc9cacabc6b2@bootlin.com> References: <20250121-redirect-multi-v2-0-fc9cacabc6b2@bootlin.com> In-Reply-To: <20250121-redirect-multi-v2-0-fc9cacabc6b2@bootlin.com> To: Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan Cc: Alexis Lothore , Thomas Petazzoni , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, "Bastien Curutchet (eBPF Foundation)" X-Mailer: b4 0.14.2 X-GND-Sasl: bastien.curutchet@bootlin.com check_ping() doesn't use the struct skeletons it has as input. Remove the unused input. Signed-off-by: Bastien Curutchet (eBPF Foundation) --- tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c b/tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c index 8dc28274a6e8fc75b05781d827a04f01e03a6ebb..8507863e61bbea99c906c60ed4535e23d530588c 100644 --- a/tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c +++ b/tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c @@ -165,7 +165,7 @@ static void cleanup_network(void) SYS_NOFAIL("ip netns del %s", config[i].namespace); } -static int check_ping(struct skeletons *skeletons) +static int check_ping(void) { /* Test: if all interfaces are properly configured, we must be able to ping * veth33 from veth11 @@ -214,7 +214,7 @@ void test_xdp_veth_redirect(void) goto destroy_xdp_redirect_map; } - ASSERT_OK(check_ping(&skeletons), "ping"); + ASSERT_OK(check_ping(), "ping"); destroy_xdp_redirect_map: xdp_redirect_map__destroy(skeletons.xdp_redirect_maps);