[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20111219.143404.706657080241404654.davem@davemloft.net>
Date: Mon, 19 Dec 2011 14:34:04 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: alex.bluesman.smirnov@...il.com
Cc: dbaryshkov@...il.com, linux-zigbee-devel@...ts.sourceforge.net,
netdev@...r.kernel.org
Subject: Re: [PATCH 02/14] mac802154: allocation of ieee802154 device
From: Alexander Smirnov <alex.bluesman.smirnov@...il.com>
Date: Mon, 19 Dec 2011 19:33:42 +0300
> + phy = wpan_phy_alloc(ALIGN(sizeof(*priv), NETDEV_ALIGN) + priv_size);
WHy make the call sites have to be cognizant of all of these crazy
alignment calculations?
Make wpan_phy_alloc() take care of it, and just pass the minimum amount of
information necessary for it to calculate the right size.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists