]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ia64: IA32 support without sysctl doesn't work lia64-v2.5.64
authorBjorn Helgaas <bjorn_helgaas@hp.com>
Thu, 6 Mar 2003 14:28:14 +0000 (06:28 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Thu, 6 Mar 2003 14:28:14 +0000 (06:28 -0800)
Make CONFIG_SYSCTL control sys32_sysctl as well.  Based on a patch from Peter Chubb.

arch/ia64/ia32/sys_ia32.c

index b28813552dfed5a15d3ad08eb1792d39e3c754d3..90f29cd1b75da50e2ffb3f6ad6d4d26222cf6f0d 100644 (file)
@@ -3151,6 +3151,7 @@ extern asmlinkage long sys_sysctl(struct __sysctl_args *args);
 asmlinkage long
 sys32_sysctl (struct sysctl32 *args)
 {
+#ifdef CONFIG_SYSCTL
        struct sysctl32 a32;
        mm_segment_t old_fs = get_fs ();
        void *oldvalp, *newvalp;
@@ -3188,6 +3189,9 @@ sys32_sysctl (struct sysctl32 *args)
                return -EFAULT;
 
        return ret;
+#else
+       return -ENOSYS;
+#endif
 }
 
 asmlinkage long