[RFC PATCH 16/17] dyndbg: mess-w-dep-class
From: Jim Cromie
Date: Mon Dec 05 2022 - 19:36:32 EST
for loadable drm, helpers, and drivers, dependent-load is failing to
apply changes, needs more investigation.
---
lib/dynamic_debug.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 46684aa7284d..3ef1c0a1f0cd 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -1248,14 +1248,14 @@ static void ddebug_find_kparam(struct ddebug_class_map *cm)
static void ddebug_param_load_dependent_class(const struct ddebug_class_user *cli)
{
- unsigned long new_bits, old_bits = 0;
+ unsigned long *new_bits, old_bits = 0;
- new_bits = *cli->map->dc_parm->bits;
+ new_bits = cli->map->dc_parm->bits;
vpr_info("%s needs %s, 0x%lx\n", cli->user_mod_name,
- cli->map->mod_name, new_bits);
+ cli->map->mod_name, *new_bits);
- ddebug_apply_class_bitmap(cli->map->dc_parm, &new_bits, &old_bits, cli->user_mod_name);
+ ddebug_apply_class_bitmap(cli->map->dc_parm, new_bits, &old_bits, cli->user_mod_name);
}
static void ddebug_attach_module_classes(struct ddebug_table *dt, struct _ddebug_info *di)
--
2.38.1