lkml.org 
[lkml]   [2008]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 4/4] Fixup container_of() usage
Date
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>


\
 
 \ /
  Last update: 2008-01-08 11:43    [W:0.024 / U:0.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site