From a18e283e2afd6b85511f6f180069410def79f473 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Sat, 25 Oct 2025 15:34:11 -0400 Subject: [PATCH] clippy: lint all bpf target archs --- clippy.sh | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/clippy.sh b/clippy.sh index 6d454a9e..00034408 100755 --- a/clippy.sh +++ b/clippy.sh @@ -18,11 +18,17 @@ cargo +nightly hack clippy "$@" \ -C panic=abort \ -Zpanic_abort_tests -cargo +nightly hack clippy \ - --target bpfel-unknown-none -Zbuild-std=core \ - --package aya-ebpf-bindings \ - --package aya-ebpf \ - --package aya-log-ebpf \ - --package integration-ebpf \ - --feature-powerset \ - -- --deny warnings + +for arch in aarch64 arm loongarch64 mips powerpc64 riscv64 s390x x86_64; do + for target in bpfeb-unknown-none bpfel-unknown-none; do + CARGO_CFG_BPF_TARGET_ARCH="$arch" cargo +nightly hack clippy \ + --target "$target" \ + -Zbuild-std=core \ + --package aya-ebpf-bindings \ + --package aya-ebpf \ + --package aya-log-ebpf \ + --package integration-ebpf \ + --feature-powerset \ + -- --deny warnings + done +done