]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf332692a9898ee9cf35789b54b7ef6846f026a93
tree52c5251e596645bb17644b5c16bbe34f4cdb2380
parentf03fda8f0fbb0b69ee733ac7178606f18b62bd4c
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