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

From: Chris Metcalf
Date: Tue Mar 22 2011 - 09:43:43 EST

On 3/21/2011 10:46 PM, Darren Hart wrote:
> On 03/19/2011 08:45 AM, Chris Metcalf 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>
> Should we have caught this with a compiler warning (mismatch definition
> and prototype) ? If not, why not?
> Compile and boot tested?
> Acked-by: Darren Hart <dvhart@xxxxxxxxxxxxxxx>

Thanks for the acked-by, though it's already been pushed up to Linus's tree
(after I got the Reviewed-by from Michel).

The problem is that Michel provided the suggested change to the tile tree,
and I acked it for him back when it was being reviewed, but I missed that
he didn't change both prototype and definition since I didn't actually try
to build it in my tree. Instead I caught it next time I synced up my tree,
and that's when I pushed the fix above.

I'm not sure if Michel tried builds on more than one architecture or not,
but even if he had wanted to do a tile build, it's still trickier than
other architectures, since Tilera is still in the process of pushing the
tile changes for binutils and gcc back to the community. There are
tarballs and instructions for building our cross-tools on our website
( but I doubt many kernel submitters are willing
to build up a whole separate framework for build-testing our architecture.

Chris Metcalf, Tilera Corp.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at