[PATCH v3 3/6] pinctrl: core: guard with __PINCTRL_CORE_H

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Peng Fan <peng.fan@xxxxxxx>

Guard the file with __PINCTRL_CORE_H to avoid build failure in case
core.h is included multiple times.

Signed-off-by: Peng Fan <peng.fan@xxxxxxx>
---
 drivers/pinctrl/core.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/pinctrl/core.h b/drivers/pinctrl/core.h
index 837fd5bd903d..1da7b0d329bc 100644
--- a/drivers/pinctrl/core.h
+++ b/drivers/pinctrl/core.h
@@ -8,6 +8,9 @@
  * Author: Linus Walleij <linus.walleij@xxxxxxxxxx>
  */
 
+#ifndef __PINCTRL_CORE_H
+#define __PINCTRL_CORE_H
+
 #include <linux/kref.h>
 #include <linux/list.h>
 #include <linux/mutex.h>
@@ -262,3 +265,4 @@ extern struct list_head pinctrl_maps;
 		for (unsigned int __i = 0;						\
 		     __i < _maps_node_->num_maps && (_map_ = &_maps_node_->maps[__i]);	\
 		     __i++)
+#endif

-- 
2.37.1





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux