summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/kobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/kobject.h')
-rw-r--r--kernel/include/linux/kobject.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/include/linux/kobject.h b/kernel/include/linux/kobject.h
index 2d61b909f..e62845915 100644
--- a/kernel/include/linux/kobject.h
+++ b/kernel/include/linux/kobject.h
@@ -66,7 +66,7 @@ struct kobject {
struct kobject *parent;
struct kset *kset;
struct kobj_type *ktype;
- struct kernfs_node *sd;
+ struct kernfs_node *sd; /* sysfs directory entry */
struct kref kref;
#ifdef CONFIG_DEBUG_KOBJECT_RELEASE
struct delayed_work release;
@@ -80,8 +80,9 @@ struct kobject {
extern __printf(2, 3)
int kobject_set_name(struct kobject *kobj, const char *name, ...);
-extern int kobject_set_name_vargs(struct kobject *kobj, const char *fmt,
- va_list vargs);
+extern __printf(2, 0)
+int kobject_set_name_vargs(struct kobject *kobj, const char *fmt,
+ va_list vargs);
static inline const char *kobject_name(const struct kobject *kobj)
{