On Tue, Oct 29, 2019 at 12:43:24PM +0100, Rasmus Villemoes wrote: > On 29/10/2019 11.50, Dan Carpenter wrote: > > This should probably work? > > I haven't tested it, but yes, something like that. Can you also do the > case of struct property::value, i.e. handling > > struct property *p = ...; > u32 *v = p->value; Attached. This has a bunch of flaws like "void *value = p->value;" doesn't generate a warning. A function that returns a u32 pointer doing "return p->value;" doesn't generate a value. Anyway, it's a starting point to experiment with. regards, dan carpenter