diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-09-02 02:20:32 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-09-02 02:20:35 -0400 |
| commit | f14eff1cc2f418a7c5e23aedc6a1bdca3343b871 (patch) | |
| tree | fd8d5f7ed2b2e94eff4007e8da0e9ed205d8d5c9 /include/linux/flex_array.h | |
| parent | 84e9dabf6e6a78928c6a1a8ba235c9fb0908d0f8 (diff) | |
| parent | 326ba5010a5429a5a528b268b36a5900d4ab0eba (diff) | |
Merge commit 'v2.6.31-rc8' into sched/core
Merge reason: bump from rc5 to rc8, but also pick up TP_perf_assign()
API, a patch will be queued that depends on it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/flex_array.h')
| -rw-r--r-- | include/linux/flex_array.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/linux/flex_array.h b/include/linux/flex_array.h index 23c1ec79a31b..45ff18491514 100644 --- a/include/linux/flex_array.h +++ b/include/linux/flex_array.h | |||
| @@ -21,7 +21,7 @@ struct flex_array { | |||
| 21 | struct { | 21 | struct { |
| 22 | int element_size; | 22 | int element_size; |
| 23 | int total_nr_elements; | 23 | int total_nr_elements; |
| 24 | struct flex_array_part *parts[0]; | 24 | struct flex_array_part *parts[]; |
| 25 | }; | 25 | }; |
| 26 | /* | 26 | /* |
| 27 | * This little trick makes sure that | 27 | * This little trick makes sure that |
| @@ -36,12 +36,14 @@ struct flex_array { | |||
| 36 | .total_nr_elements = (total), \ | 36 | .total_nr_elements = (total), \ |
| 37 | } } } | 37 | } } } |
| 38 | 38 | ||
| 39 | struct flex_array *flex_array_alloc(int element_size, int total, gfp_t flags); | 39 | struct flex_array *flex_array_alloc(int element_size, unsigned int total, |
| 40 | int flex_array_prealloc(struct flex_array *fa, int start, int end, gfp_t flags); | 40 | gfp_t flags); |
| 41 | int flex_array_prealloc(struct flex_array *fa, unsigned int start, | ||
| 42 | unsigned int end, gfp_t flags); | ||
| 41 | void flex_array_free(struct flex_array *fa); | 43 | void flex_array_free(struct flex_array *fa); |
| 42 | void flex_array_free_parts(struct flex_array *fa); | 44 | void flex_array_free_parts(struct flex_array *fa); |
| 43 | int flex_array_put(struct flex_array *fa, int element_nr, void *src, | 45 | int flex_array_put(struct flex_array *fa, unsigned int element_nr, void *src, |
| 44 | gfp_t flags); | 46 | gfp_t flags); |
| 45 | void *flex_array_get(struct flex_array *fa, int element_nr); | 47 | void *flex_array_get(struct flex_array *fa, unsigned int element_nr); |
| 46 | 48 | ||
| 47 | #endif /* _FLEX_ARRAY_H */ | 49 | #endif /* _FLEX_ARRAY_H */ |
