From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH v2 2/4] examples/ip_pipeline: fix build for x86_64 without SSE4.2 Date: Tue, 16 Feb 2016 07:46:08 +0100 Message-ID: <1455605170-16137-3-git-send-email-thomas.monjalon@6wind.com> References: <1455605170-16137-1-git-send-email-thomas.monjalon@6wind.com> To: dev@dpdk.org Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id EA267BE80 for ; Tue, 16 Feb 2016 07:47:48 +0100 (CET) Received: by mail-wm0-f42.google.com with SMTP id g62so90166248wme.1 for ; Mon, 15 Feb 2016 22:47:48 -0800 (PST) Received: from XPS13.localdomain (165.20.90.92.rev.sfr.net. [92.90.20.165]) by smtp.gmail.com with ESMTPSA id c136sm18885928wmd.3.2016.02.15.22.47.47 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Feb 2016 22:47:48 -0800 (PST) In-Reply-To: <1455605170-16137-1-git-send-email-thomas.monjalon@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The compiler cannot use _mm_crc32_u64: examples/ip_pipeline/pipeline/hash_func.h:165:9: error: implicit declaration of function '_mm_crc32_u64' is invalid in C99 Fixes: 947024a26df7 ("examples/ip_pipeline: rework passthrough pipeline") Signed-off-by: Thomas Monjalon --- examples/ip_pipeline/pipeline/hash_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ip_pipeline/pipeline/hash_func.h b/examples/ip_pipeline/pipeline/hash_func.h index 7846300..1953ad4 100644 --- a/examples/ip_pipeline/pipeline/hash_func.h +++ b/examples/ip_pipeline/pipeline/hash_func.h @@ -152,7 +152,7 @@ hash_xor_key64(void *key, __rte_unused uint32_t key_size, uint64_t seed) return (xor0 >> 32) ^ xor0; } -#if defined(__x86_64__) +#if defined(__x86_64__) && defined(RTE_CPUFLAG_SSE4_2) #include -- 2.7.0