]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/memory-hotplug: Fix return value type of find_aa_index
authorYueHaibing <yuehaibing@huawei.com>
Tue, 9 Oct 2018 13:59:13 +0000 (21:59 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 13 Oct 2018 11:21:25 +0000 (22:21 +1100)
commita591209dd43990aed2d7be93f00a1b30ccb9b81d
tree88f80ef487481b70bf69e08d1715132b061b2e11
parent851bab2042f1ea22aeca4e1d370c3e869d614dae
powerpc/pseries/memory-hotplug: Fix return value type of find_aa_index

The variable 'aa_index' is defined as an unsigned value in
update_lmb_associativity_index(), but find_aa_index() may return -1
when dlpar_clone_property() fails. So change find_aa_index() to return
a bool, which indicates whether 'aa_index' was found or not.

Fixes: 6195837f3b61 ("powerpc/pseries: Dynamic add entires to associativity lookup array")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Nathan Fontenot nfont@linux.vnet.ibm.com>
[mpe: Tweak changelog, rename is_found to just found]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/hotplug-memory.c