Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 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

authored by

Christophe Leroy and committed by
Michael Ellerman
7c466b08 55bd9ac4

+1 -1
+1 -1
arch/powerpc/mm/ptdump/hashpagetable.c
··· 258 258 for (i = 0; i < HPTES_PER_GROUP; i += 4, hpte_group += 4) { 259 259 lpar_rc = plpar_pte_read_4(0, hpte_group, (void *)ptes); 260 260 261 - if (lpar_rc != H_SUCCESS) 261 + if (lpar_rc) 262 262 continue; 263 263 for (j = 0; j < 4; j++) { 264 264 if (HPTE_V_COMPARE(ptes[j].v, want_v) &&