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

Message ID tencent_95C611CB3A54DFD923AF228B31533C35A708@qq.com (mailing list archive)
State Superseded, archived
Headers
Series [01/16] bus/dpaa: add define guards to avoid multiple inclusion |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Weiguo Li Feb. 6, 2022, 3:58 a.m. UTC
  Supplement define guards to prevent multiple inclusion.

Signed-off-by: Weiguo Li <liwg06@foxmail.com>
---
 drivers/net/i40e/i40e_regs.h | 5 +++++
 1 file changed, 5 insertions(+)
  

Patch

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_ */