Re: [PATCH] arch/tile: fix futex sanitization definition/prototype mismatch

From: Michel Lespinasse
Date: Sat Mar 19 2011 - 23:53:24 EST


On Sat, Mar 19, 2011 at 8:45 AM, Chris Metcalf <cmetcalf@xxxxxxxxxx> wrote:
> Commit 8d7718aa082aaf30a0b4989e1f04858952f941bc changed "int"
> to "u32" in the prototypes but not the definition.
> I missed this when I saw the patch go by on LKML.
>
> We cast "u32 *" to "int *" since we are tying into the underlying
> atomics framework, and atomic_t uses int as its value type.
>
> Signed-off-by: Chris Metcalf <cmetcalf@xxxxxxxxxx>

Reviewed-by: Michel Lespinasse <walken@xxxxxxxxxx>

Looks fine. I had held off from changing types within
futex_atomic_op_inuser() because the signed-ness of oparg and cmparg
was important there, but I agree changing at least the user pointer
types in futex_* operations is nice and safe.

--
Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/