Thread (3 messages) flat view 3 messages, 3 authors, 2010-06-11

Re: [PATCH 6/6] of/device: populate platform_device (of_device) resource table on allocation

From: Anton Vorontsov <hidden>
Date: 2010-06-10 16:52:43
Also in: linux-devicetree

On Thu, Jun 10, 2010 at 10:01:40AM -0600, M. Warner Losh wrote:
[...]
But this requires extra, bogus fields in the structure
False. The [0] field isn't bogus, it has a defined meaning.
It says: here is some amount of resouces may be allocated.
and creates a bogus sizeof issue.
Creates? False. The same sizeof problem exists in Grant's
approach. sizeof(*dev) != what_we_have_allocated. Which is
isn't great, I agree. And that's exactly why I proposed a
dedicated allocation in the first place.

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help