Skip to content

Commit 0b4d414

Browse files
ebiedermLinus Torvalds
authored and
Linus Torvalds
committed
[PATCH] sysctl: remove insert_at_head from register_sysctl
The semantic effect of insert_at_head is that it would allow new registered sysctl entries to override existing sysctl entries of the same name. Which is pain for caching and the proc interface never implemented. I have done an audit and discovered that none of the current users of register_sysctl care as (excpet for directories) they do not register duplicate sysctl entries. So this patch simply removes the support for overriding existing entries in the sys_sysctl interface since no one uses it or cares and it makes future enhancments harder. Signed-off-by: Eric W. Biederman <[email protected]> Acked-by: Ralf Baechle <[email protected]> Acked-by: Martin Schwidefsky <[email protected]> Cc: Russell King <[email protected]> Cc: David Howells <[email protected]> Cc: "Luck, Tony" <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Corey Minyard <[email protected]> Cc: Neil Brown <[email protected]> Cc: "John W. Linville" <[email protected]> Cc: James Bottomley <[email protected]> Cc: Jan Kara <[email protected]> Cc: Trond Myklebust <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: David Chinner <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Patrick McHardy <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent ae83681 commit 0b4d414

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+75
-80
lines changed

arch/arm/kernel/isa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ register_isa_ports(unsigned int membase, unsigned int portbase, unsigned int por
7070
isa_membase = membase;
7171
isa_portbase = portbase;
7272
isa_portshift = portshift;
73-
isa_sysctl_header = register_sysctl_table(ctl_bus, 0);
73+
isa_sysctl_header = register_sysctl_table(ctl_bus);
7474
}

arch/frv/kernel/pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ static struct ctl_table pm_dir_table[] =
455455
*/
456456
static int __init pm_init(void)
457457
{
458-
register_sysctl_table(pm_dir_table, 0);
458+
register_sysctl_table(pm_dir_table);
459459
return 0;
460460
}
461461

arch/frv/kernel/sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ static struct ctl_table frv_dir_table[] =
216216
*/
217217
static int __init frv_sysctl_init(void)
218218
{
219-
register_sysctl_table(frv_dir_table, 0);
219+
register_sysctl_table(frv_dir_table);
220220
return 0;
221221
}
222222

arch/ia64/kernel/crash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ machine_crash_setup(void)
222222
if((ret = register_die_notifier(&kdump_init_notifier_nb)) != 0)
223223
return ret;
224224
#ifdef CONFIG_SYSCTL
225-
register_sysctl_table(sys_table, 0);
225+
register_sysctl_table(sys_table);
226226
#endif
227227
return 0;
228228
}

arch/ia64/kernel/perfmon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6726,7 +6726,7 @@ pfm_init(void)
67266726
/*
67276727
* create /proc/sys/kernel/perfmon (for debugging purposes)
67286728
*/
6729-
pfm_sysctl_header = register_sysctl_table(pfm_sysctl_root, 0);
6729+
pfm_sysctl_header = register_sysctl_table(pfm_sysctl_root);
67306730

67316731
/*
67326732
* initialize all our spinlocks

arch/ia64/sn/kernel/xpc_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ xpc_init(void)
12411241
snprintf(xpc_part->bus_id, BUS_ID_SIZE, "part");
12421242
snprintf(xpc_chan->bus_id, BUS_ID_SIZE, "chan");
12431243

1244-
xpc_sysctl = register_sysctl_table(xpc_sys_dir, 0);
1244+
xpc_sysctl = register_sysctl_table(xpc_sys_dir);
12451245

12461246
/*
12471247
* The first few fields of each entry of xpc_partitions[] need to

arch/mips/au1000/common/power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static struct ctl_table pm_dir_table[] = {
461461
*/
462462
static int __init pm_init(void)
463463
{
464-
register_sysctl_table(pm_dir_table, 0);
464+
register_sysctl_table(pm_dir_table);
465465
return 0;
466466
}
467467

arch/mips/lasat/sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ static int __init lasat_register_sysctl(void)
432432
struct ctl_table_header *lasat_table_header;
433433

