Skip to content

Commit a8c0bf3

Browse files
aikmpe
authored andcommitted
powerpc/lpar/debug: Initialize flags before printing debug message
With enabled DEBUG, there is a compile error: "error: ‘flags’ is used uninitialized in this function". This moves pr_devel() little further where @flags are initialized. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 79b4686 commit a8c0bf3

File tree

1 file changed

+3
-3
lines changed
  • arch/powerpc/platforms/pseries

1 file changed

+3
-3
lines changed

arch/powerpc/platforms/pseries/lpar.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,14 +306,14 @@ static long pSeries_lpar_hpte_updatepp(unsigned long slot,
306306

307307
want_v = hpte_encode_avpn(vpn, psize, ssize);
308308

309-
pr_devel(" update: avpnv=%016lx, hash=%016lx, f=%lx, psize: %d ...",
310-
want_v, slot, flags, psize);
311-
312309
flags = (newpp & 7) | H_AVPN;
313310
if (mmu_has_feature(MMU_FTR_KERNEL_RO))
314311
/* Move pp0 into bit 8 (IBM 55) */
315312
flags |= (newpp & HPTE_R_PP0) >> 55;
316313

314+
pr_devel(" update: avpnv=%016lx, hash=%016lx, f=%lx, psize: %d ...",
315+
want_v, slot, flags, psize);
316+
317317
lpar_rc = plpar_pte_protect(flags, slot, want_v);
318318

319319
if (lpar_rc == H_NOT_FOUND) {

0 commit comments

Comments
 (0)