[PATCH v2] ARM: tlb: ASID macro should give 32bit result for BE correct operation

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Oct 7 11:52:30 EDT 2013


On Mon, Oct 07, 2013 at 08:48:23AM -0700, Victor Kamensky wrote:
> -#define ASID(mm)	((mm)->context.id.counter & ~ASID_MASK)
> +#define ASID(mm)	((unsigned int)((mm)->context.id.counter & ~ASID_MASK))

Not a big problem, but "unsigned" is sufficient as per my suggestion.
See:

	http://en.wikipedia.org/wiki/C_data_types

or look it up in the C standards. :)  I'll take it either way.



More information about the linux-arm-kernel mailing list