]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/radix: Fix always false comparison against MMU_NO_CONTEXT
authorMathieu Malaterre <malat@debian.org>
Thu, 22 Mar 2018 21:03:18 +0000 (22:03 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 1 Apr 2018 12:15:34 +0000 (22:15 +1000)
commit380990c076374f61c30a867fd595815abbe8dbd0
treec662dd0f83f036f947c7460a20f2774d3532a051
parent968818fbab23b4f9b95416317003c2387ff6239d
powerpc/mm/radix: Fix always false comparison against MMU_NO_CONTEXT

In commit 38a662233758 ("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@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/tlb-radix.c