]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ptdump: Fix build failure in hashpagetable.c
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 15 Jun 2020 13:18:39 +0000 (13:18 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 22 Jun 2020 00:37:58 +0000 (10:37 +1000)
commit05372dc73fb3e197ab48fff9203bacf961bb80e3
tree11a35e35f9f8ffc2b23e9ec961e9bf8336f71356
parentbee0e5a569f45d69dbd33321cd5e3dca311014de
powerpc/ptdump: Fix build failure in hashpagetable.c

H_SUCCESS is only defined when CONFIG_PPC_PSERIES is defined.

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

Fixes: 6ed11da90749 ("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
arch/powerpc/mm/ptdump/hashpagetable.c