[PATCH v2 05/16] net/i40e: add define guards to avoid multi-inclusion
Weiguo Li
liwg06 at foxmail.com
Wed Feb 9 04:02:13 CET 2022
Supplement define guards to prevent multiple inclusion.
Signed-off-by: Weiguo Li <liwg06 at foxmail.com>
---
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
More information about the dev
mailing list