From nobody Tue Dec 16 16:23:04 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3011C4167B for ; Thu, 30 Nov 2023 03:45:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231681AbjK3Dox (ORCPT ); Wed, 29 Nov 2023 22:44:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231640AbjK3Dov (ORCPT ); Wed, 29 Nov 2023 22:44:51 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF13C10C3; Wed, 29 Nov 2023 19:44:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701315890; x=1732851890; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/utSN1OR3/EBzwgfC3LaKdPzu0BgF9bHkLiCMUBUofc=; b=NocDVQWuviovUPFiaqbaSmdDz03DUse0299YjCPORM+abZQnvdK4mYhs K13hDzPEzgeyNhY3gZGHlp0jwA3vg/7PtE6QNXimvoU4jh867emnCW9vb LruoaHkol5Rp1agDl5QigLWKh+m6bPPG0R4UGQX8SswhQWXrRsS5NAtai rUCNbYLKLA4ASKgCTErKt0shZWtzclTpr3Io3hPOTtL0fbWh7kL0Wwun1 kGzMCePfuMRkqhbP22z39ATc14HltCXQwFfXqkIB6vyqEfvI9XSyc+iwD pRNUb1mlhHrGG9falUUgphFa6Xv6Wf2zsf9CaOOIvWh3PQT0AcjjS9gVn w==; X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="393007738" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="393007738" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 19:44:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="762546446" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="762546446" Received: from yujie-x299.sh.intel.com ([10.239.159.77]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 19:44:48 -0800 From: Yujie Liu To: Alexei Starovoitov , Daniel Borkmann , Johan Almbladh , bpf@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] bpf/tests: Remove duplicate JSGT tests Date: Thu, 30 Nov 2023 11:40:18 +0800 Message-Id: <20231130034018.2144963-1-yujie.liu@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" It seems unnecessary that JSGT is tested twice (one before JSGE and one after JSGE) since others are tested only once. Remove the duplicate JSGT tests. Fixes: 0bbaa02b4816 ("bpf/tests: Add tests to check source register zero-ex= tension") Signed-off-by: Yujie Liu Acked-by: Johan Almbladh --- lib/test_bpf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/test_bpf.c b/lib/test_bpf.c index 7916503e6a6a..87a4ebcc65be 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c @@ -12215,7 +12215,6 @@ static struct bpf_test tests[] =3D { BPF_JMP32_IMM_ZEXT(JLE), BPF_JMP32_IMM_ZEXT(JSGT), BPF_JMP32_IMM_ZEXT(JSGE), - BPF_JMP32_IMM_ZEXT(JSGT), BPF_JMP32_IMM_ZEXT(JSLT), BPF_JMP32_IMM_ZEXT(JSLE), #undef BPF_JMP2_IMM_ZEXT @@ -12251,7 +12250,6 @@ static struct bpf_test tests[] =3D { BPF_JMP32_REG_ZEXT(JLE), BPF_JMP32_REG_ZEXT(JSGT), BPF_JMP32_REG_ZEXT(JSGE), - BPF_JMP32_REG_ZEXT(JSGT), BPF_JMP32_REG_ZEXT(JSLT), BPF_JMP32_REG_ZEXT(JSLE), #undef BPF_JMP2_REG_ZEXT --=20 2.34.1