[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <d4cbbab44667c1833c91e7aa16173650b799ad31.1676566871.git.jbaron@akamai.com>
Date: Thu, 16 Feb 2023 12:15:50 -0500
From: Jason Baron <jbaron@...mai.com>
To: gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org, jim.cromie@...il.com
Subject: [PATCH 1/2] dyndbg: remove unused 'base' arg from __ddebug_add_module()
__ddebug_add_module() doesn't use the 'base' arg. Remove it.
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Jim Cromie <jim.cromie@...il.com>
Signed-off-by: Jason Baron <jbaron@...mai.com>
---
lib/dynamic_debug.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 009f2ead09c1..8136e5236b7b 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -1223,8 +1223,7 @@ static void ddebug_attach_module_classes(struct ddebug_table *dt,
* Allocate a new ddebug_table for the given module
* and add it to the global list.
*/
-static int __ddebug_add_module(struct _ddebug_info *di, unsigned int base,
- const char *modname)
+static int __ddebug_add_module(struct _ddebug_info *di, const char *modname)
{
struct ddebug_table *dt;
@@ -1265,7 +1264,7 @@ static int __ddebug_add_module(struct _ddebug_info *di, unsigned int base,
int ddebug_add_module(struct _ddebug_info *di, const char *modname)
{
- return __ddebug_add_module(di, 0, modname);
+ return __ddebug_add_module(di, modname);
}
/* helper for ddebug_dyndbg_(boot|module)_param_cb */
@@ -1408,7 +1407,7 @@ static int __init dynamic_debug_init(void)
mod_ct++;
di.num_descs = mod_sites;
di.descs = iter_mod_start;
- ret = __ddebug_add_module(&di, i - mod_sites, modname);
+ ret = __ddebug_add_module(&di, modname);
if (ret)
goto out_err;
@@ -1419,7 +1418,7 @@ static int __init dynamic_debug_init(void)
}
di.num_descs = mod_sites;
di.descs = iter_mod_start;
- ret = __ddebug_add_module(&di, i - mod_sites, modname);
+ ret = __ddebug_add_module(&di, modname);
if (ret)
goto out_err;
--
2.17.1
Powered by blists - more mailing lists