module: Move kdb module related code out of main kdb code
authorAaron Tomlin <atomlin@redhat.com>
Tue, 22 Mar 2022 14:03:43 +0000 (14:03 +0000)
committerLuis Chamberlain <mcgrof@kernel.org>
Tue, 5 Apr 2022 15:43:04 +0000 (08:43 -0700)
commitf64205a42046d3802c423fa2059e7fca39af127c
tree16a9701943cfe55560f5614ef775d0002785eb40
parent44c09535de4784f31d151aa1047efcf4797ca3cd
module: Move kdb module related code out of main kdb code

No functional change.

This patch migrates the kdb 'lsmod' command support out of main
kdb code into its own file under kernel/module. In addition to
the above, a minor style warning i.e. missing a blank line after
declarations, was resolved too. The new file was added to
MAINTAINERS. Finally we remove linux/module.h as it is entirely
redundant.

Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
MAINTAINERS
include/linux/kdb.h
kernel/debug/kdb/kdb_io.c
kernel/debug/kdb/kdb_keyboard.c
kernel/debug/kdb/kdb_main.c
kernel/debug/kdb/kdb_private.h
kernel/debug/kdb/kdb_support.c
kernel/module/Makefile
kernel/module/kdb.c [new file with mode: 0644]
kernel/module/main.c