Andrew Morton <akpm@linux-foundation.org> writes:
quoted text >> diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
>> index 7858eac..6e61033 100644
>> --- a/include/linux/sysfs.h
>> +++ b/include/linux/sysfs.h
>> @@ -20,6 +20,8 @@
>> struct kobject;
>> struct module;
>>
>> +extern int kobject_set_name(struct kobject *kobj, const char *name, ...)
>> + __attribute__((format(printf, 2, 3)));
>
> Duplicating the kobject_set_name() declaration in sysfs.h is rather a hack.
A bit. It really isn't worse then a struct declaration like struct kobject;
quoted text > It'd be better to move it into a new header file, included by both
> sysfs.h and kobject.h. Perhaps there are other declarations which can
> be moved with it.
My gut feel says that sysfs.h should include kobject.h instead of the
other way around.
However it gets reorganized, it is an entirely separate problem
from the one this patch sets out to solve and so should go in
a different patch.
Eric
--
unsubscribe notice 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/
Messages in current thread:
Re: [PATCH] Fix kobject_rename and !CONFIG_SYSFS v4 , Eric W. Biederman , (Wed May 14, 5:01 am)