Eric W. Biederman wrote:Argh, headers "cross-dependencies": * linux/kobject.h includes linux/sysfs.h before defining kobject_set_name() * linux/sysfs.h needs to include linux/kobject.h to find kobject_set_name() definition (for inlined sysfs_rename_dir() when CONFIG_SYSFS=n) sysfs_rename_dir() is only called by kobject.c, kobject_rename(). I guess this kind of patch is not acceptable to fix the depency? Index: linux-2.6/lib/kobject.c =================================================================== --- linux-2.6.orig/lib/kobject.c 2008-05-13 15:14:38.000000000 +0200 +++ linux-2.6/lib/kobject.c 2008-05-13 15:58:37.000000000 +0200 @@ -416,8 +416,11 @@ int kobject_rename(struct kobject *kobj, envp[0] = devpath_string; envp[1] = NULL; +#ifdef CONFIG_SYSFS error = sysfs_rename_dir(kobj, new_name); - +#else + error = kobject_set_name(kobj, "%s", new_name); +#endif /* This function is mostly/only used for network interface. * Some hotplug package track interfaces by their name and * therefore want to know when the name is changed by the user. */ -Benjamin -- B e n j a m i n T h e r y - BULL/DT/Open Software R&D http://www.bull.com --
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Kamalesh Babulal | [BUG] Linux 2.6.25-rc2 - Kernel Ooops while running dbench |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Paul Jackson | Re: cpuset-remove-sched-domain-hooks-from-cpusets |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Steven Rostedt | Re: -rt scheduling: wakeup bug? |
| David Miller | Re: [GIT]: Networking |
