]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 4 Sep 2020 19:29:43 +0000 (16:29 -0300)
commit7052b9573652aebfc6d1f8c0b1f4954e3f14d579
treed89c8ac20fd327edbf31e1d16cbd8b653e791928
parent46fac3547ec9a445d3c4aaf1eb48af38446567fa
powerpc/ptdump: Fix build failure in hashpagetable.c

BugLink: https://bugs.launchpad.net/bugs/1892899
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/powerpc/mm/ptdump/hashpagetable.c