[v2,01/16] bus/dpaa: add define guards to avoid multi-inclusion

Message ID tencent_C9759EBE7F46D8451A63E878A44EB3236409@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/bus/dpaa/base/qbman/qman.h | 5 +++++
 1 file changed, 5 insertions(+)
  

Patch

diff --git a/drivers/bus/dpaa/base/qbman/qman.h b/drivers/bus/dpaa/base/qbman/qman.h
index 4346d86537..3928446d19 100644
--- a/drivers/bus/dpaa/base/qbman/qman.h
+++ b/drivers/bus/dpaa/base/qbman/qman.h
@@ -5,6 +5,9 @@ 
  *
  */
 
+#ifndef QBMAN_QMAN_H
+#define QBMAN_QMAN_H
+
 #include "qman_priv.h"
 
 /***************************/
@@ -911,3 +914,5 @@  static inline void __qm_isr_write(struct qm_portal *portal, enum qm_isr_reg n,
 	__qm_out(&portal->addr, QM_REG_ISR + (n << 2), val);
 #endif
 }
+
+#endif /* QBMAN_QMAN_H */