[RFC PATCH] ARM: add workaround for ambiguous C99 stdint.h types

Ard Biesheuvel ard.biesheuvel at linaro.org
Fri Aug 9 10:18:30 EDT 2013


On 9 August 2013 16:14, Dave Martin <Dave.Martin at arm.com> wrote:
> On Fri, Aug 09, 2013 at 09:36:42AM +0200, Ard Biesheuvel wrote:

[...]

> Somebody else might have the opposite problem to ARM, so I'm doubtful
> about whether it's safe to do this for all arches.  The arch maintainers
> would have to comment on that.  This looks ugly in an otherwise generic
> header.
>

This is actually under arch/arm so that should not be a problem. In
fact, it's a copy of asm-generic/types.h with just the #defines added.

> (As a cosmetic thing, you can lose the #ifdefs.  #undef doesn't trigger
> an error of the specified macro doesn't already exist.)
>

I am aware of that, but I think it is cleaner not to pollute the
namespace if the defines weren't there to begin with.

Cheers,
Ard.



More information about the linux-arm-kernel mailing list