Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751047AbWJQXJd (ORCPT ); Tue, 17 Oct 2006 19:09:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751049AbWJQXJd (ORCPT ); Tue, 17 Oct 2006 19:09:33 -0400 Received: from livid.absolutedigital.net ([66.92.46.173]:35080 "EHLO mx2.absolutedigital.net") by vger.kernel.org with ESMTP id S1751043AbWJQXJc (ORCPT ); Tue, 17 Oct 2006 19:09:32 -0400 Date: Tue, 17 Oct 2006 19:09:02 -0400 (EDT) From: Cal Peake To: Andrew Morton cc: Alan Cox , Randy Dunlap , Jan Beulich , Kernel Mailing List , Eric Biederman Subject: [PATCH] Undeprecate the sysctl system call In-Reply-To: <20061017150016.8dbad3c5.akpm@osdl.org> Message-ID: References: <453519EE.76E4.0078.0@novell.com> <20061017091901.7193312a.rdunlap@xenotime.net> <1161123096.5014.0.camel@localhost.localdomain> <20061017150016.8dbad3c5.akpm@osdl.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2960 Lines: 75 On Tue, 17 Oct 2006, Andrew Morton wrote: > yes, it appears that we screwed that up, but I haven't got around to thinking about > it yet. Well, here's a patch that hopefully solves the mess :) From: Cal Peake Undeprecate the sysctl system call and default to always include it with the option for embedded folks to exclude it. Also, remove it's entry from the feature removal file. Signed-off-by: Cal Peake --- ./init/Kconfig~orig 2006-10-17 17:54:09.000000000 -0400 +++ ./init/Kconfig 2006-10-17 18:49:36.000000000 -0400 @@ -303,20 +303,20 @@ config UID16 config SYSCTL_SYSCALL bool "Sysctl syscall support" if EMBEDDED - default n + default y select SYSCTL ---help--- - Enable the deprecated sysctl system call. sys_sysctl uses - binary paths that have been found to be a major pain to maintain - and use. The interface in /proc/sys is now the primary and what - everyone uses. - - Nothing has been using the binary sysctl interface for some - time now so nothing should break if you disable sysctl syscall - support, and your kernel will get marginally smaller. + This option allows you to specify whether or not to build into + your kernel support for the sysctl system call. You can disable + this if you are building a kernel for a system with limited + resources (e.g. an embedded device) and your kernel image will + shrink by a few kilobytes. + + NOTE: Disabling this option will cause a warning to be printed + if a program attempts to use this system call. - Unless you have an application that uses the sys_sysctl interface - you should probably say N here. + If you are sure your userspace enviroment has no need for this + system call you can say N here. config KALLSYMS bool "Load all symbols for debugging/kksymoops" if EMBEDDED --- ./Documentation/feature-removal-schedule.txt~orig 2006-10-17 17:54:04.000000000 -0400 +++ ./Documentation/feature-removal-schedule.txt 2006-10-17 18:10:35.000000000 -0400 @@ -53,18 +53,6 @@ Who: Mauro Carvalho Chehab - ---------------------------- - What: PCMCIA control ioctl (needed for pcmcia-cs [cardmgr, cardctl]) When: November 2005 Files: drivers/pcmcia/: pcmcia_ioctl.c - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/