The dev_private data field of an rtdm_dev_context is defined as char[0]. How do I access such a field properly (given the fact that I defined a nonzero context_size in the rtdm_device structure during driver registration) ?

E.g. trying to do:

(struct my_struct *)context->dev_private = NULL;

results in:

error: incompatible types in assignment

I _am_ able to compare though:

if ((struct my_struct *)context->dev_private == NULL)
...

seems to compile fine.


Jeroen.

Reply via email to