Skip to content

Commit 7767d9a

Browse files
committed
powerpc/papr_scm: Fix build error due to wrong printf specifier
When I changed the rc variable to be long rather than int64_t I neglected to update the printk(), leading to a build break: arch/powerpc/platforms/pseries/papr_scm.c: In function 'papr_scm_pmem_flush': arch/powerpc/platforms/pseries/papr_scm.c:144:26: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'long int' [-Wformat=] Fixes: 75b7c05 ("powerpc/papr_scm: Implement support for H_SCM_FLUSH hcall") Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d6481a7 commit 7767d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/platforms/pseries/papr_scm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static int papr_scm_pmem_flush(struct nd_region *nd_region,
141141
} while (rc == H_BUSY);
142142

143143
if (rc) {
144-
dev_err(&p->pdev->dev, "flush error: %lld", rc);
144+
dev_err(&p->pdev->dev, "flush error: %ld", rc);
145145
rc = -EIO;
146146
} else {
147147
dev_dbg(&p->pdev->dev, "flush drc 0x%x complete", p->drc_index);

0 commit comments

Comments
 (0)