From: Andrew Morton kernel/sysctl.c:1046: warning: 'binfmt_misc_table' defined but not used Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton --- kernel/sysctl.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff -puN kernel/sysctl.c~sysctl-create-sys-fs-binfmt_misc-as-an-ordinary-sysctl-entry-warning-fix kernel/sysctl.c --- a/kernel/sysctl.c~sysctl-create-sys-fs-binfmt_misc-as-an-ordinary-sysctl-entry-warning-fix +++ a/kernel/sysctl.c @@ -150,7 +150,6 @@ static struct ctl_table_header root_tabl static ctl_table kern_table[]; static ctl_table vm_table[]; static ctl_table fs_table[]; -static ctl_table binfmt_misc_table[]; static ctl_table debug_table[]; static ctl_table dev_table[]; extern ctl_table random_table[]; @@ -920,6 +919,12 @@ static ctl_table vm_table[] = { { .ctl_name = 0 } }; +#if defined(CONFIG_BINFMT_MISC) || defined(CONFIG_BINFMT_MISC_MODULE) +static ctl_table binfmt_misc_table[] = { + { .ctl_name = 0 } +}; +#endif + static ctl_table fs_table[] = { { .ctl_name = FS_NRINODE, @@ -1054,10 +1059,6 @@ static ctl_table fs_table[] = { { .ctl_name = 0 } }; -static ctl_table binfmt_misc_table[] = { - { .ctl_name = 0 } -}; - static ctl_table debug_table[] = { { .ctl_name = 0 } }; _