[Bug 1886155] Re: error: argument 2 of ‘__atomic_load’ discards ‘const’ qualifier

2020-08-19 Thread Jonathan Wakely
Which means that given an argument of type T * const this defines a local variable that is also T * const, and then tries to store the result of the atomic load into that const variable: ``` #define atomic_rcu_read(ptr) \ ({

[Bug 1886155] Re: error: argument 2 of ‘__atomic_load’ discards ‘const’ qualifier

2020-08-19 Thread Jonathan Wakely
It looks like `typeof_strip_qual` doesn't work for pointer types. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1886155 Title: error: argument 2 of ‘__atomic_load’ discards ‘const’ qualifier Statu