[Tux3] Patch: Example ddlink control interface
    OGAWA Hirofumi 
    hirofumi at mail.parknet.co.jp
       
    Fri Feb 27 16:27:13 PST 2009
    
    
  
Daniel Phillips <phillips at phunq.net> writes:
> +static struct ddctl *ddlink_alloc_ddctl(void)
> +{
> +	struct ddctl *dd = kmalloc(sizeof(struct ddctl), GFP_KERNEL);
> +	if (!dd)
> +		return NULL;
> +	*dd = (typeof(*dd)){
> +		.wait = __WAIT_QUEUE_HEAD_INITIALIZER(dd->wait),
We would need to use init_waitqueue_head() for lockdep, instead of
__WAIT_QUEUE_HEAD_INITIALIZER(). __WAIT_QUEUE_HEAD_INITIALIZER() can use
only for static object.
Thanks.
-- 
OGAWA Hirofumi <hirofumi at mail.parknet.co.jp>
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3
    
    
More information about the Tux3
mailing list