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 9BECBA034E; Wed, 9 Feb 2022 04:03:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD5FF41178; Wed, 9 Feb 2022 04:02:54 +0100 (CET) Received: from out203-205-251-60.mail.qq.com (out203-205-251-60.mail.qq.com [203.205.251.60]) by mails.dpdk.org (Postfix) with ESMTP id 15DB6410FD 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=1644375767; bh=gCR02QroHS3yZ8OuOBeLlDL2TWhsfX9V5lHiBoDMgi4=; h=From:To:Subject:Date:In-Reply-To:References; b=FhdfsBtIaMU77rpc4ZrhSdKrB7SQZDiLlYc0AFXUR4wL/aCfqYdTICj1z05ZqJUQo 5MGalluJ2R4OKxGjy2RPProN7y61P8N6vQe30NFjTwjdLAc9jx5lo8Ui9zWDqAIB66 TwAlRUiPBVZOMhf76TpW74HNRdF5OVsYDV7p7AoQ= 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: xmsmtpt1644375766tmnf3wq4r Message-ID: X-QQ-XMAILINFO: Nbwsoqx492bdxakZvMEe0mYhr7GqS7tYpXgl28D2ZGQ0lpEVep1gYahsnDZBhn ENebCWaNegBSpo6WCjFeQ3sRagkDICbQsb5E10pUZpaAteQiAcNGaU4vrpwAL7qf257DX0DHaLj6 J2+kzP+PNyOgGx/gb2v0xUHLrchRkQQjlIXZR3/+nN+DUbd+80WGGUHrk6/M9Dp4ZNI9w5H7x6u6 SHqCiI9CXliYbYvvPkX3JYM/GBpnHNbab4HURtJoAvuiBDETxe82LPjDDH9G5A4GMK2eVacfNxVG ea6Dxvr5FL5xzaZe9QhV/x0wjhfguQ5BxJWmNKDXKfckPcJ5j/4pAJX10u+oasVGLznlnj3uzmbB 9lBci0IcEINXKlZlXLHLSPPCSNenX7BZ2B/MxGgx3/6cgiexrgtOP4spbgoWVePYjTRBL7DAwEu2 5WZV0ZiavIflRhvh1KEuR1Ns+kuWCrh8ruUBP/TFeiShvkh6LoHsLjqa65aFpBaBbPNq+5G/N47m dEXVBPgIctfgsXN/j2hAZU1PTZSr83pGOOSumcN1Xb0ROwkFUa9zEeN90tOktlOYLZHRRodv4StT PjpwBIe3IdtO7Nj4QK+9Gh5lZvCAeZgx70R7f26nL6IyjzvO73FvW1oZ2hBxcH0kqBicfFLrZ1qI 1xuPnfuTw1SXfVigXfibNk/rOoCJyWX+BZm+bi9aUSbHFxofpxnT3xJEAvIB8eJoMeBSaGcfbBmx 9PPBb30v3JGbOgxlro6TX3cVj6MrDSwe8r2ex+Qe549LZ1MMYeKef8weSBK3WuVeKayriMz30/nw +mZ26c+cWMQHVQ/vXdbPA0OMkh7HLRuURNVwjQFGkfgHAZpwexOmdmUn0XE7Bk7SdQ38hAKvHbSg == From: Weiguo Li To: dev@dpdk.org Subject: [PATCH v2 07/16] net/qede: add define guards to avoid multi-inclusion Date: Wed, 9 Feb 2022 11:02:15 +0800 X-OQ-MSGID: <624044d876e631d33f93e1bb454581590482f346.1644374873.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 --- drivers/net/qede/base/reg_addr.h | 5 +++++ drivers/net/qede/qede_sriov.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/drivers/net/qede/base/reg_addr.h b/drivers/net/qede/base/reg_addr.h index c84d3865f4..adbed81907 100644 --- a/drivers/net/qede/base/reg_addr.h +++ b/drivers/net/qede/base/reg_addr.h @@ -4,6 +4,9 @@ * www.cavium.com */ +#ifndef QEDE_REG_ADDR_H +#define QEDE_REG_ADDR_H + #define CDU_REG_CID_ADDR_PARAMS_CONTEXT_SIZE_SHIFT \ 0 @@ -2091,3 +2094,5 @@ #define MISC_REG_AEU_GENERAL_MASK_AEU_SYS_KILL_MASK_SHIFT 2 #define MISC_REG_AEU_GENERAL_MASK_AEU_GLB_UNC_ERR_MASK (0x1UL << 3) #define MISC_REG_AEU_GENERAL_MASK_AEU_GLB_UNC_ERR_MASK_SHIFT 3 + +#endif /* QEDE_REG_ADDR_H */ diff --git a/drivers/net/qede/qede_sriov.h b/drivers/net/qede/qede_sriov.h index e58ecc2a51..578d111de4 100644 --- a/drivers/net/qede/qede_sriov.h +++ b/drivers/net/qede/qede_sriov.h @@ -4,6 +4,9 @@ * www.marvell.com */ +#ifndef QEDE_SRIOV_H +#define QEDE_SRIOV_H + void qed_sriov_configure(struct ecore_dev *edev, int num_vfs_param); enum qed_iov_wq_flag { @@ -20,3 +23,5 @@ enum qed_iov_wq_flag { void qed_inform_vf_link_state(struct ecore_hwfn *hwfn); int qed_schedule_iov(struct ecore_hwfn *p_hwfn, enum qed_iov_wq_flag flag); void qed_iov_pf_task(void *arg); + +#endif /* QEDE_SRIOV_H */ -- 2.25.1