powerpc/ptdump: Fix build failure in hashpagetable.c
commit2150c25b76fbd9cb8f9ad74d7e43e58210b6e36e
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 15 Jun 2020 13:18:39 +0000 (15 13:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:05:24 +0000 (21 13:05 +0200)
treec48c085b195ac5de4c74f2b1571e4eee4504cc68
parent7a991df9e5cb9d84a6be98f4a56c639431c726c3
powerpc/ptdump: Fix build failure in hashpagetable.c

commit 7c466b0807960edc13e4b855be85ea765df9a6cd upstream.

H_SUCCESS is only defined when CONFIG_PPC_PSERIES is defined.

!= H_SUCCESS means != 0. Modify the test accordingly.

Fixes: 65e701b2d2a8 ("powerpc/ptdump: drop non vital #ifdefs")
Cc: stable@vger.kernel.org
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/795158fc1d2b3dff3bf7347881947a887ea9391a.1592227105.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/mm/ptdump/hashpagetable.c