aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/kdb.h
diff options
context:
space:
mode:
authorAaron Tomlin <atomlin@redhat.com>2022-03-22 14:03:43 +0000
committerLuis Chamberlain <mcgrof@kernel.org>2022-04-05 08:43:04 -0700
commitf64205a42046d3802c423fa2059e7fca39af127c (patch)
tree16a9701943cfe55560f5614ef775d0002785eb40 /include/linux/kdb.h
parentmodule: Move sysfs support into a separate file (diff)
downloadwireguard-linux-f64205a42046d3802c423fa2059e7fca39af127c.tar.xz
wireguard-linux-f64205a42046d3802c423fa2059e7fca39af127c.zip
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>
Diffstat (limited to 'include/linux/kdb.h')
-rw-r--r--include/linux/kdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kdb.h b/include/linux/kdb.h
index ea0f5e580fac..07dfb6a20a1c 100644
--- a/include/linux/kdb.h
+++ b/include/linux/kdb.h
@@ -222,5 +222,6 @@ enum {
extern int kdbgetintenv(const char *, int *);
extern int kdb_set(int, const char **);
+int kdb_lsmod(int argc, const char **argv);
#endif /* !_KDB_H */