]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Fix running without sysfs
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 27 Sep 2007 05:02:53 +0000 (22:02 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:52:46 +0000 (16:52 -0700)
commit2b324e3f7f1fa7302fa5f53124fa256248811318
tree102ef996b06916215761b619737dbb65ea685525
parent404878bed63368a63c12e6fcdad682f61506fe11
[NET]: Fix running without sysfs

When sysfs support is compiled out the kernel still keeps and maintains
the kobject tree.  So it is not safe to skip our kobject reference counting or
to avoid becoming members of the kobject tree.  It is safe to not add
the networking specific sysfs attributes.

This patch removes the sysfs special cases from net/core/dev.c
renames functions from netdev_sysfs_xxxx to netdev_kobject_xxxx
and always compiles in net-sysfs.c

net-sysfs.c is modified with a CONFIG_SYSFS guard around the parts
that are actually sysfs specific.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/Makefile
net/core/dev.c
net/core/net-sysfs.c