[PATCH 05/16] net/i40e: add define guards to avoid multiple inclusion

Weiguo Li liwg06 at foxmail.com
Sun Feb 6 04:58:35 CET 2022


Supplement define guards to prevent multiple inclusion.

Signed-off-by: Weiguo Li <liwg06 at foxmail.com>
---
 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..b3111dbf96 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