Skip to contentSkip to conversation

dynamic_debug: change __dynamic_<foo>_dbg return types to void

PATCH In review Joe Perches 3 participants 3 messages Sep 24, 2014 – Oct 3, 2014

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

PATCH 1/1 dynamic_debug: change __dynamic_<foo>_dbg return types to void

The return value is not used by callers of these functions so change the functions to return void.

---
This change is associated to a desire to eventually change printk to return void.

 include/linux/dynamic_debug.h | 12 +++++------
 lib/dynamic_debug.c           | 50 +++++++++++++++++--------------------------
 2 files changed, 26 insertions(+), 36 deletions(-)
include/linux/dynamic_debug.h +6 -6
index 2fe93b2..4f1bbc6 100644
@@ -42,7 +42,7 @@ int ddebug_add_module(struct _ddebug *tab, unsigned int n,
 #if defined(CONFIG_DYNAMIC_DEBUG)
 extern int ddebug_remove_module(const char *mod_name);
 extern __printf(2, 3)
-int __dynamic_pr_debug(struct _ddebug *descriptor, const char *fmt, ...);
+void __dynamic_pr_debug(struct _ddebug *descriptor, const char *fmt, ...);
 
 extern int ddebug_dyndbg_module_param_cb(char *param, char *val,
 					const char *modname);
@@ -50,15 +50,15 @@ extern int ddebug_dyndbg_module_param_cb(char *param, char *val,
 struct device;
 
 extern __printf(3, 4)
-int __dynamic_dev_dbg(struct _ddebug *descriptor, const struct device *dev,
-		      const char *fmt, ...);
+void __dynamic_dev_dbg(struct _ddebug *descriptor, const struct device *dev,
+		       const char *fmt, ...);
 
 struct net_device;
 
 extern __printf(3, 4)
-int __dynamic_netdev_dbg(struct _ddebug *descriptor,
-			 const struct net_device *dev,
-			 const char *fmt, ...);
+void __dynamic_netdev_dbg(struct _ddebug *descriptor,
+			  const struct net_device *dev,
+			  const char *fmt, ...);
 
 #define DEFINE_DYNAMIC_DEBUG_METADATA(name, fmt)		\
 	static struct _ddebug  __aligned(8)			\
lib/dynamic_debug.c +20 -30

104 lines not on this page · raw message

maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Joe Perches

The return value is not used by callers of these functions so change the functions to return void.

Greg - can you pick this up?

Thanks,

-Jason

#2 lore raw
Quoted 8 lines · Jason Baron
Quoted 3 lines · Joe Perches

The return value is not used by callers of these functions so change the functions to return void.

Greg - can you pick this up?

Yes, will do.