On Wed, 27 Jan 2016, Thomas Gleixner wrote:

> On Wed, 27 Jan 2016, Mathieu Desnoyers wrote:
> > ----- On Jan 27, 2016, at 12:22 PM, Thomas Gleixner t...@linutronix.de 
> > wrote:
> > Sounds fair. What is the recommended typing for "ptr" then ?
> > uint32_t ** or uint32_t * ?
> > 
> > It would be expected to pass a "uint32_t *" for the set
> > operation, but the "get" operation requires a "uint32_t **".
> 
> Well, you can't change the types depending on the opcode, so you need to stick
> with **.

Alternatively you make it:

 (opcode, *newptr, **oldptr, flags);

Reply via email to