Skip to contentSkip to conversation

hvcs: fixup container_of() usage

PATCH In review Alexey Dobriyan 2 participants 2 messages Jan 8, 2008 – Jan 12, 2008 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 hvcs: fixup container_of() usage

Please, fold into gregkh-driver-kobject-convert-hvcs-to-use-kref-not-kobject.patch
----------------------------------------------------------------------
[PATCH -mm 3/4] hvcs: fixup container_of() usage

---

 drivers/char/hvcs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/hvcs.c +1 -1
@@ -304,7 +304,7 @@ struct hvcs_struct {
 };
 
 /* Required to back map a kref to its containing object */
-#define from_kref(kref) container_of(kref, struct hvcs_struct, kref)
+#define from_kref(k) container_of(k, struct hvcs_struct, kref)
 
 static LIST_HEAD(hvcs_structs);
 static DEFINE_SPINLOCK(hvcs_structs_lock);
#1 lore raw
Quoted 6 lines · Alexey Dobriyan

Please, fold into gregkh-driver-kobject-convert-hvcs-to-use-kref-not-kobject.patch
----------------------------------------------------------------------
[PATCH -mm 3/4] hvcs: fixup container_of() usage

Thanks, i've now merged it in.

greg k-h