[Devel] patch kobject-comment-and-warning-fixes-to-kobject.c.patch added to gregkh-2.6 tree

gregkh at suse.de gregkh at suse.de
Thu Apr 12 16:00:06 PDT 2007


This is a note to let you know that I've just added the patch titled

     Subject: kobject: Comment and warning fixes to kobject.c

to my gregkh-2.6 tree.  Its filename is

     kobject-comment-and-warning-fixes-to-kobject.c.patch

This tree can be found at 
    http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/


>From ebiederm at xmission.com Fri Apr  6 09:47:44 2007
From: ebiederm at xmission.com (Eric W. Biederman)
Date: Fri, 06 Apr 2007 10:47:11 -0600
Subject: kobject: Comment and warning fixes to kobject.c
To: Greg Kroah-Hartman <gregkh at suse.de>
Cc: Kay Sievers <kay.sievers at vrfy.org>, Linux Containers <containers at lists.osdl.org>
Message-ID: <m11wix8n74.fsf at ebiederm.dsl.xmission.com>


This dots some i's and crosses some t's after left over from when
kobject_kset_add_dir was built from kobject_add_dir. 

Signed-off-by: Eric W. Biederman <ebiederm at xmission.com>
Cc: Kay Sievers <kay.sievers at vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
 lib/kobject.c |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -569,7 +569,7 @@ static struct kobj_type dir_ktype = {
 };
 
 /**
- *	kobject__kset_add_dir - add sub directory of object.
+ *	kobject_kset_add_dir - add sub directory of object.
  *	@kset:		kset the directory is belongs to.
  *	@parent:	object in which a directory is created.
  *	@name:	directory name.
@@ -595,8 +595,8 @@ struct kobject *kobject_kset_add_dir(str
 	kobject_set_name(k, name);
 	ret = kobject_register(k);
 	if (ret < 0) {
-		printk(KERN_WARNING "kobject_add_dir: "
-			"kobject_register error: %d\n", ret);
+		printk(KERN_WARNING "%s: kobject_register error: %d\n",
+			__func__, ret);
 		kobject_del(k);
 		return NULL;
 	}
@@ -604,6 +604,13 @@ struct kobject *kobject_kset_add_dir(str
 	return k;
 }
 
+/**
+ *	kobject_add_dir - add sub directory of object.
+ *	@parent:	object in which a directory is created.
+ *	@name:	directory name.
+ *
+ *	Add a plain directory object as child of given object.
+ */
 struct kobject *kobject_add_dir(struct kobject *parent, const char *name)
 {
 	return kobject_kset_add_dir(NULL, parent, name);


Patches currently in gregkh-2.6 which might be from gregkh at suse.de are

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list