From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 7EDD41B76B for ; Fri, 13 Oct 2017 20:24:25 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP; 13 Oct 2017 11:24:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,371,1503385200"; d="scan'208";a="146216218" Received: from silpixa00372839.ir.intel.com (HELO silpixa00372839.ger.corp.intel.com) ([10.237.222.154]) by orsmga002.jf.intel.com with ESMTP; 13 Oct 2017 11:24:23 -0700 From: Ferruh Yigit To: Ferruh Yigit , Byron Marohn , Pablo de Lara Guarch Cc: dev@dpdk.org Date: Fri, 13 Oct 2017 19:24:21 +0100 Message-Id: <20171013182421.13473-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.13.6 Subject: [dpdk-dev] [PATCH] efd: fix build when compiler does not support AVX2 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2017 18:24:26 -0000 Compiler error: irte_efd.o: In function `rte_efd_lookup': rte_efd.c:(.text+0x6d6e): undefined reference to `efd_lookup_internal_avx2' rte_efd.o: In function `rte_efd_lookup_bulk': rte_efd.c:(.text+0x87d4): undefined reference to `efd_lookup_internal_avx2' This can be observed with a compiler that doesn't support AVX2 and shared build. Fixes: 86d898968826 ("efd: add AVX2 vector lookup function") Signed-off-by: Ferruh Yigit --- lib/librte_efd/rte_efd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_efd/rte_efd.c b/lib/librte_efd/rte_efd.c index 4d9a08876..ba9f0d83c 100644 --- a/lib/librte_efd/rte_efd.c +++ b/lib/librte_efd/rte_efd.c @@ -1278,7 +1278,7 @@ efd_lookup_internal(const struct efd_online_group_entry * const group, switch (lookup_fn) { -#if defined(RTE_ARCH_X86) +#if defined(RTE_ARCH_X86) && defined(CC_SUPPORT_AVX2) case EFD_LOOKUP_AVX2: return efd_lookup_internal_avx2(group->hash_idx, group->lookup_table, -- 2.13.6