2008-01-08 08:45:36

by Alexey Dobriyan

[permalink] [raw]
Subject: [PATCH -mm 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

Signed-off-by: Alexey Dobriyan <[email protected]>
---

drivers/char/hvcs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/char/hvcs.c
+++ b/drivers/char/hvcs.c
@@ -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);


2008-01-12 01:32:58

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH -mm 3/4] hvcs: fixup container_of() usage

On Tue, Jan 08, 2008 at 11:45:20AM +0300, Alexey Dobriyan wrote:
> Please, fold into
> gregkh-driver-kobject-convert-hvcs-to-use-kref-not-kobject.patch
> ----------------------------------------------------------------------
> [PATCH -mm 3/4] hvcs: fixup container_of() usage
>
> Signed-off-by: Alexey Dobriyan <[email protected]>

Thanks, i've now merged it in.

greg k-h