Hi,
On 13 April 2011 04:08, Nicolas Pitre nicolas.pitre@linaro.org wrote:
On Wed, 13 Apr 2011, Frederic Turgis wrote:
those macros. If you do something like:
int blah(int foo, long long *ptr1, long long *ptr2) { int err = 0; __stp_put_user_asm_dword(0, foo ? ptr1 : ptr2, err); return err; }
It is inline with what I see in the code where we do: __stp_put_user_asm_dword(x, &local, err);
I will align with "__put_user_err(x,ptr,err)" clean use of __pu_addr and it shall solve it.
And in parallel, I will try to go back to real kernel macros, I have just seen this move made for powerpc/s390 archs (in fact, copy/paste kernel macros seems to have been a not so clean fix for some powerpc issue that arm architecture reused when it was introduced)
Regards Fred