OSDN Git Service

powerpc/eeh: Strengthen types of eeh traversal functions
authorSam Bobroff <sbobroff@linux.ibm.com>
Fri, 25 May 2018 03:11:32 +0000 (13:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:38 +0000 (20:43 +1000)
commitd6c4932fbf2421bfd7f8fe75baa4ccef4a845f79
tree52c5251e596645bb17644b5c16bbe34f4cdb2380
parenta0bd54641be9df3a84f693035fbc2c31f7ca644e
powerpc/eeh: Strengthen types of eeh traversal functions

The traversal functions eeh_pe_traverse() and eeh_pe_dev_traverse()
both provide their first argument as void * but every single user casts
it to the expected type.

Change the type of the first parameter from void * to the appropriate
type, and clean up all uses.

Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/eeh_driver.c
arch/powerpc/kernel/eeh_pe.c