From 0b51541f84f3ab5350908502f34eb177870a505e Mon Sep 17 00:00:00 2001 From: Maria Yu Date: Tue, 26 Sep 2017 15:43:31 +0800 Subject: [PATCH] msm: kgsl: Printk format fix for 32bit build error Correct the printk format to solve the 32bit build error. Change-Id: I3b95ff104e491beb01c909e34239153202a908c9 Signed-off-by: Maria Yu --- drivers/gpu/msm/kgsl_gmu.c | 4 ++-- drivers/gpu/msm/kgsl_ioctl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/msm/kgsl_gmu.c b/drivers/gpu/msm/kgsl_gmu.c index ca3bafaac3e8..56496f7aaf33 100644 --- a/drivers/gpu/msm/kgsl_gmu.c +++ b/drivers/gpu/msm/kgsl_gmu.c @@ -182,8 +182,8 @@ static int alloc_and_map(struct gmu_device *gmu, unsigned int ctx_id, if (ret) { dev_err(&gmu->pdev->dev, - "gmu map err: gaddr=0x%016llX, paddr=0x%016llX\n", - md->gmuaddr, md->physaddr); + "gmu map err: gaddr=0x%016llX, paddr=0x%pa\n", + md->gmuaddr, &(md->physaddr)); free_gmu_mem(gmu, md); } diff --git a/drivers/gpu/msm/kgsl_ioctl.c b/drivers/gpu/msm/kgsl_ioctl.c index bfce4d41fde9..9b02e1993a09 100644 --- a/drivers/gpu/msm/kgsl_ioctl.c +++ b/drivers/gpu/msm/kgsl_ioctl.c @@ -145,7 +145,7 @@ long kgsl_ioctl_helper(struct file *filep, unsigned int cmd, unsigned long arg, if (_IOC_SIZE(cmds[nr].cmd) > sizeof(data)) { if (__ratelimit(&_rs)) - WARN(1, "data too big for ioctl 0x%08X: %d/%ld\n", + WARN(1, "data too big for ioctl 0x%08X: %d/%zu\n", cmd, _IOC_SIZE(cmds[nr].cmd), sizeof(data)); return -EINVAL; }