From patchwork Sun Jun 2 23:41:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dr. David Alan Gilbert" X-Patchwork-Id: 13683138 X-Patchwork-Delegate: bpf@iogearbox.net Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (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 F402C36126; Sun, 2 Jun 2024 23:41:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717371696; cv=none; b=O/43s4O7JxJH5PcTMKYeqD1lmMuqR9oMkC4EXLb9ckgnXvHuVhXCKVU93tR/WuFPnb13kM9CSifVE5z/gQHipFjZzjs4izz/3QwcW1dfhIs75LuHJ1sFrFJN+7QQEKnoyFJyOO1v8W1pVxPpTTTkZFj7HYeoziG4+sGL52NSNgU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717371696; c=relaxed/simple; bh=6lCSZZ5+cuu+s1oGH6U5gRl3+upNlfK/UoI5yiogqtM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iRtJQMaTo0RxAAIcq7G4vDkaLA7RraowJ/RcqXSNCrRorE0n8YSXQAvDsDz5i8zX4QLvudHcDr6P3BoRDhFd+nevneCmRlp5sk7tEykxlVm7/Cs/VDYIODmOPlN0FPkCuFhdzDfwOrlaOgEIeB8HcY/lCmNwFq/3swBxxNZvP/s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=l9WBlT7Q; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="l9WBlT7Q" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=Z6jbCqP8Vd0dTBaITigzPsL4JWEJ0koZNpN7pbAHi0I=; b=l9WBlT7QfTjjoFVw H7sPw67qF3jA4wTxTS+axDvp53mn0ySSNDlgVzWYQQpZhZcjmWjgeMnpLRQom0Q8beOR9xqB/xIqv zricFgeVStKHg6+JrsYuYwWKYf4EGoo+CA9RapsPFdtd/Nmem3CTQw5GwLx7Wa0uZ/iIA66vCN3uw qF+CAvUiUqQKz+NbQWG0br5qt09EugbpUg+bkFZIyuClizz9l4b+d5L8/Xf5SUNk/MRSpd8pqoRIo p+kfasNAqUuGTAdNoXZCg5t9yLAhzcXOpTzihHUV0qYNE7iVpR4uR9pl0Z9NryL9RAFTcm+dmeFly qAFZl1Ac3DXdXdhcUw==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1sDupO-003r31-08; Sun, 02 Jun 2024 23:41:30 +0000 From: linux@treblig.org To: andrii@kernel.org, eddyz87@gmail.com, mykolal@fb.com, kpsingh@kernel.org, shuah@kernel.org Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 1/3] selftests/bpf: remove unused struct 'scale_test_def' Date: Mon, 3 Jun 2024 00:41:10 +0100 Message-ID: <20240602234112.225107-2-linux@treblig.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240602234112.225107-1-linux@treblig.org> References: <20240602234112.225107-1-linux@treblig.org> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: bpf@iogearbox.net From: "Dr. David Alan Gilbert" 'scale_test_def' is unused since commit 3762a39ce85f ("selftests/bpf: Split out bpf_verif_scale selftests into multiple tests"). Remove it. Signed-off-by: Dr. David Alan Gilbert --- tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c b/tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c index 4c6ada5b270b..73f669014b69 100644 --- a/tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c +++ b/tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c @@ -45,12 +45,6 @@ static int check_load(const char *file, enum bpf_prog_type type) return err; } -struct scale_test_def { - const char *file; - enum bpf_prog_type attach_type; - bool fails; -}; - static void scale_test(const char *file, enum bpf_prog_type attach_type, bool should_fail) From patchwork Sun Jun 2 23:41:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dr. David Alan Gilbert" X-Patchwork-Id: 13683139 X-Patchwork-Delegate: bpf@iogearbox.net Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (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 D73A78060D; Sun, 2 Jun 2024 23:41:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717371700; cv=none; b=JPXgObCUtOqBGd6dx8iaVdzzPTg9Y/dZdPmZ/253pjqiEnOZvpfZqr2nVGGzQXF2c363Aov6V9pjXIKd7xRPtvhg0fosyvreiTPv4d7+0CKxvfhgOlvmaNtyG1AwxpZdjMy7LUbUWnznh7QH4czBF0M2Mr5ZRqWZ3OrSVQacMNE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717371700; c=relaxed/simple; bh=kQvJvtQkbytKL8eBkVTemEwkHweoymD3c2FocRBrZ9c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gBr1pbCQYMHXm0c6MXq4TN52rSxfSRdMLmmA02+wINEq4qK87tigEmLBOR2XNHoL42Z80rlv13FWASSuKq46F0bJoZUb6FIlOa/IEX+RjYyEQL4moVA/MyXPSV7yNVffDqjNAKatnVF2CsBtFJAYk9HfG3mjd0ZbNpab54hI0Kg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=svwa5Qta; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="svwa5Qta" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=zX3TyGNSYngLo35oMux7SV/aojpQ1E9+PViunZCVohw=; b=svwa5Qta00o2kyN4 3uRn8Ly4fw+nptaTiWOox80ilOIj2cKnVu2AjfUwF0iBbseiH0pyWtsZqmT3/MS9U/lgDBJacrTgw de2+ig3M/uVRlroSQ57wFR7+3xOiX108CBtC24XUzLtR57XDVnuEaELEW1WXtZEg4/aDFrBV7a97f RJj9cBdoOOg3NzWKJujDxcsAaohD062lZE6RAjmkGaYQ74CF23r8mmtUwKYrE1Mv5AHGG1q5R1mXr wid2ZcXbpWO/XUxsd7b9ohu/OtKrMr6N3ZCKZ8sPUEMnXh6wjOqJVS0cldPVqYBtzMa8l8rLjDK0l wRutKtPhvzQ45rTtVA==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1sDupS-003r31-1A; Sun, 02 Jun 2024 23:41:34 +0000 From: linux@treblig.org To: andrii@kernel.org, eddyz87@gmail.com, mykolal@fb.com, kpsingh@kernel.org, shuah@kernel.org Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 2/3] selftests/bpf: remove unused 'key_t' structs Date: Mon, 3 Jun 2024 00:41:11 +0100 Message-ID: <20240602234112.225107-3-linux@treblig.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240602234112.225107-1-linux@treblig.org> References: <20240602234112.225107-1-linux@treblig.org> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: bpf@iogearbox.net From: "Dr. David Alan Gilbert" 'key_t' is unused in a couple of files since the original commit 60dd49ea6539 ("selftests/bpf: Add test for bpf array map iterators"). Remove it. Signed-off-by: Dr. David Alan Gilbert --- tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c | 6 ------ .../selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c | 6 ------ 2 files changed, 12 deletions(-) diff --git a/tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c b/tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c index c5969ca6f26b..564835ba7d51 100644 --- a/tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c +++ b/tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c @@ -6,12 +6,6 @@ char _license[] SEC("license") = "GPL"; -struct key_t { - int a; - int b; - int c; -}; - struct { __uint(type, BPF_MAP_TYPE_ARRAY); __uint(max_entries, 3); diff --git a/tools/testing/selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c b/tools/testing/selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c index 85fa710fad90..9f0e0705b2bf 100644 --- a/tools/testing/selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c +++ b/tools/testing/selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c @@ -6,12 +6,6 @@ char _license[] SEC("license") = "GPL"; -struct key_t { - int a; - int b; - int c; -}; - struct { __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY); __uint(max_entries, 3); From patchwork Sun Jun 2 23:41:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dr. David Alan Gilbert" X-Patchwork-Id: 13683140 X-Patchwork-Delegate: bpf@iogearbox.net Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (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 6333C7F48E; Sun, 2 Jun 2024 23:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717371703; cv=none; b=bsxcJJRpc0Er0EADfTpDSSBFi5979mboeNh0XLBkSeLPhD4bNNVTNfz36dTvj6NfHXyDkxkDFja40W+6EzASWZ5rivLb1UURfz6PheTceS8d8fMRyhNVSF/+lZz0UDe0t4AHDsrWqqoF4LvgJcORfYQfq6mk/wwD3aRaHh8EIuQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717371703; c=relaxed/simple; bh=lTt0hR7LrlfS0w20RIwK96pw0np9sANpdXGv9S0898U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QnCYS4YAl5sov49Biqx8N8CdvyJ773itH83v+t9JqFez0kOzqsFUMWuB8nNMh7j4VxNzHFqKkf8IdJqyG+JEy6h7WyJV//o3id09EHm0V75g2YyZHVItogb1m2/Iat8KAtcp8XKtzGBBRf1+d+BPes07IqcxuglerWI6aEBqf5s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=f6G29Vwl; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="f6G29Vwl" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=0vSHaCER5RNLud6CSJnQ270WRt2oGu/Uj4sYe/neMus=; b=f6G29VwlfzCoz9aJ rWiwIH77dURfoo9YYoSiWZvDhLzI1CPFhYZOl/qcrZbQ7ErT7AbBwffm3LmF4dpFnJ9NEhjyokBVi 1llp5VRNGK6dzyMlCD11XTDcf6o8v4rxAOK1w32A+aKNtezK5RE4randFUn2DYh3gR3D+bYhenxCy rEvefHBf6MiQ/BBimwxrRzy9jEHOjpNbuhVNttKQGMETBgQni9HQsxv6B+4lvJMMA95aBu2VOjzzh bwJ3YxqODkpsCdwDTctaNqCIEEspE28fDJq4DiRMYeGqC++BlZTIakeeK3G9Hx9rb9C/IeKy8XJVf Hgrh5HEjhLcOw59ynA==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1sDupV-003r31-0b; Sun, 02 Jun 2024 23:41:37 +0000 From: linux@treblig.org To: andrii@kernel.org, eddyz87@gmail.com, mykolal@fb.com, kpsingh@kernel.org, shuah@kernel.org Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 3/3] selftests/bpf: remove unused struct 'libcap' Date: Mon, 3 Jun 2024 00:41:12 +0100 Message-ID: <20240602234112.225107-4-linux@treblig.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240602234112.225107-1-linux@treblig.org> References: <20240602234112.225107-1-linux@treblig.org> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: bpf@iogearbox.net From: "Dr. David Alan Gilbert" 'libcap' is unused since commit b1c2768a82b9 ("bpf: selftests: Remove libcap usage from test_verifier"). Remove it. Signed-off-by: Dr. David Alan Gilbert --- tools/testing/selftests/bpf/test_verifier.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/testing/selftests/bpf/test_verifier.c b/tools/testing/selftests/bpf/test_verifier.c index df04bda1c927..610392dfc4fb 100644 --- a/tools/testing/selftests/bpf/test_verifier.c +++ b/tools/testing/selftests/bpf/test_verifier.c @@ -1237,11 +1237,6 @@ static void do_test_fixup(struct bpf_test *test, enum bpf_prog_type prog_type, fixup_prog_kfuncs(prog, fd_array, test->fixup_kfunc_btf_id); } -struct libcap { - struct __user_cap_header_struct hdr; - struct __user_cap_data_struct data[2]; -}; - static int set_admin(bool admin) { int err;