flex_array: declare parts member to have incomplete type
Changes
1 files changed · +1 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| include/linux/flex_array.h | modified | +1 | −1 | View file |
include/linux/flex_array.h
View filediff --git a/include/linux/flex_array.h b/include/linux/flex_array.h
index 23c1ec7..603160d 100644
--- a/include/linux/flex_array.h
+++ b/include/linux/flex_array.h
@@ -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