[PATCH v2 04/16] net/enetfec: add define guards to avoid multi-inclusion

Weiguo Li liwg06 at foxmail.com
Wed Feb 9 04:02:12 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/net/enetfec/enet_uio.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/enetfec/enet_uio.h b/drivers/net/enetfec/enet_uio.h
index fec8ba6f95..e82e549b0b 100644
--- a/drivers/net/enetfec/enet_uio.h
+++ b/drivers/net/enetfec/enet_uio.h
@@ -2,6 +2,9 @@
  * Copyright 2021 NXP
  */
 
+#ifndef ENETFEC_UIO_H
+#define ENETFEC_UIO_H
+
 #include "enet_ethdev.h"
 
 /* Prefix path to sysfs directory where UIO device attributes are exported.
@@ -62,3 +65,5 @@ int enetfec_configure(void);
 int config_enetfec_uio(struct enetfec_private *fep);
 void enetfec_uio_init(void);
 void enetfec_cleanup(struct enetfec_private *fep);
+
+#endif /* ENETFEC_UIO_H */
-- 
2.25.1



More information about the dev mailing list