dyndbg: make dyndbg a known cli param
authorAndrew Halaney <ahalaney@redhat.com>
Wed, 13 Oct 2021 15:40:20 +0000 (11:40 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Oct 2021 08:48:56 +0000 (10:48 +0200)
commit5ca173974888368fecfb17ae6fe455df5fd2a9d2
tree3c29b9e40ec9096d3c0c32649959078ba9558a07
parent216a0fc40897d87b4a282bba10b01e96ea6a1c45
dyndbg: make dyndbg a known cli param

Right now dyndbg shows up as an unknown parameter if used on boot:

    Unknown command line parameters: dyndbg=+p

That's because it is unknown, it doesn't sit in the __param
section, so the processing done to warn users supplying an unknown
parameter doesn't think it is legitimate.

Install a dummy handler to register it. dynamic debug needs to search
the whole command line for modules listed that are currently builtin,
so there's no real work to be done in this callback.

Fixes: 86d1919a4fb0 ("init: print out unknown kernel parameters")
Tested-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Jason Baron <jbaron@akamai.com>
Link: https://lore.kernel.org/r/1634139622-20667-2-git-send-email-jbaron@akamai.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/dynamic_debug.c