wake_up_interruptible(&poll->wait);
}
-static struct ctl_table root_table[1];
+static struct ctl_table root_table[] = {
+ {
+ .procname = "",
+ .mode = S_IRUGO|S_IXUGO,
+ .child = &root_table[1],
+ },
+ { }
+};
static struct ctl_table_root sysctl_table_root;
static struct ctl_table_header root_table_header = {
{{.count = 1,
goto out;
}
- table = table ? table->child : head->ctl_table;
+ table = table ? table->child : &head->ctl_table[1];
p = find_in_table(table, name);
if (!p) {
goto out;
}
- table = table ? table->child : head->ctl_table;
+ table = table ? table->child : &head->ctl_table[1];
ret = 0;
/* Avoid a switch here: arm builds fail with missing __cmpdi2 */
spin_lock(&sysctl_lock);
header->set = lookup_header_set(root, namespaces);
header->attached_by = header->ctl_table;
- header->attached_to = root_table;
+ header->attached_to = &root_table[1];
header->parent = &root_table_header;
set = header->set;
root = header->root;