* [PATCH -next] dma/sh: fix rcar-dma.c printk format warnings
@ 2014-07-25 17:02 Randy Dunlap
2014-07-26 15:49 ` Vinod Koul
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2014-07-25 17:02 UTC (permalink / raw)
To: dmaengine@vger.kernel.org, Dan Williams; +Cc: LKML, Laurent Pinchart, dmaengine
From: Randy Dunlap <rdunlap@infradead.org>
Fix printk format warnings by using size_t modifiers ('z'):
../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects argument of type 'unsigned int', but argument 9 has type 'size_t' [-Wformat=]
../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects argument of type 'unsigned int', but argument 10 has type 'size_t' [-Wformat=]
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: dmaengine@vger.kernel.org
---
drivers/dma/sh/rcar-dmac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-next-20140725/drivers/dma/sh/rcar-dmac.c
===================================================================
--- linux-next-20140725.orig/drivers/dma/sh/rcar-dmac.c
+++ linux-next-20140725/drivers/dma/sh/rcar-dmac.c
@@ -757,7 +757,7 @@ rcar_dmac_chan_prep_sg(struct rcar_dmac_
hwdesc->size = size;
dev_dbg(chan->chan.device->dev,
- "chan%u: hwdesc %p/%p sgl %u@%p, %u/%u %pad -> %pad\n",
+ "chan%u: hwdesc %p/%p sgl %u@%p, %zu/%zu %pad -> %pad\n",
chan->index, hwdesc, desc, i, sg, size, len,
&hwdesc->src_addr, &hwdesc->dst_addr);
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH -next] dma/sh: fix rcar-dma.c printk format warnings 2014-07-25 17:02 [PATCH -next] dma/sh: fix rcar-dma.c printk format warnings Randy Dunlap @ 2014-07-26 15:49 ` Vinod Koul 2014-07-28 11:20 ` Laurent Pinchart 0 siblings, 1 reply; 5+ messages in thread From: Vinod Koul @ 2014-07-26 15:49 UTC (permalink / raw) To: Randy Dunlap, Simon Horman Cc: dmaengine@vger.kernel.org, Dan Williams, LKML, Laurent Pinchart On Fri, Jul 25, 2014 at 10:02:39AM -0700, Randy Dunlap wrote: > From: Randy Dunlap <rdunlap@infradead.org> > > Fix printk format warnings by using size_t modifiers ('z'): > > ../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects argument of type 'unsigned int', but argument 9 has type 'size_t' [-Wformat=] > ../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects argument of type 'unsigned int', but argument 10 has type 'size_t' [-Wformat=] > This is not present in dmaengine trees. Simon is this in your tree? -- ~Vinod > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > Cc: Dan Williams <dan.j.williams@intel.com> > Cc: dmaengine@vger.kernel.org > --- > drivers/dma/sh/rcar-dmac.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Index: linux-next-20140725/drivers/dma/sh/rcar-dmac.c > =================================================================== > --- linux-next-20140725.orig/drivers/dma/sh/rcar-dmac.c > +++ linux-next-20140725/drivers/dma/sh/rcar-dmac.c > @@ -757,7 +757,7 @@ rcar_dmac_chan_prep_sg(struct rcar_dmac_ > hwdesc->size = size; > > dev_dbg(chan->chan.device->dev, > - "chan%u: hwdesc %p/%p sgl %u@%p, %u/%u %pad -> %pad\n", > + "chan%u: hwdesc %p/%p sgl %u@%p, %zu/%zu %pad -> %pad\n", > chan->index, hwdesc, desc, i, sg, size, len, > &hwdesc->src_addr, &hwdesc->dst_addr); > > -- > To unsubscribe from this list: send the line "unsubscribe dmaengine" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH -next] dma/sh: fix rcar-dma.c printk format warnings 2014-07-26 15:49 ` Vinod Koul @ 2014-07-28 11:20 ` Laurent Pinchart 2014-07-28 11:31 ` Simon Horman 0 siblings, 1 reply; 5+ messages in thread From: Laurent Pinchart @ 2014-07-28 11:20 UTC (permalink / raw) To: Vinod Koul Cc: Randy Dunlap, Simon Horman, dmaengine@vger.kernel.org, Dan Williams, LKML On Saturday 26 July 2014 21:19:30 Vinod Koul wrote: > On Fri, Jul 25, 2014 at 10:02:39AM -0700, Randy Dunlap wrote: > > From: Randy Dunlap <rdunlap@infradead.org> > > > > Fix printk format warnings by using size_t modifiers ('z'): > > > > ../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects argument > > of type 'unsigned int', but argument 9 has type 'size_t' [-Wformat=] > > ../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects > > argument of type 'unsigned int', but argument 10 has type 'size_t' > > [-Wformat=] > > This is not present in dmaengine trees. Simon is this in your tree? The patch applies to a new driver under development that Simon took in his tree. From what he told me he plans to send a pull request soon. > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > > Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > > Cc: Dan Williams <dan.j.williams@intel.com> > > Cc: dmaengine@vger.kernel.org Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Simon, should I submit a new version that incorporates this change, or do you want to include it in your pull request directly (possibly squashing it in the original commit) ? > > --- > > > > drivers/dma/sh/rcar-dmac.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > Index: linux-next-20140725/drivers/dma/sh/rcar-dmac.c > > =================================================================== > > --- linux-next-20140725.orig/drivers/dma/sh/rcar-dmac.c > > +++ linux-next-20140725/drivers/dma/sh/rcar-dmac.c > > @@ -757,7 +757,7 @@ rcar_dmac_chan_prep_sg(struct rcar_dmac_ > > hwdesc->size = size; > > > > dev_dbg(chan->chan.device->dev, > > - "chan%u: hwdesc %p/%p sgl %u@%p, %u/%u %pad -> %pad\n", > > + "chan%u: hwdesc %p/%p sgl %u@%p, %zu/%zu %pad -> %pad\n", > > chan->index, hwdesc, desc, i, sg, size, len, > > &hwdesc->src_addr, &hwdesc->dst_addr); -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH -next] dma/sh: fix rcar-dma.c printk format warnings 2014-07-28 11:20 ` Laurent Pinchart @ 2014-07-28 11:31 ` Simon Horman 2014-07-28 12:08 ` Simon Horman 0 siblings, 1 reply; 5+ messages in thread From: Simon Horman @ 2014-07-28 11:31 UTC (permalink / raw) To: Laurent Pinchart Cc: Vinod Koul, Randy Dunlap, dmaengine@vger.kernel.org, Dan Williams, LKML [Replying again using an HTML-free mail client] On Mon, Jul 28, 2014 at 01:20:59PM +0200, Laurent Pinchart wrote: > On Saturday 26 July 2014 21:19:30 Vinod Koul wrote: > > On Fri, Jul 25, 2014 at 10:02:39AM -0700, Randy Dunlap wrote: > > > From: Randy Dunlap <rdunlap@infradead.org> > > > > > > Fix printk format warnings by using size_t modifiers ('z'): > > > > > > ../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects argument > > > of type 'unsigned int', but argument 9 has type 'size_t' [-Wformat=] > > > ../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects > > > argument of type 'unsigned int', but argument 10 has type 'size_t' > > > [-Wformat=] > > > > This is not present in dmaengine trees. Simon is this in your tree? > > The patch applies to a new driver under development that Simon took in his > tree. From what he told me he plans to send a pull request soon. > > > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > > > Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > > > Cc: Dan Williams <dan.j.williams@intel.com> > > > Cc: dmaengine@vger.kernel.org > > Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > > Simon, should I submit a new version that incorporates this change, or do you > want to include it in your pull request directly (possibly squashing it in the > original commit) ? Hi Laurent, sorry for any confusion that I may have caused. I will see about squashing this change into the original commit. > > > --- > > > > > > drivers/dma/sh/rcar-dmac.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > Index: linux-next-20140725/drivers/dma/sh/rcar-dmac.c > > > =================================================================== > > > --- linux-next-20140725.orig/drivers/dma/sh/rcar-dmac.c > > > +++ linux-next-20140725/drivers/dma/sh/rcar-dmac.c > > > @@ -757,7 +757,7 @@ rcar_dmac_chan_prep_sg(struct rcar_dmac_ > > > hwdesc->size = size; > > > > > > dev_dbg(chan->chan.device->dev, > > > - "chan%u: hwdesc %p/%p sgl %u@%p, %u/%u %pad -> %pad\n", > > > + "chan%u: hwdesc %p/%p sgl %u@%p, %zu/%zu %pad -> %pad\n", > > > chan->index, hwdesc, desc, i, sg, size, len, > > > &hwdesc->src_addr, &hwdesc->dst_addr); > > -- > Regards, > > Laurent Pinchart > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH -next] dma/sh: fix rcar-dma.c printk format warnings 2014-07-28 11:31 ` Simon Horman @ 2014-07-28 12:08 ` Simon Horman 0 siblings, 0 replies; 5+ messages in thread From: Simon Horman @ 2014-07-28 12:08 UTC (permalink / raw) To: Laurent Pinchart Cc: Vinod Koul, Randy Dunlap, dmaengine@vger.kernel.org, Dan Williams, LKML On Mon, Jul 28, 2014 at 08:31:07PM +0900, Simon Horman wrote: > [Replying again using an HTML-free mail client] > > On Mon, Jul 28, 2014 at 01:20:59PM +0200, Laurent Pinchart wrote: > > On Saturday 26 July 2014 21:19:30 Vinod Koul wrote: > > > On Fri, Jul 25, 2014 at 10:02:39AM -0700, Randy Dunlap wrote: > > > > From: Randy Dunlap <rdunlap@infradead.org> > > > > > > > > Fix printk format warnings by using size_t modifiers ('z'): > > > > > > > > ../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects argument > > > > of type 'unsigned int', but argument 9 has type 'size_t' [-Wformat=] > > > > ../drivers/dma/sh/rcar-dmac.c:759:4: warning: format '%u' expects > > > > argument of type 'unsigned int', but argument 10 has type 'size_t' > > > > [-Wformat=] > > > > > > This is not present in dmaengine trees. Simon is this in your tree? > > > > The patch applies to a new driver under development that Simon took in his > > tree. From what he told me he plans to send a pull request soon. > > > > > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > > > > Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > > > > Cc: Dan Williams <dan.j.williams@intel.com> > > > > Cc: dmaengine@vger.kernel.org > > > > Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > > > > Simon, should I submit a new version that incorporates this change, or do you > > want to include it in your pull request directly (possibly squashing it in the > > original commit) ? > > Hi Laurent, > > sorry for any confusion that I may have caused. > I will see about squashing this change into the original commit. On second thoughts I decided to commit this patch on top of my branch in order to correctly credit Randy. > > > > --- > > > > > > > > drivers/dma/sh/rcar-dmac.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > Index: linux-next-20140725/drivers/dma/sh/rcar-dmac.c > > > > =================================================================== > > > > --- linux-next-20140725.orig/drivers/dma/sh/rcar-dmac.c > > > > +++ linux-next-20140725/drivers/dma/sh/rcar-dmac.c > > > > @@ -757,7 +757,7 @@ rcar_dmac_chan_prep_sg(struct rcar_dmac_ > > > > hwdesc->size = size; > > > > > > > > dev_dbg(chan->chan.device->dev, > > > > - "chan%u: hwdesc %p/%p sgl %u@%p, %u/%u %pad -> %pad\n", > > > > + "chan%u: hwdesc %p/%p sgl %u@%p, %zu/%zu %pad -> %pad\n", > > > > chan->index, hwdesc, desc, i, sg, size, len, > > > > &hwdesc->src_addr, &hwdesc->dst_addr); > > > > -- > > Regards, > > > > Laurent Pinchart > > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-07-28 12:08 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-07-25 17:02 [PATCH -next] dma/sh: fix rcar-dma.c printk format warnings Randy Dunlap 2014-07-26 15:49 ` Vinod Koul 2014-07-28 11:20 ` Laurent Pinchart 2014-07-28 11:31 ` Simon Horman 2014-07-28 12:08 ` Simon Horman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox