]> git.hungrycats.org Git - linux/commitdiff
[SPARC64]: Fix build with sysctl disabled.
authorDavid S. Miller <davem@nuts.davemloft.net>
Mon, 16 Feb 2004 14:25:57 +0000 (06:25 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Mon, 16 Feb 2004 14:25:57 +0000 (06:25 -0800)
arch/sparc64/kernel/sys_sparc32.c

index 744312929c2bfcf916bc4ef311e92b1a1c33013c..f90ad24fcfd3be85c0987b97e705b5cb93666ae3 100644 (file)
@@ -2713,6 +2713,9 @@ struct __sysctl_args32 {
 
 asmlinkage long sys32_sysctl(struct __sysctl_args32 *args)
 {
+#ifndef CONFIG_SYSCTL
+       return -ENOSYS;
+#else
        struct __sysctl_args32 tmp;
        int error;
        size_t oldlen, *oldlenp = NULL;
@@ -2747,6 +2750,7 @@ asmlinkage long sys32_sysctl(struct __sysctl_args32 *args)
                copy_to_user(args->__unused, tmp.__unused, sizeof(tmp.__unused));
        }
        return error;
+#endif
 }
 
 extern long sys_lookup_dcookie(u64 cookie64, char *buf, size_t len);