help - macro arg reuse - fix ?

jim.cromie at gmail.com jim.cromie at gmail.com
Fri Oct 13 15:27:50 EDT 2023


is there a simple fix for this ?


-:451: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_var' - possible
side-effects?
#451: FILE: include/linux/dynamic_debug.h:121:
+#define DYNDBG_CLASSMAP_USE_(_var, _uname)                             \
+       extern struct ddebug_class_map _var;                            \
+       static struct ddebug_class_user __aligned(8) __used             \
+       __section("__dyndbg_class_users") _uname = {                    \
+               .user_mod_name = KBUILD_MODNAME,                        \
+               .map = &_var,                                           \
        }



More information about the Kernelnewbies mailing list