/* This is to be used in cases where the base 'struct flex_array' has been statically allocated and should not be free.  */
void flex_array_free_parts(struct flex_array *fa)
/* This is to be used in cases where the base 'struct flex_array' has been statically allocated and should not be free.  */
void flex_array_free_parts(struct flex_array *fa)
{
	int part_nr;
	if (elements_fit_in_base(fa))
		return;
	for (part_nr = 0; part_nr < FLEX_ARRAY_NR_BASE_PTRS; part_nr++)
		kfree(fa->parts[part_nr]);
}