powerpc/eeh: Refactor report functions
authorSam Bobroff <sbobroff@linux.ibm.com>
Fri, 25 May 2018 03:11:40 +0000 (13:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:41 +0000 (20:43 +1000)
commit20b344971433da7bcd19265e5dc00a4d0df5e77e
tree99613c89826adf573ad55210159af0607b5ec3b5
parent665012c5734b0f2123dfb4b2bdd44c3344647b9a
powerpc/eeh: Refactor report functions

The EEH report functions now share a fair bit of code around the start
and end of each function.

So factor out as much as possible, and move the traversal into a
custom function. This also allows accurate debug to be generated more
easily.

Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
[mpe: Format with clang-format]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_driver.c