From: Felipe Balbi Date: Wed, 30 Sep 2015 11:32:19 -0500 Subject: [Cluster-devel] [PATCH 02/23] usb-gadget: use per-attribute show and store methods In-Reply-To: <20150930162046.GB2627@mtj.duckdns.org> References: <1443189000-13398-1-git-send-email-hch@lst.de> <1443189000-13398-3-git-send-email-hch@lst.de> <20150927155053.GD16364@saruman.tx.rr.com> <20150928133514.GB30453@lst.de> <20150930161925.GJ32625@saruman.tx.rr.com> <20150930162046.GB2627@mtj.duckdns.org> Message-ID: <20150930163219.GN32625@saruman.tx.rr.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Wed, Sep 30, 2015 at 12:20:46PM -0400, Tejun Heo wrote: > On Wed, Sep 30, 2015 at 11:19:25AM -0500, Felipe Balbi wrote: > > On Mon, Sep 28, 2015 at 03:35:14PM +0200, Christoph Hellwig wrote: > > > On Sun, Sep 27, 2015 at 10:50:53AM -0500, Felipe Balbi wrote: > > > > this (and the other helper below) could be macros just fine. > > > > > > They could, but they shouldn't. Inlines are always preferable over > > > function-like macros. > > > > says who ? And why ? > > Documentation/CodingStyle container_of() is type-safe, what is an inline function bringing as benefit ? -- balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: