Re: [PATCH] documentation: make it clear that sysfs is optional

From: Randy Dunlap
Date: Sat Aug 01 2009 - 12:49:53 EST


On Sat, 1 Aug 2009 02:14:47 -0700 (PDT) Christian Kujau wrote:

> On Mon, 27 Jul 2009 at 09:26, Greg KH wrote:
> > Probably the same reason /proc is configurable. No one ever turns it
> > off, but hey, it's possible :)
>
> Hm, it seems as we cannot turn off PROC_FS or SYSFS any more. At least on
> my system a "make allnoconfig" still selects both. While PROC_FS still
> shows up under Filesystems->Pseudo-Filesystem (but cannot be turned off),
> I don't see a menuconfig knob to turn off SYSFS.
> However, "make allnoconfig" still selects quite a few options anyway:
>
> # uname -m
> x86_64
> # make allnoconfig
> # grep -c =y .config
> 175
>
> (manually editing .config gets reverted on another "make config").
>
> So, it loks like SYSFS is just one of the things needed to build a kernel,
> along with the ~170 other things, at least on x86_64. Is this "make it
> clear that sysfs is optional" patch still valid? :-)


It's no problem to disable PROC_FS and SYSFS if you first enable
CONFIG_EMBEDDED>


> sid$ find . -name Kconfig | xargs grep SYSFS | egrep -v 'drivers/|fs/|net/'
> ./arch/arm/mach-pxa/Kconfig: select GPIO_SYSFS
> ./arch/powerpc/kvm/Kconfig: depends on KVM && MARKERS && SYSFS
> ./arch/x86/kvm/Kconfig: depends on KVM && SYSFS
> ./init/Kconfig:config SYSFS_DEPRECATED
> ./init/Kconfig:config SYSFS_DEPRECATED_V2
> ./init/Kconfig: depends on SYSFS
> ./init/Kconfig: select SYSFS_DEPRECATED
> ./init/Kconfig: depends on SLUB && SYSFS
> ./kernel/trace/Kconfig: depends on SYSFS
> ./security/Kconfig: depends on SYSFS


---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/