434434
lasat_table_header =
435-
register_sysctl_table(lasat_root_table, 0);
435+
register_sysctl_table(lasat_root_table);
436436

437437
return 0;
438438
}

arch/powerpc/kernel/idle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static ctl_table powersave_nap_sysctl_root[] = {
125125
static int __init
126126
register_powersave_nap_sysctl(void)
127127
{
128-
register_sysctl_table(powersave_nap_sysctl_root, 0);
128+
register_sysctl_table(powersave_nap_sysctl_root);
129129

130130
return 0;
131131
}

arch/ppc/kernel/ppc_htab.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ static ctl_table htab_sysctl_root[] = {
457457
static int __init
458458
register_ppc_htab_sysctl(void)
459459
{
460-
register_sysctl_table(htab_sysctl_root, 0);
460+
register_sysctl_table(htab_sysctl_root);
461461

462462
return 0;
463463
}

arch/s390/appldata/appldata_base.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ int appldata_register_ops(struct appldata_ops *ops)
506506

507507
ops->ctl_table[3].ctl_name = 0;
508508

509-
ops->sysctl_header = register_sysctl_table(ops->ctl_table,0);
509+
ops->sysctl_header = register_sysctl_table(ops->ctl_table);
510510

511511
P_INFO("%s-ops registered!\n", ops->name);
512512
return 0;
@@ -606,7 +606,7 @@ static int __init appldata_init(void)
606606
/* Register cpu hotplug notifier */
607607
register_hotcpu_notifier(&appldata_nb);
608608

609-
appldata_sysctl_header = register_sysctl_table(appldata_dir_table, 0);
609+
appldata_sysctl_header = register_sysctl_table(appldata_dir_table);
610610
#ifdef MODULE
611611
appldata_dir_table[0].de->owner = THIS_MODULE;
612612
appldata_table[0].de->owner = THIS_MODULE;

arch/s390/kernel/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ __init debug_init(void)
10531053
{
10541054
int rc = 0;
10551055

1056-
s390dbf_sysctl_header = register_sysctl_table(s390dbf_dir_table, 0);
1056+
s390dbf_sysctl_header = register_sysctl_table(s390dbf_dir_table);
10571057
down(&debug_lock);
10581058
debug_debugfs_root_entry = debugfs_create_dir(DEBUG_DIR_ROOT,NULL);
10591059
printk(KERN_INFO "debug: Initialization complete\n");

arch/s390/mm/cmm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ cmm_init (void)
418418
int rc = -ENOMEM;
419419

420420
#ifdef CONFIG_CMM_PROC
421-
cmm_sysctl_header = register_sysctl_table(cmm_dir_table, 0);
421+
cmm_sysctl_header = register_sysctl_table(cmm_dir_table);
422422
if (!cmm_sysctl_header)
423423
goto out;
424424
#endif

arch/sh64/kernel/traps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ static ctl_table sh64_root[] = {
960960
static struct ctl_table_header *sysctl_header;
961961
static int __init init_sysctl(void)
962962
{
963-
sysctl_header = register_sysctl_table(sh64_root, 0);
963+
sysctl_header = register_sysctl_table(sh64_root);
964964
return 0;
965965
}
966966

arch/x86_64/ia32/ia32_binfmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static ctl_table abi_root_table2[] = {
367367

368368
static __init int ia32_binfmt_init(void)
369369
{
370-
register_sysctl_table(abi_root_table2, 0);
370+
register_sysctl_table(abi_root_table2);
371371
return 0;
372372
}
373373
__initcall(ia32_binfmt_init);

arch/x86_64/kernel/vsyscall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ static int __init vsyscall_init(void)
301301
BUG_ON((unsigned long) &vgetcpu != VSYSCALL_ADDR(__NR_vgetcpu));
302302
map_vsyscall();
303303
#ifdef CONFIG_SYSCTL
304-
register_sysctl_table(kernel_root_table2, 0);
304+
register_sysctl_table(kernel_root_table2);
305305
#endif
306306
on_each_cpu(cpu_vsyscall_init, NULL, 0, 1);
307307
hotcpu_notifier(cpu_vsyscall_notifier, 0);

arch/x86_64/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ static ctl_table debug_root_table2[] = {
734734

735735
static __init int x8664_sysctl_init(void)
736736
{
737-
register_sysctl_table(debug_root_table2, 0);
737+
register_sysctl_table(debug_root_table2);
738738
return 0;
739739
}
740740
__initcall(x8664_sysctl_init);

drivers/cdrom/cdrom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3553,7 +3553,7 @@ static void cdrom_sysctl_register(void)
35533553
if (initialized == 1)
35543554
return;
35553555

3556-
cdrom_sysctl_header = register_sysctl_table(cdrom_root_table, 0);
3556+
cdrom_sysctl_header = register_sysctl_table(cdrom_root_table);
35573557

35583558
/* set the defaults */
35593559
cdrom_sysctl_settings.autoclose = autoclose;

drivers/char/hpet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ static int __init hpet_init(void)
10181018
if (result < 0)
10191019
return -ENODEV;
10201020

1021-
sysctl_header = register_sysctl_table(dev_root, 0);
1021+
sysctl_header = register_sysctl_table(dev_root);
10221022

10231023
result = acpi_bus_register_driver(&hpet_acpi_driver);
10241024
if (result < 0) {

drivers/char/ipmi/ipmi_poweroff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ static int ipmi_poweroff_init (void)
686686
printk(KERN_INFO PFX "Power cycle is enabled.\n");
687687

688688
#ifdef CONFIG_PROC_FS
689-
ipmi_table_header = register_sysctl_table(ipmi_root_table, 0);
689+
ipmi_table_header = register_sysctl_table(ipmi_root_table);
690690
if (!ipmi_table_header) {
691691
printk(KERN_ERR PFX "Unable to register powercycle sysctl\n");
692692
rv = -ENOMEM;

drivers/char/rtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ static struct ctl_table_header *sysctl_header;
316316

317317
static int __init init_sysctl(void)
318318
{
319-
sysctl_header = register_sysctl_table(dev_root, 0);
319+
sysctl_header = register_sysctl_table(dev_root);
320320
return 0;
321321
}
322322

drivers/macintosh/mac_hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ int __init mac_hid_init(void)
138138
return err;
139139

140140
#if defined(CONFIG_SYSCTL)
141-
mac_hid_sysctl_header = register_sysctl_table(mac_hid_root_dir, 0);
141+
mac_hid_sysctl_header = register_sysctl_table(mac_hid_root_dir);
142142
#endif /* CONFIG_SYSCTL */
143143

144144
return 0;

drivers/md/md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5581,7 +5581,7 @@ static int __init md_init(void)
55815581
md_probe, NULL, NULL);
55825582

55835583
register_reboot_notifier(&md_notifier);
5584-
raid_table_header = register_sysctl_table(raid_root_table, 0);
5584+
raid_table_header = register_sysctl_table(raid_root_table);
55855585

55865586
md_geninit();
55875587
return (0);

drivers/net/wireless/arlan-proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ int __init init_arlan_proc(void)
12441244
return 0;
12451245
for (i = 0; i < MAX_ARLANS && arlan_device[i]; i++)
12461246
arlan_table[i].ctl_name = i + 1;
1247-
arlan_device_sysctl_header = register_sysctl_table(arlan_root_table, 0);
1247+
arlan_device_sysctl_header = register_sysctl_table(arlan_root_table);
12481248
if (!arlan_device_sysctl_header)
12491249
return -1;
12501250

drivers/parport/procfs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ int parport_proc_register(struct parport *port)
518518
t->parport_dir[0].child = t->port_dir;
519519
t->dev_dir[0].child = t->parport_dir;
520520

521-
t->sysctl_header = register_sysctl_table(t->dev_dir, 0);
521+
t->sysctl_header = register_sysctl_table(t->dev_dir);
522522
if (t->sysctl_header == NULL) {
523523
kfree(t);
524524
t = NULL;
@@ -574,7 +574,7 @@ int parport_device_proc_register(struct pardevice *device)
574574
t->device_dir[0].child = t->vars;
575575
t->vars[0].data = &device->timeslice;
576576

577-
t->sysctl_header = register_sysctl_table(t->dev_dir, 0);
577+
t->sysctl_header = register_sysctl_table(t->dev_dir);
578578
if (t->sysctl_header == NULL) {
579579
kfree(t);
580580
t = NULL;
@@ -597,7 +597,7 @@ int parport_device_proc_unregister(struct pardevice *device)
597597
static int __init parport_default_proc_register(void)
598598
{
599599
parport_default_sysctl_table.sysctl_header =
600-
register_sysctl_table(parport_default_sysctl_table.dev_dir, 0);
600+
register_sysctl_table(parport_default_sysctl_table.dev_dir);
601601
return 0;
602602
}
603603

drivers/scsi/scsi_sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static struct ctl_table_header *scsi_table_header;
4141

4242
int __init scsi_init_sysctl(void)
4343
{
44-
scsi_table_header = register_sysctl_table(scsi_root_table, 0);
44+
scsi_table_header = register_sysctl_table(scsi_root_table);
4545
if (!scsi_table_header)
4646
return -ENOMEM;
4747
return 0;

fs/coda/sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ void coda_sysctl_init(void)
271271

272272
#ifdef CONFIG_SYSCTL
273273
if ( !fs_table_header )
274-
fs_table_header = register_sysctl_table(fs_table, 0);
274+
fs_table_header = register_sysctl_table(fs_table);
275275
#endif
276276
}
277277

fs/dquot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ static int __init dquot_init(void)
18411841

18421842
printk(KERN_NOTICE "VFS: Disk quotas %s\n", __DQUOT_VERSION__);
18431843

1844-
register_sysctl_table(sys_table, 0);
1844+
register_sysctl_table(sys_table);
18451845

18461846
dquot_cachep = kmem_cache_create("dquot",
18471847
sizeof(struct dquot), sizeof(unsigned long) * 4,

fs/lockd/svc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ module_param(nsm_use_hostnames, bool, 0644);
512512

513513
static int __init init_nlm(void)
514514
{
515-
nlm_sysctl_table = register_sysctl_table(nlm_sysctl_root, 0);
515+
nlm_sysctl_table = register_sysctl_table(nlm_sysctl_root);
516516
return nlm_sysctl_table ? 0 : -ENOMEM;
517517
}
518518

fs/nfs/sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static ctl_table nfs_cb_sysctl_root[] = {
7575

7676
int nfs_register_sysctl(void)
7777
{
78-
nfs_callback_sysctl_table = register_sysctl_table(nfs_cb_sysctl_root, 0);
78+
nfs_callback_sysctl_table = register_sysctl_table(nfs_cb_sysctl_root);
7979
if (nfs_callback_sysctl_table == NULL)
8080
return -ENOMEM;
8181
return 0;

fs/ntfs/sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ int ntfs_sysctl(int add)
7070
{
7171
if (add) {
7272
BUG_ON(sysctls_root_table);
73-
sysctls_root_table = register_sysctl_table(sysctls_root, 0);
73+
sysctls_root_table = register_sysctl_table(sysctls_root);
7474
if (!sysctls_root_table)
7575
return -ENOMEM;
7676
#ifdef CONFIG_PROC_FS

fs/ocfs2/cluster/nodemanager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ static int __init init_o2nm(void)
922922
o2hb_init();
923923
o2net_init();
924924

925-
ocfs2_table_header = register_sysctl_table(ocfs2_root_table, 0);
925+
ocfs2_table_header = register_sysctl_table(ocfs2_root_table);
926926
if (!ocfs2_table_header) {
927927
printk(KERN_ERR "nodemanager: unable to register sysctl\n");
928928
ret = -ENOMEM; /* or something. */

fs/xfs/linux-2.6/xfs_sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static ctl_table xfs_root_table[] = {
251251
void
252252
xfs_sysctl_register(void)
253253
{
254-
xfs_table_header = register_sysctl_table(xfs_root_table, 0);
254+
xfs_table_header = register_sysctl_table(xfs_root_table);
255255
}
256256

257257
void

include/linux/sysctl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,8 +1035,8 @@ struct ctl_table_header
10351035
struct completion *unregistering;
10361036
};
10371037

1038-
struct ctl_table_header * register_sysctl_table(ctl_table * table,
1039-
int insert_at_head);
1038+
struct ctl_table_header * register_sysctl_table(ctl_table * table);
1039+
10401040
void unregister_sysctl_table(struct ctl_table_header * table);
10411041

10421042
#else /* __KERNEL__ */

ipc/ipc_sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static struct ctl_table ipc_root_table[] = {
176176

177177
static int __init ipc_sysctl_init(void)
178178
{
179-
register_sysctl_table(ipc_root_table, 0);
179+
register_sysctl_table(ipc_root_table);
180180
return 0;
181181
}
182182

ipc/mqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ static int __init init_mqueue_fs(void)
12551255
return -ENOMEM;
12561256

12571257
/* ignore failues - they are not fatal */
1258-
mq_sysctl_table = register_sysctl_table(mq_sysctl_root, 0);
1258+
mq_sysctl_table = register_sysctl_table(mq_sysctl_root);
12591259

12601260
error = register_filesystem(&mqueue_fs_type);
12611261
if (error)

kernel/sysctl.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,6 @@ int do_sysctl_strategy (ctl_table *table,
12441244
/**
12451245
* register_sysctl_table - register a sysctl hierarchy
12461246
* @table: the top-level table structure
1247-
* @insert_at_head: whether the entry should be inserted in front or at the end
12481247
*
12491248
* Register a sysctl table hierarchy. @table should be a filled in ctl_table
12501249
* array. An entry with a ctl_name of 0 terminates the table.
@@ -1310,8 +1309,7 @@ int do_sysctl_strategy (ctl_table *table,
13101309
* This routine returns %NULL on a failure to register, and a pointer
13111310
* to the table header on success.
13121311
*/
1313-
struct ctl_table_header *register_sysctl_table(ctl_table * table,
1314-
int insert_at_head)
1312+
struct ctl_table_header *register_sysctl_table(ctl_table * table)
13151313
{
13161314
struct ctl_table_header *tmp;
13171315
tmp = kmalloc(sizeof(struct ctl_table_header), GFP_KERNEL);
@@ -1322,10 +1320,7 @@ struct ctl_table_header *register_sysctl_table(ctl_table * table,
13221320
tmp->used = 0;
13231321
tmp->unregistering = NULL;
13241322
spin_lock(&sysctl_lock);
1325-
if (insert_at_head)
1326-
list_add(&tmp->ctl_entry, &root_table_header.ctl_entry);
1327-
else
1328-
list_add_tail(&tmp->ctl_entry, &root_table_header.ctl_entry);
1323+
list_add_tail(&tmp->ctl_entry, &root_table_header.ctl_entry);
13291324
spin_unlock(&sysctl_lock);
13301325
#ifdef CONFIG_PROC_SYSCTL
13311326
register_proc_table(table, proc_sys_root, tmp);

kernel/utsname_sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static struct ctl_table uts_root_table[] = {
139139

140140
static int __init utsname_sysctl_init(void)
141141
{
142-
register_sysctl_table(uts_root_table, 0);
142+
register_sysctl_table(uts_root_table);
143143
return 0;
144144
}
145145

net/appletalk/sysctl_net_atalk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static struct ctl_table_header *atalk_table_header;
7373

7474
void atalk_register_sysctl(void)
7575
{
76-
atalk_table_header = register_sysctl_table(atalk_root_table, 0);
76+
atalk_table_header = register_sysctl_table(atalk_root_table);
7777
}
7878

7979
void atalk_unregister_sysctl(void)

0 commit comments

Comments
 (0)