From b38bf6a4e3bb321b1e4fad1be5a77faf22dcdcbc Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 30 Sep 2014 17:10:35 -0400 Subject: Remove register_sysctl() compatibility code The register_sysctl() interface has been stable since Linux 2.6.21. There is no longer a need to maintain compatibility code. Signed-off-by: Brian Behlendorf --- module/spl/spl-proc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module') diff --git a/module/spl/spl-proc.c b/module/spl/spl-proc.c index b4be84fef..3559c95bf 100644 --- a/module/spl/spl-proc.c +++ b/module/spl/spl-proc.c @@ -1127,7 +1127,7 @@ spl_proc_init(void) SENTRY; #ifdef CONFIG_SYSCTL - spl_header = spl_register_sysctl_table(spl_root, 0); + spl_header = register_sysctl_table(spl_root); if (spl_header == NULL) SRETURN(-EUNATCH); #endif /* CONFIG_SYSCTL */ @@ -1160,7 +1160,7 @@ out: #endif remove_proc_entry("spl", NULL); #ifdef CONFIG_SYSCTL - spl_unregister_sysctl_table(spl_header); + unregister_sysctl_table(spl_header); #endif /* CONFIG_SYSCTL */ } @@ -1181,7 +1181,7 @@ spl_proc_fini(void) #ifdef CONFIG_SYSCTL ASSERT(spl_header != NULL); - spl_unregister_sysctl_table(spl_header); + unregister_sysctl_table(spl_header); #endif /* CONFIG_SYSCTL */ SEXIT; -- cgit v1.2.3