]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc: Use the TRAP macro whenever comparing a trap number
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 12 Jan 2018 02:28:49 +0000 (13:28 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 16 Jan 2018 12:51:43 +0000 (23:51 +1100)
commit2271db20e4b362405bacc0e4095df4177d38129e
treea9ea74f9abb5c432b747bd0ccf95fc6316693a7e
parent872e2ae4bdd4c244f7617ffc08c39462192460ee
powerpc: Use the TRAP macro whenever comparing a trap number

Trap numbers can have extra bits at the bottom that need to
be filtered out. There are a few cases where we don't do that.

It's possible that we got lucky but better safe than sorry.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/process.c
arch/powerpc/kernel/traps.c
arch/powerpc/mm/fault.c