From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6F45046075; Tue, 14 Jan 2025 17:21:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 13DD240299; Tue, 14 Jan 2025 17:21:28 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 9681540298; Tue, 14 Jan 2025 17:21:26 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 8EAC02043F22; Tue, 14 Jan 2025 08:21:25 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8EAC02043F22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1736871685; bh=4X6+KkooW++8zb1TvASTz+CoFB4sixZYpDVCcotaZEM=; h=From:To:Cc:Subject:Date:From; b=QmLpIlbiQT5kzI1faKv9IBhsMXviGoBdvUfY9kUSkHVup9ycp/ulZQ8BznLT6mAlT a3y8LWZB+SPczf68AQjwG3zE1yWgFG+GInUNKr7FwrMC1nVsL69tvcUSKaEcqH6FMn CrV51cuzb60aR1TphsdZ/kzuhTMGLRRkLB6Aia4Y= From: Andre Muezerie To: Bruce Richardson , Konstantin Ananyev , Neil Horman Cc: dev@dpdk.org, Andre Muezerie , stable@dpdk.org Subject: [PATCH] eal: fix undeclared function error on old CPUs Date: Tue, 14 Jan 2025 08:21:13 -0800 Message-Id: <1736871673-25398-1-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Error reported: ../lib/net/net_crc_sse.c:49:17: error: call to undeclared function '_mm_clmulepi64_si128'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] The fix is to remove the unnecessary ifdef around the inclusion of header file immintrin.h. This header also contains functions that do not require AVX instructions, so should not be included only when AVX is available. Bugzilla ID: 1595 Fixes: da826b7135a4 ("eal: introduce ymm type for AVX 256-bit") Cc: stable@dpdk.org Signed-off-by: Andre Muezerie --- lib/eal/x86/include/rte_vect.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/eal/x86/include/rte_vect.h b/lib/eal/x86/include/rte_vect.h index 5ac3ccfd82..5fdcd632ac 100644 --- a/lib/eal/x86/include/rte_vect.h +++ b/lib/eal/x86/include/rte_vect.h @@ -19,9 +19,7 @@ #if defined(__ICC) || defined(_WIN64) #include /* SSE4 */ -#if defined(__AVX__) #include -#endif #else #include #endif -- 2.47.0.vfs.0.3