OpenVZ Forum


Home » Mailing lists » Devel » [PATCH -mm 3/4] hvcs: fixup container_of() usage
[PATCH -mm 3/4] hvcs: fixup container_of() usage [message #25719] Tue, 08 January 2008 08:43 Go to next message
Alexey Dobriyan is currently offline  Alexey Dobriyan
Messages: 195
Registered: August 2006
Senior Member
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 <adobriyan@sw.ru>
---

 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);
Re: [PATCH -mm 3/4] hvcs: fixup container_of() usage [message #25953 is a reply to message #25719] Sat, 12 January 2008 01:32 Go to previous message
Greg KH is currently offline  Greg KH
Messages: 27
Registered: February 2006
Junior Member
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 <adobriyan@sw.ru>

Thanks, i've now merged it in.

greg k-h
Previous Topic: [PATCH -mm 1/4] genhd: fixup kobj_to_dev() macro
Next Topic: stat on /proc/<PID>/exe when <PID> is zombie inside a VE
Goto Forum:
  


Current Time: Tue Nov 12 23:18:13 GMT 2024

Total time taken to generate the page: 0.03079 seconds