diff options
Diffstat (limited to 'include/linux/flex_array.h')
| -rw-r--r-- | include/linux/flex_array.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/flex_array.h b/include/linux/flex_array.h index 6843cf193a44..b6efb0c64408 100644 --- a/include/linux/flex_array.h +++ b/include/linux/flex_array.h | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #define _FLEX_ARRAY_H | 2 | #define _FLEX_ARRAY_H |
| 3 | 3 | ||
| 4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
| 5 | #include <linux/reciprocal_div.h> | ||
| 5 | #include <asm/page.h> | 6 | #include <asm/page.h> |
| 6 | 7 | ||
| 7 | #define FLEX_ARRAY_PART_SIZE PAGE_SIZE | 8 | #define FLEX_ARRAY_PART_SIZE PAGE_SIZE |
| @@ -22,7 +23,7 @@ struct flex_array { | |||
| 22 | int element_size; | 23 | int element_size; |
| 23 | int total_nr_elements; | 24 | int total_nr_elements; |
| 24 | int elems_per_part; | 25 | int elems_per_part; |
| 25 | u32 reciprocal_elems; | 26 | struct reciprocal_value reciprocal_elems; |
| 26 | struct flex_array_part *parts[]; | 27 | struct flex_array_part *parts[]; |
| 27 | }; | 28 | }; |
| 28 | /* | 29 | /* |
