Skip to contentSkip to conversation

regmap: Make debugfs stubs static inline

PATCH Applied Lars-Peter Clausen 2 participants 2 messages Sep 5, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regmap: Make debugfs stubs static inline

Make the debugfs stubs static inline to avoid future compilation issues due to duplicated symbols when CONFIG_DEBUG_FS=n once internal.h is included by multiple source files.

---
 drivers/base/regmap/internal.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/base/regmap/internal.h +3 -3
index 5ab3fef..b4acd94 100644
@@ -58,9 +58,9 @@ extern void regmap_debugfs_initcall(void);
 extern void regmap_debugfs_init(struct regmap *map);
 extern void regmap_debugfs_exit(struct regmap *map);
 #else
-void regmap_debugfs_initcall(void) { }
-void regmap_debugfs_init(struct regmap *map) { }
-void regmap_debugfs_exit(struct regmap *map) { }
+static inline void regmap_debugfs_initcall(void) { }
+static inline void regmap_debugfs_init(struct regmap *map) { }
+static inline void regmap_debugfs_exit(struct regmap *map) { }
 #endif
 
 #endif
Signature · 1 line
1.7.2.5
Applied
#1 lore raw
Quoted 3 lines · Lars-Peter Clausen

Make the debugfs stubs static inline to avoid future compilation issues due to duplicated symbols when CONFIG_DEBUG_FS=n once internal.h is included by multiple source files.

Applied, thanks.