Subject: Re: linux-next: Tree for July 12 (debugfs/sysfs/rcu)

From: Greg KH <[email-masked]>
Date: Mon, 12 Jul 2010 14:21:26 -0700

On Mon, Jul 12, 2010 at 12:47:50PM -0700, Randy Dunlap wrote:
> On Mon, 12 Jul 2010 15:51:09 +1000 Stephen Rothwell wrote:
> 
> > Hi all,
> > 
> > Changes since 20100709:
> 
> Greg,
> What is there about debugfs that requires sysfs?

Look at commit 3348e05a4f25489908d9f7ed4e80ac291ead18f4 almost 5 years
ago:
    [PATCH] DEBUG_FS must depend on SYSFS
    
    CONFIG_DEBUG_FS=y and CONFIG_SYSFS=n results in the following compile
    error:
    
    <--  snip  -->
    
    ...
      LD      vmlinux
    fs/built-in.o: In function `debugfs_init':
    inode.c:(.init.text+0x31be): undefined reference to `kernel_subsys'
    make: *** [vmlinux] Error 1
    
    <--  snip  -->

But, there is no "kernel_subsys" anymore, it is called kernel_kobj, and
is in kernel/ksysfs.c and always is built now, even if CONFIG_SYSFS is
disabled.

So it should be safe to remove that dependancy if you want to.

thanks,

greg k-h