powerpc/mm/radix: Fix always false comparison against MMU_NO_CONTEXT

Michael Ellerman patch-notifications at ellerman.id.au
Wed Apr 4 02:03:38 AEST 2018


On Thu, 2018-03-22 at 21:03:18 UTC, Mathieu Malaterre wrote:
> In commit 9690c1574268 ("powerpc/mm/radix: Fix always false comparison
> against MMU_NO_CONTEXT") an issue was discovered where `mm->context.id` was
> being truncated to an `unsigned int`, while the PID is actually an
> `unsigned long`. Update the earlier patch by fixing one remaining
> occurrence. Discovered during a compilation with W=1:
> 
>   arch/powerpc/mm/tlb-radix.c:702:19: error: comparison is always false due to limited range of data type [-Werror=type-limits]
> 
> Signed-off-by: Mathieu Malaterre <malat at debian.org>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/19e68b2aec3c0a2bd770d3c358a296

cheers


More information about the Linuxppc-dev mailing list