Re: [PATCH -next/-mmotm] bus/mhi: fix printk format for size_t

From: Andrew Morton
Date: Mon Mar 23 2020 - 22:25:36 EST


On Sun, 22 Mar 2020 10:19:52 +0530 Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx> wrote:

> On Sat, Mar 21, 2020 at 09:17:52PM -0700, Randy Dunlap wrote:
> > From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> >
> > Fix printk format warning by using %z for size_t modifier:
> >
> > ../drivers/bus/mhi/core/boot.c: In function âmhi_rddm_prepareâ:
> > ../drivers/bus/mhi/core/boot.c:55:15: warning: format â%lxâ expects argument of type âlong unsigned intâ, but argument 5 has type âsize_t {aka unsigned int}â [-Wformat=]
> > dev_dbg(dev, "Address: %p and len: 0x%lx sequence: %u\n",
> >
> >
> > Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
>
> Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx>

Thanks. I guess we should tell Greg, who presently holds the offending
patch. I shall add

Fixes: 6fdfdd27328ce ("bus: mhi: core: Add support for downloading RDDM image du
ring panic")

and send it over.