[PATCH v2 01/16] bus/dpaa: add define guards to avoid multi-inclusion
Weiguo Li
liwg06 at foxmail.com
Wed Feb 9 04:02:09 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/bus/dpaa/base/qbman/qman.h | 5 +++++
1 file changed, 5 insertions(+)
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 */
--
2.25.1
More information about the dev
mailing list