]> git.baikalelectronics.ru Git - kernel.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)
commitdbf5d284eab229951674898e46e539abcf8011a4
treea9ea74f9abb5c432b747bd0ccf95fc6316693a7e
parent2e6b9ab7178a947636bf0a43dffd6628466a144c
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