[v2,05/16] net/i40e: add define guards to avoid multi-inclusion

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

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

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

Signed-off-by: Weiguo Li <liwg06@foxmail.com>
---
v2:
* update to a simple guard style
---
 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..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 */