summaryrefslogtreecommitdiff
path: root/kern/kmem.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-07-25 01:16:24 +0200
committerRichard Braun <rbraun@sceen.net>2018-07-25 01:16:24 +0200
commitd3e43f5bfda0bdad7a829a7ed8c1272a395b196b (patch)
tree897e7851a995f243afdfa5999d786541781f56a9 /kern/kmem.c
parent3a175471f4246c429e89460ab42cd6640427532a (diff)
kern/{fmt,shell}: update from upstream
The shell module has been "objectified" and now supports multiple instances with shareable command sets.
Diffstat (limited to 'kern/kmem.c')
-rw-r--r--kern/kmem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/kmem.c b/kern/kmem.c
index 8856292b..bd2e1d56 100644
--- a/kern/kmem.c
+++ b/kern/kmem.c
@@ -1168,10 +1168,12 @@ out:
}
static void
-kmem_shell_info(int argc, char **argv)
+kmem_shell_info(struct shell *shell, int argc, char **argv)
{
struct kmem_cache *cache;
+ (void)shell;
+
if (argc < 2) {
kmem_info();
} else {
@@ -1195,7 +1197,7 @@ static struct shell_cmd kmem_shell_cmds[] = {
static int __init
kmem_setup_shell(void)
{
- SHELL_REGISTER_CMDS(kmem_shell_cmds);
+ SHELL_REGISTER_CMDS(kmem_shell_cmds, shell_get_main_cmd_set());
return 0;
}