From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AE1FBA04B1 for ; Mon, 5 Oct 2020 21:50:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7DAF64C98; Mon, 5 Oct 2020 21:50:09 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 293D94C98 for ; Mon, 5 Oct 2020 21:50:06 +0200 (CEST) IronPort-SDR: XQvzm9r4BPuLpqizL5AdxtFgZZYqwOE4PvFLp4iXjBqxtrl8GnBysEL51eKti3n0DHCWmt4KOV Ief6qRWTaU3Q== X-IronPort-AV: E=McAfee;i="6000,8403,9765"; a="151700672" X-IronPort-AV: E=Sophos;i="5.77,340,1596524400"; d="scan'208";a="151700672" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2020 12:31:43 -0700 IronPort-SDR: sMAr82N9WIXOK/jnsa/QKzyLjG3cQ1BNHjST7cgUYZaWOjKXAoY3gNysRB3+BAFAcb3IETNag3 FhJoYCgXdsZQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,340,1596524400"; d="scan'208";a="347718804" Received: from sivswdev08.ir.intel.com ([10.237.217.47]) by fmsmga002.fm.intel.com with ESMTP; 05 Oct 2020 12:28:34 -0700 From: Konstantin Ananyev To: kastytis731105@gmail.com Cc: konstantin.ananyev@intel.com, stable@dpdk.org Date: Mon, 5 Oct 2020 20:28:18 +0100 Message-Id: <20201005192831.13508-2-konstantin.ananyev@intel.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201005192831.13508-1-konstantin.ananyev@intel.com> References: <20200915165025.543-1-konstantin.ananyev@intel.com> <20201005192831.13508-1-konstantin.ananyev@intel.com> Subject: [dpdk-stable] [PATCH v3 01/14] acl: fix x86 build when compiler doesn't support AVX2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Right now we define dummy version of rte_acl_classify_avx2() when both X86 and AVX2 are not detected, though it should be for non-AVX2 case only. Fixes: e53ce4e41379 ("acl: remove use of weak functions") Cc: stable@dpdk.org Signed-off-by: Konstantin Ananyev --- lib/librte_acl/rte_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_acl/rte_acl.c b/lib/librte_acl/rte_acl.c index 777ec4d340..715b023592 100644 --- a/lib/librte_acl/rte_acl.c +++ b/lib/librte_acl/rte_acl.c @@ -16,7 +16,6 @@ static struct rte_tailq_elem rte_acl_tailq = { }; EAL_REGISTER_TAILQ(rte_acl_tailq) -#ifndef RTE_ARCH_X86 #ifndef CC_AVX2_SUPPORT /* * If the compiler doesn't support AVX2 instructions, @@ -33,6 +32,7 @@ rte_acl_classify_avx2(__rte_unused const struct rte_acl_ctx *ctx, } #endif +#ifndef RTE_ARCH_X86 int rte_acl_classify_sse(__rte_unused const struct rte_acl_ctx *ctx, __rte_unused const uint8_t **data, -- 2.17.1