diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 072ac446810aacac453cd66a9055aa04e67d0ac5..eb8bd214e7d7b8f682819ffb5e29b75c28c24d3c 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -399,7 +399,7 @@ static ctl_table kern_table[] = { .strategy = &sysctl_string, }, #endif -#ifdef CONFIG_HOTPLUG +#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET) { .ctl_name = KERN_HOTPLUG, .procname = "hotplug",