This moves the binfmt_misc sysctl to its own file to help removebuild error when CONFIG_BINFMT_MISC=m
clutter from kernel/sysctl.c.
Signed-off-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
---
fs/binfmt_misc.c | 1 +
kernel/sysctl.c | 7 -------
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index f69a043f562b..656b3f5f3bbf 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -821,6 +821,7 @@ static int __init init_misc_binfmt(void)
int err = register_filesystem(&bm_fs_type);
if (!err)
insert_binfmt(&misc_format);
+ register_sysctl_empty_subdir("fs", "binfmt_misc");
return err;
}