.. | .. |
---|
261 | 261 | * to use cmp_fn. |
---|
262 | 262 | * |
---|
263 | 263 | * A key can be a subset of a compound key; for that purpose, the |
---|
264 | | - * offset param is used to describe where within the the compound key |
---|
| 264 | + * offset param is used to describe where within the compound key |
---|
265 | 265 | * the key referenced by this key field resides. |
---|
266 | 266 | * |
---|
267 | 267 | * Return: The index identifying the field in the map and associated |
---|
.. | .. |
---|
284 | 284 | return idx; |
---|
285 | 285 | } |
---|
286 | 286 | |
---|
287 | | -void tracing_map_array_clear(struct tracing_map_array *a) |
---|
| 287 | +static void tracing_map_array_clear(struct tracing_map_array *a) |
---|
288 | 288 | { |
---|
289 | 289 | unsigned int i; |
---|
290 | 290 | |
---|
.. | .. |
---|
295 | 295 | memset(a->pages[i], 0, PAGE_SIZE); |
---|
296 | 296 | } |
---|
297 | 297 | |
---|
298 | | -void tracing_map_array_free(struct tracing_map_array *a) |
---|
| 298 | +static void tracing_map_array_free(struct tracing_map_array *a) |
---|
299 | 299 | { |
---|
300 | 300 | unsigned int i; |
---|
301 | 301 | |
---|
.. | .. |
---|
318 | 318 | kfree(a); |
---|
319 | 319 | } |
---|
320 | 320 | |
---|
321 | | -struct tracing_map_array *tracing_map_array_alloc(unsigned int n_elts, |
---|
| 321 | +static struct tracing_map_array *tracing_map_array_alloc(unsigned int n_elts, |
---|
322 | 322 | unsigned int entry_size) |
---|
323 | 323 | { |
---|
324 | 324 | struct tracing_map_array *a; |
---|