# Re: \[PATCH 1/3\] futex: remove duplicated code

- From: Michael Ellerman \<mpe@ellerman.id.au\>
- Date: 2017-03-04 12:50:39 
- List: linux-alpha
- Page: https://ratatoskr.run/linux-alpha/2017/03/4946451
- Thread: https://ratatoskr.run/linux-alpha/2017/03/4945858/t.md

```text
Jiri Slaby [ref] writes:

> There is code duplicated over all architecture's headers for
> futex_atomic_op_inuser. Namely op decoding, access_ok check for uaddr,
> and comparison of the result.
>
> Remove this duplication and leave up to the arches only the needed
> assembly which is now in arch_futex_atomic_op_inuser.

Looks OK and boots on powerpc. But I don't think anything's actually
calling those futex ops. Is there a test suite I should run?

Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)

cheers

```
