]> git.baikalelectronics.ru Git - kernel.git/commit
flex_array: declare parts member to have incomplete type
authorDavid Rientjes <rientjes@google.com>
Wed, 26 Aug 2009 21:29:21 +0000 (14:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Aug 2009 03:06:52 +0000 (20:06 -0700)
commit929bccd8f969ed34f1e698e3cea0f550caa36948
tree8b4ce6b0597658deee6c968ed27663b097dca6b5
parent59bf5df840e5bb8b3f3069e9e099024bc04757d8
flex_array: declare parts member to have incomplete type

The `parts' member of struct flex_array should evaluate to an incomplete
type so that sizeof() cannot be used and C99 does not require the
zero-length specification.

Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: Dave Hansen <dave@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/flex_array.h