]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - include/linux/flex_array.h
flex_array: declare parts member to have incomplete type
[~shefty/rdma-dev.git] / include / linux / flex_array.h
index 23c1ec79a31b224470cc0d8e235ebc0a661baa17..603160db7c98ea58d2cb660d11d0211023045447 100644 (file)
@@ -21,7 +21,7 @@ struct flex_array {
                struct {
                        int element_size;
                        int total_nr_elements;
-                       struct flex_array_part *parts[0];
+                       struct flex_array_part *parts[];
                };
                /*
                 * This little trick makes sure that