当我尝试编译一个时,我得到了这个错误:
In file included from arch/arm/mach-msm/board-htcleo.c:81:0:
include/linux/ion.h:192:27: error: field 'permission_type' has incomplete type
我怎么解决这个问题?我的代码如下:
struct ion_cp_heap_pdata {
enum ion_permission_type permission_type;
unsigned int align;
ion_phys_addr_t secure_base; /* Base addr used when heap is shared */
size_t secure_size; /* Size used for securing heap when heap is shared*/
int reusable;
int mem_is_fmem;
enum ion_fixed_position fixed_position;
int iommu_map_all;
int iommu_2x_map_domain;
ion_virt_addr_t *virt_addr;
int (*request_region)(void *);
int (*release_region)(void *);
void *(*setup_region)(void);
};