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 77C93A034E; Wed, 9 Feb 2022 04:03:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A5A941174; Wed, 9 Feb 2022 04:02:54 +0100 (CET) Received: from out203-205-221-231.mail.qq.com (out203-205-221-231.mail.qq.com [203.205.221.231]) by mails.dpdk.org (Postfix) with ESMTP id 7E6494067E for ; Wed, 9 Feb 2022 04:02:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644375766; bh=btIMh2hmzhpKFnu+bbJnV+CatJ05IY9Tt8HTIKdE3h4=; h=From:To:Subject:Date:In-Reply-To:References; b=kxC53u/hYu3FW7pRlxAWvrrAl1Ox/0GMdN5WP93NviMMfj1a/yzTf/46jibHLQf/o HyI04p/EX2lcZ75ezlMd+MvDHmDaZVx9j6HhQLr/9sfs90UiXqQ3QLPO/MNn6gkbD3 Gmc/Xb4HKUl+azLOXhNPRgLKVDinVmzSRZGlIO4I= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszb7.qq.com (NewEsmtp) with SMTP id 98A6079; Wed, 09 Feb 2022 11:02:24 +0800 X-QQ-mid: xmsmtpt1644375765tsu3yf2h7 Message-ID: X-QQ-XMAILINFO: MxtMpmMtaOny7byMO/CWxVsDhD6dcU53xQ4j3KzFDUapicgRflx0+CU9pHrRxR gDdd4YEeyWfmqYsHverECQJU4Y/us23t+9sj037gMAHfr0wAqcIlz7YZBBGuqtbPrLMp2BCafO+Q LCpMAxWTJk5cgM6fL66ScxJ7Wcz1VF/vMx3bWhbUVy/nXzhQT1KvJkmR7UGtCLRtHyWZJfLOyQYQ t8tuN9vuLEhi6oJPGZ2YcCzIRyNpP9weTLUcsDyFrob08dow0JCKee/N/d1C7Gzq1dmD7CcqRtI8 kEWS18ypZPjfON1yFY4n75GJ1qlwDTctkkq+ziXAGMQ+uFOCPlSgGelU02d9JiPf+JE0c5n3XALA pu0ixmvoAGjTScs91tdmGTlKPPAQAYa25flxOzgkkTck3psLVKH0qbJcqHTa8W/B5m0hp714ImdN eYNWjKHpp1iSd7O18doBcyqPUK0QIwqBAHzpsnBj08g8N150j4YDbHlhVmHTh1fL/j/MtiPu0FWP UruQ0iQYsp1MU1mEg9WpkTidr5zwLoqEdPr6CeyxytpXjPvBngp2e3jioE0J25K7FyQhesMpV5yl yov3OLE76xnICHmCcedfN6peQ9gzE1VadUxXBN14LY6yn9kAYpQ9mOGj+CaLLqKx9Z0OXBQSuUL6 WkvMB9IEa/Y/M8nmix9Zg8A0Sg2+jQ2VNgcjUtzapBYGXs/yGxQ8tPfGYrXAdYNZI0eVWvzEFuoP x63MDzzVNEJwNHY4VszBHBSk3gom1dA11N4VhnHApOXxoZCE3j5PaHnV2jkd1ICu0Kw+IkEpjZkw npYl1nqqkScRRJoIojzbt5A46XNWsppk2nbApOMS1egAWxizkOuxyqEk2QmqvIx09xe/60VpRvXA == From: Weiguo Li To: dev@dpdk.org Subject: [PATCH v2 05/16] net/i40e: add define guards to avoid multi-inclusion Date: Wed, 9 Feb 2022 11:02:13 +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 --- v2: * update to a simple guard style --- drivers/net/i40e/i40e_regs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/i40e/i40e_regs.h b/drivers/net/i40e/i40e_regs.h index b19bb1d5a5..0f4db4a46e 100644 --- a/drivers/net/i40e/i40e_regs.h +++ b/drivers/net/i40e/i40e_regs.h @@ -2,6 +2,9 @@ * Copyright(c) 2016 Intel Corporation */ +#ifndef I40E_REGS_H +#define I40E_REGS_H + struct i40e_reg_info { uint32_t base_addr; uint32_t count1; @@ -966,3 +969,5 @@ static const struct i40e_reg_info i40e_regs_others[] = { {I40E_GLGEN_STAT_CLEAR, 0, 0, 0, 0, "GLGEN_STAT_CLEAR"}, {0, 0, 0, 0, 0, NULL} }; + +#endif /* I40E_REGS_H */ -- 2.25.1