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 8167AA034E; Wed, 9 Feb 2022 04:16:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C80A4114A; Wed, 9 Feb 2022 04:16:32 +0100 (CET) Received: from out203-205-251-36.mail.qq.com (out203-205-251-36.mail.qq.com [203.205.251.36]) by mails.dpdk.org (Postfix) with ESMTP id 48754410F3 for ; Wed, 9 Feb 2022 04:16:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644376587; bh=8qkcX+Ot98F+a7QbNqL6x7qBM8kPa6VYTK9xkdFK+dA=; h=From:To:Subject:Date:In-Reply-To:References; b=vXg2haQmOh3lCYbsn+WjjXDvTZ2tZOerfIkTQfKOfZnLAQA6cbq9l6sMNT0JKPp5D FHoJp63iYId1g3xf3b9HSXhR4eKtIszeDeOqkAV4m4Lw4I9bEinSFRCVuHWIfeqSWl EdX3tU2eHkogTRI7e+9vgoqNCvRpM2UkFi/WsQmc= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszc9.qq.com (NewEsmtp) with SMTP id 40D9F6E2; Wed, 09 Feb 2022 11:16:13 +0800 X-QQ-mid: xmsmtpt1644376586tsusqqimy Message-ID: X-QQ-XMAILINFO: MPRquJFDOUjC7ho6kXnIbuJtuGWixtCEQChwrlNDaFxtBxaqCc5e8+b6/oDDtb AfNfOgqmY7gXf0Yoesp23D/O71aEHYgO6aFYts6gJnuL1JIzzhEhKV/6L6SGZ4FL5v7AFcFxyoxu ufQmfgI40XBkiRSVKRoZpKManZPmckRROLVI6c6rgbxbTeJMBLvKNpxOGk72gIYfxti2c4sDAf+1 fFsGBWxmGpC0Lvd7V7HiJui8Zvj9K24pfZThZ4vQbxCZOC2nDSO8k+t6a6p/UkhqzWahMRE7WNV3 1rrcO8Gab6l7vWGhRlXg01uy2wcGHTTBlo6awbmOsyBEg0krCLZRI+7Zr3u+b164nHP9F3E251vH gXmmexj3CbznBnP2Ed405VW9Sp5a+9KTHkeLnrer6OHZQuHYbsJjDkCx0YLucMP6ZL6KaMWe0nNJ jQJFRP4xss+mMXWBhHF01kFheHkj4lXkb5/U9MnOgAmMZjyPi3o9r367+dGXw9VqCm/Iuhniy2Hc lLGeH2OgpkIjtQdxSmf778rSs2uSl5vCANcD007Upxp9JI9E24v8OhT1aln40vRTYpHpivTouUGh 4Tl+4YVEK7w5/QJy3xegbAL1eIHriT5zy8xgbCkzwP5B+vjoOdOR3wbcA2Ow8z3LX4Blvk1BvuUz VxJ4gwOwToTIbXPWm7c5BuzeyM9qZGN5o/u9EmyuBcX6SHcRZ7wE3Km6cS45aeq3cyMJ1HZNZmxu 6R4xD4+3u1b7a7SnrhDziDShkFgIF5Oy6H68U5548aaYB9qg+ElMRNf6CcDUl3lOfldsn2e+qi+w qfCMYBBDxKmOy2vlDv1MQ1/3LObDCFcWnsevlRaDlxGSx6p1J+6SVD8VJcqRS8YWpsys5Ll+rnIj rKK3l0Q9maH95Vxz5gN4Q= From: Weiguo Li To: dev@dpdk.org Subject: [PATCH v2 15/16] hash: add define guards to avoid multi-inclusion Date: Wed, 9 Feb 2022 11:16:12 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: 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..ecf0ea3e6f 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..3b3b3860b1 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