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 250C4A034E; Sun, 6 Feb 2022 05:00:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC2D8411B6; Sun, 6 Feb 2022 04:59:14 +0100 (CET) Received: from out203-205-221-155.mail.qq.com (out203-205-221-155.mail.qq.com [203.205.221.155]) by mails.dpdk.org (Postfix) with ESMTP id ED9154115F for ; Sun, 6 Feb 2022 04:59:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644119946; bh=EwjTboBgvSPSMwl0dMQHwY4gfw0LeORIrF27hVGJ07M=; h=From:To:Subject:Date:In-Reply-To:References; b=tBzOLzRizD4083gbPq2U2lYpBw5UxBamiT+jkWVR0KesPMmh9omI1G7lGTrirPaDb 31+LYvKpY6q4ZF7XG5MpCDrZDfKao1rsoB8SUWZbOAWSjN65XqmjXz7aCgB2vQXHHe jqbE36L0uynZ0PpxxYKdeJUx9A55SwSuvWiVIO14= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszc10.qq.com (NewEsmtp) with SMTP id EAE16474; Sun, 06 Feb 2022 11:58:46 +0800 X-QQ-mid: xmsmtpt1644119945tbci40u6n Message-ID: X-QQ-XMAILINFO: NhDhJCJPIfnT/SaQttjdlmAfVHbGWD7NYc/fD+nOo8alRBbJ3MEwaCfzhQ/Rhq cnOavh59RC/sAEMQgmQqJzq5wyV05O4b6KcabUxkRqSEfQeCdtcxtS9bUskDyxTdPlNL7y6AV/aK pRzOnU7iPNoME5YGZz0NPBhV9WtATGFO+1f9v8RF7aNZhRtVQRGInjcSOURDGJvbkTu1ziwJZ1YS FSGmcqbPTTv2G0T5rR2e1Jinnkphltr+TYXzsptPi/kTDGNmjYMxVLZ6YFa7hnhIHIHWy5MeoTjy ls4HOKlfm7ai2IrQg7VqMxwcBe3hL6G1OVRpiePOSFrRR9z6qQZL2l8o4kAITg/YWt8F7JKZlX9l bjEM+SaWetmjWhOnvR+ayU2ZcEiXru4lj9FWje+s9aBEumhD33SICrkm+xadc8S4Rew4UF1EYC1n g8Mb1MImcSU4gkASa9LzpRsn/qBaJD7hkJJbjx9K26S8oDJXENSzGm/PQ57xwKPzMPLj93hDhj0v 9P/XUK0a6E5YqryezEjOJ9UU7TYi7BoctP7Nr2sFkmy3MVZkmVa3dZUifK1TVtNuYl6N7Rp1xOp+ 2QhbhqP3YLde6uxcIaz73G2EidaELBQv47G+kTvPWV3SUK/1c1ekMlX4ZnfPdJAycrXC/vmn7cEY 17KBq/SP95nrqtTN8cRy0/buu2SJoihglBoMxi3/xF4cgXYZxj/h2eAGCEAnRT2JyCCIF+uFvhGb dzctEWVXwV/9AvpfOqzaKhuMpFN7ECO5PGlcZWLbcigtIp4NEphpuB1LZ2kvca54QFZod/KpHFXQ BUIInbUP56aQZPnPb8KS8C1ObZJ+FIsOLXdPl0HF5tb3loJqNofod3c9EXrkzwIG8= From: Weiguo Li To: dev@dpdk.org Subject: [PATCH 15/16] hash: add define guards to avoid multi-inclusion Date: Sun, 6 Feb 2022 11:58:45 +0800 X-OQ-MSGID: <20220206035846.2840462-15-liwg06@foxmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220206035846.2840462-1-liwg06@foxmail.com> References: <20220206035846.2840462-1-liwg06@foxmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Supplement define guards to prevent multiple inclusion. Signed-off-by: Weiguo Li --- lib/hash/rte_cmp_arm64.h | 5 +++++ lib/hash/rte_cmp_x86.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/hash/rte_cmp_arm64.h b/lib/hash/rte_cmp_arm64.h index e9e26f9abd..aaad614d56 100644 --- a/lib/hash/rte_cmp_arm64.h +++ b/lib/hash/rte_cmp_arm64.h @@ -2,6 +2,9 @@ * Copyright(c) 2015 Cavium, Inc */ +#ifndef _RTE_CMP_ARM64_H_ +#define _RTE_CMP_ARM64_H_ + /* Functions to compare multiple of 16 byte keys (up to 128 bytes) */ static int rte_hash_k16_cmp_eq(const void *key1, const void *key2, @@ -83,3 +86,5 @@ rte_hash_k128_cmp_eq(const void *key1, const void *key2, size_t key_len) rte_hash_k64_cmp_eq((const char *) key1 + 64, (const char *) key2 + 64, key_len); } + +#endif /* _RTE_CMP_ARM64_H_ */ diff --git a/lib/hash/rte_cmp_x86.h b/lib/hash/rte_cmp_x86.h index 13a5836351..f31ec7b1d2 100644 --- a/lib/hash/rte_cmp_x86.h +++ b/lib/hash/rte_cmp_x86.h @@ -2,6 +2,9 @@ * Copyright(c) 2015 Intel Corporation */ +#ifndef _RTE_CMP_X86_H_ +#define _RTE_CMP_X86_H_ + #include /* Functions to compare multiple of 16 byte keys (up to 128 bytes) */ @@ -74,3 +77,5 @@ rte_hash_k128_cmp_eq(const void *key1, const void *key2, size_t key_len) rte_hash_k64_cmp_eq((const char *) key1 + 64, (const char *) key2 + 64, key_len); } + +#endif /* _RTE_CMP_X86_H_ */ -- 2.25.1