From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Dreier Subject: Re: [PATCH 05/10] iw_cxgb4: Add connection management functions. Date: Wed, 07 Apr 2010 14:36:31 -0700 Message-ID: References: <20100402192346.14117.92767.stgit@build.ogc.int> <20100402192413.14117.56138.stgit@build.ogc.int> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <20100402192413.14117.56138.stgit-T4OLL4TyM9aNDNWfRnPdfg@public.gmane.org> (Steve Wise's message of "Fri, 02 Apr 2010 14:24:14 -0500") Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Steve Wise Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org > +void _c4iw_free_ep(struct kref *kref) ... > + ep = container_of(container_of(kref, struct c4iw_ep_common, kref), > + struct c4iw_ep, com); sparse warns of some internal container_of variable shadowing itself here. You can avoid that and write this more simply as: ep = container_of(kref, struct c4iw_ep, com.kref); -- Roland Dreier || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html