dynamic_debug: change __dynamic_<foo>_dbg return types to void
Subsystems (2)
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.
Signed-off-by Joe Perches <[email protected]>
---
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
@@ -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
Quoted 3 lines · Joe Perches
The return value is not used by callers of these functions so change the functions to return void.
Acked-by Jason Baron <[email protected]>
Greg - can you pick this up?
Thanks,
-Jason
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.
Acked-by Jason Baron <[email protected]>Greg - can you pick this up?
Yes, will do.