dyndbg: remove unused 'base' arg from __ddebug_add_module()
authorJason Baron <jbaron@akamai.com>
Fri, 3 Mar 2023 16:50:55 +0000 (11:50 -0500)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 9 Mar 2023 20:57:24 +0000 (12:57 -0800)
The 'base' parameter to __ddebug_add_module() is no longer in use
after: Commit b7b4eebdba7b ("dyndbg: gather __dyndbg[] state into
struct _ddebug_info").

Cc: Jim Cromie <jim.cromie@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tested-by: Jim Cromie <jim.cromie@gmail.com>
Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Signed-off-by: Jason Baron <jbaron@akamai.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
lib/dynamic_debug.c

index 009f2ea..8136e52 100644 (file)
@@ -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;