when i build program, the following error is occured:
error: kernel pointer arguments must point to
addrSpace global, local, or constant
__kernel void cell_traverse_level_non_leafs_kernel_func(int max_depth, int i, global struct _FttRootCell * RootD, global struct _FttOct * tree, unsigned int v)
^

my kernel is :
__kernel void cell_traverse_level_non_leafs_kernel_func(int max_depth, int i, global struct _FttRootCell * RootD, global struct _FttOct * tree, unsigned int v) {
.......
........
}

the weird is that the kernel arguments being pointers have the address qualifier global.

i don't know if it matters but i use as device a CPU with platform AMD Accelerated Parallel Processing.

the structs are:
struct _FttRootCell {
struct _FttCell cell;

struct _FttCellNeighbors neighbors;
struct _FttVector pos;
unsigned int level;
global void * parent;
};

struct _FttOct {
unsigned int level;
global struct _FttCell * parent;
struct _FttCellNeighbors neighbors;
struct _FttVector pos;

struct _FttCell cell[FTT_CELLS];
};


Thank you