OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 4/4] Fixup container_of() usage
Re: [PATCH 4/4] Fixup container_of() usage [message #25731 is a reply to message #25720] Tue, 08 January 2008 10:40 Go to previous message
Rusty Russell is currently offline  Rusty Russell
Messages: 10
Registered: March 2007
Junior Member
On Tuesday 08 January 2008 19:46:29 Alexey Dobriyan wrote:
> Using "attr" twice is not OK, because it effectively prohibits such
> container_of() on variables not named "attr".
>
> Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>

Thanks, nice catch.  Took me a while to understand that you meant "you can't 
use to_sq_sysfs_attr() on a variable not named attr".

Acked-by: Rusty Russell <rusty@rustcorp.com.au>
 
Read Message
Read Message
Previous Topic: [PATCH] proc: fix ->open'less usage due to ->proc_fops flip
Next Topic: util-linux-ng: unprivileged mounts support
Goto Forum:
  


Current Time: Sat Sep 06 13:55:24 GMT 2025

Total time taken to generate the page: 0.07887 seconds