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 E5441A034F; Wed, 9 Feb 2022 08:24:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 28F914115F; Wed, 9 Feb 2022 08:24:27 +0100 (CET) Received: from out162-62-57-87.mail.qq.com (out162-62-57-87.mail.qq.com [162.62.57.87]) by mails.dpdk.org (Postfix) with ESMTP id C8872410FD for ; Wed, 9 Feb 2022 08:24:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644391462; bh=8qkcX+Ot98F+a7QbNqL6x7qBM8kPa6VYTK9xkdFK+dA=; h=From:To:Subject:Date:In-Reply-To:References; b=PKb9FxNZ2s2OcdIvyx11pHJ8MKDOg0ziL8DGSyR8zbAhWguLFF5xi92NsyXJi+Iy8 inP3/XemJQD8ZWn7NtBfoVE0ZH169b5yxTTPhr3NoW54gphlAkAsEylwMREt8sR33Y AhMTwp/iEOVXhIhqUf6+26bHxqrCEJ+vw/vcUN4s= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszb7.qq.com (NewEsmtp) with SMTP id 6090E84A; Wed, 09 Feb 2022 15:24:09 +0800 X-QQ-mid: xmsmtpt1644391461t61xoino6 Message-ID: X-QQ-XMAILINFO: NJiMOVXxVmagCAF8D9lgmnpccKfh/H97xfM4xlIJaal6AFVdM6WuY1mEYhWM2E 5LjE/fAphT938ELSjHiUY/NWG9Ev+nvkffY+hk99IjR3nLslq1Y43YYMxISV5GXhP9WUqYLRbuQf xo8DDdnFGEbSXbTc569NL3jf4F6K2STbwe0LQaq/H5WN7pqIq/0UZSFxVahXaKT21a/5D0cuz3ow jUN5qugOVjCc+zQDEbyywTXF3YMEfGYYGQhnVFG+kNp0epVnJsITCIZag/I5dyKEiFu4zS1/K7AB grsNSAEjjyTjYyZC4StmUgLv2RfiwypSWbNILaeW0RHtXIZd4zfQo7blq2tYYeEjPZZ/rDk7TArU t2jzlh7WIwLFNgfdrWnA1MjtN/JPN/RVHTN87DRw1J16CKMiTy5sdKLJLZ19nCPyQkmbw7MN6mPW QM1Chy2tBrDl/tNFOJz/Is22vBiU7BuiPxpBw1iCFrmUQFpBDukCfTp2AgkLEp/O9IML29j8H8R3 yOmwyi6jcSPa058ncVBe0TOV660wci/lYYQkCadUWs9wQUZfP52R/cJkXJ1GdyWe6sIaomjEvffd SipcXKLT7KVUoGJ9C2MQLkrhZ4SI+bY99XEjRChM7gZC0wC9TRLUXcwMfvnTBCUhvXN7Epe/L66W QmXUoIHaq1O7L23cd657s3oU83jRAoJOb18lHxKM2HfwktxwAcii6EZkHbHkk3oGUJaNvO9WTTR0 AGgj8JSfprpvB/B/yzZVlNYZDC2AejNVXO805219Xx6ncPoYXXAlVWXqGMbHCvibBWvyYn64vV1H uNqjjkoSJkxDc/o9pvb0ZJTAmEt/BX18OxdEqgKsXcRDm5QR9lieBrbpq33bIZCd9x9v4yfKuoB5 0OPm1qf/n/ From: Weiguo Li To: dev@dpdk.org Subject: [PATCH v3 4/4] hash: add define guards to avoid multi-inclusion Date: Wed, 9 Feb 2022 15:24:08 +0800 X-OQ-MSGID: <14830e7d313f37efb5e0cd8a7f7a7b36a750aa23.1644390802.git.liwg06@foxmail.com> 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