From: Weiguo Li <liwg06@foxmail.com>
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 [thread overview]
Message-ID: <tencent_38CEEDF7D708AAC853CC368FC9E94444BF06@qq.com> (raw)
In-Reply-To: <cover.1644374873.git.liwg06@foxmail.com>
Supplement define guards to prevent multiple inclusion.
Signed-off-by: Weiguo Li <liwg06@foxmail.com>
---
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
next prev parent reply other threads:[~2022-02-09 3:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1644374873.git.liwg06@foxmail.com>
2022-02-09 3:02 ` [PATCH v2 01/16] bus/dpaa: " Weiguo Li
2022-02-09 3:02 ` [PATCH v2 02/16] event/octeontx: " Weiguo Li
2022-02-09 3:02 ` [PATCH v2 03/16] net/cxgbe: " Weiguo Li
2022-02-09 3:02 ` [PATCH v2 04/16] net/enetfec: " Weiguo Li
2022-02-09 3:02 ` [PATCH v2 05/16] net/i40e: " Weiguo Li
2022-02-09 3:02 ` [PATCH v2 06/16] net/netvsc: " Weiguo Li
2022-02-09 6:28 ` Stephen Hemminger
2022-02-09 9:25 ` Bruce Richardson
2022-02-09 3:02 ` Weiguo Li [this message]
2022-02-09 3:02 ` [PATCH v2 08/16] net/tap: " Weiguo Li
2022-02-09 6:28 ` Stephen Hemminger
2022-02-09 3:02 ` [PATCH v2 09/16] net/virtio: " Weiguo Li
2022-02-09 3:02 ` [PATCH v2 10/16] raw/ifpga/base: " Weiguo Li
2022-02-09 3:02 ` [PATCH v2 11/16] kni: " Weiguo Li
2022-02-09 3:02 ` [PATCH v2 12/16] acl: " Weiguo Li
2022-02-09 9:42 ` Ananyev, Konstantin
2022-02-09 10:12 ` Weiguo Li
2022-02-09 3:16 ` [PATCH v2 13/16] eal: " Weiguo Li
2022-02-09 3:16 ` [PATCH v2 14/16] efd: " Weiguo Li
2022-02-09 3:16 ` [PATCH v2 15/16] hash: " Weiguo Li
2022-02-09 3:16 ` [PATCH v2 16/16] pcapng: " Weiguo Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_38CEEDF7D708AAC853CC368FC9E94444BF06@qq.com \
--to=liwg06@foxmail.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).