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 C19BCA034F; Wed, 9 Feb 2022 08:24:47 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E9E4A4116D; Wed, 9 Feb 2022 08:24:28 +0100 (CET) Received: from out203-205-221-173.mail.qq.com (out203-205-221-173.mail.qq.com [203.205.221.173]) by mails.dpdk.org (Postfix) with ESMTP id A0AF241143 for ; Wed, 9 Feb 2022 08:24:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644391460; bh=2kJsMvCLcCVFTuN0A+ZgxpGS+9TDbaf6s4aFSa5F7qc=; h=From:To:Subject:Date:In-Reply-To:References; b=fZSayus/bTU+tIZh1QdQ156phoWvSdhpGa29qUUlzEHo0TJjtTww17szSdSiG1Zlw a4DweeDX60wXLIi5BinkrF/cMNA3TRiILVh9Byak4Vg6RJFQTP9V+ym9gLAvXSCtkG tffnqpIoPmw2qoo9HP5Ghycx4P4hq4bqtjDVNeq0= 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: xmsmtpt1644391459to2mppy8q Message-ID: X-QQ-XMAILINFO: NRlQ2yI36hZT2k7XXW+Sc7nB9uqz188WYsMI7wCJ7CvwrRCE3h3VKCNq4TM8++ ojMBpu9Hpq/W4bdA/p94fLFiDuRnUmEeRC3LEoyZH7vRv9++dUA662QbiDtgprd1SPCtaIYMKr1+ odkCIE+dqxMYum9HM0hP6V0BRX07ftIkqQIIeJsT92XJZyJE+IWNR1pTzkHInpGgRy7jzjx8qOU2 szUQTXqeJcB73gv3XJuuG9CK986gjV2Dk7cgYIOpibkiu489Uy4HXPr10TDGm6iNIIY/wR/MU2BE ZCjC2Bc+k4PbqRf5Y8Ld/AUJdJJdncTOTyvvE8x8Om85aP1qgt57/AiUf+dOCn698NjtGjY3tVKn GUj6nhkvtqWl7XGVtPl2P+Rj3XQV7rmYSHLl967hIXH+HCVoqiA2UjU+m9sGxqWr1aqzbF6Ko7WB JyTmm2d4IjYZ/LTyABkVr3YS7bkA0651UDYC8y0K8qz4hL6giAiM5hdXcykv3TSNenJQN+83HBCs PzIkGxdzks4rJdOfoz1ujxiZRs2xDvAi9xO3ULuBaFdoXlGAtbgaO4AJ68et4QBpRvH15ByGzxUW PPdEFIvWt5MQEEtmftnEQ7WowY5Xz7x1+7KyUXQYiZ9/0mSg5g+SEbP6MJUNYGM7HmGITQxQpo8O FkvR+lHa+4GsDB/CI0H0XdkaP+RxutXjiU7BHRE1wrLcbak3n9/RTG+/GIecVnPVuLhcAB+AvZo6 cd2mKlSM4THA3YgS7YPXbHORh3cGMh2QOMJdg4PNS63jJ3nppnlYwiL6QyFWZnz6w6hbodWM72Xp 3yepA0JA6aJCoN7xKq6ze1tWS3CpuWFFYcOiC+PJTZme7UUp0JHXFY5V1LAEFqUFSeBH6m9EDowD wEb9u9FHcqbF9a0KBAArY= From: Weiguo Li To: dev@dpdk.org Subject: [PATCH v3 1/4] kni: add define guards to avoid multi-inclusion Date: Wed, 9 Feb 2022 15:24:05 +0800 X-OQ-MSGID: <21f79aec0d07dc65feaeb359b27514fce0ab0d97.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/kni/rte_kni_fifo.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/kni/rte_kni_fifo.h b/lib/kni/rte_kni_fifo.h index d2ec82fe87..2ff71554c0 100644 --- a/lib/kni/rte_kni_fifo.h +++ b/lib/kni/rte_kni_fifo.h @@ -2,7 +2,8 @@ * Copyright(c) 2010-2014 Intel Corporation */ - +#ifndef RTE_KNI_FIFO_H +#define RTE_KNI_FIFO_H /** * @internal when c11 memory model enabled use c11 atomic memory barrier. @@ -115,3 +116,5 @@ kni_fifo_free_count(struct rte_kni_fifo *fifo) uint32_t fifo_read = __KNI_LOAD_ACQUIRE(&fifo->read); return (fifo_read - fifo_write - 1) & (fifo->len - 1); } + +#endif /* RTE_KNI_FIFO_H */ -- 2.25.1