* [PATCH] fixup! dmaengine: pxa_dma: add debug information
@ 2015-05-27 21:23 Robert Jarzmik
2015-05-28 8:44 ` Arnd Bergmann
2015-05-29 9:13 ` Vinod Koul
0 siblings, 2 replies; 6+ messages in thread
From: Robert Jarzmik @ 2015-05-27 21:23 UTC (permalink / raw)
To: Daniel Mack, Haojian Zhuang, Robert Jarzmik, Vinod Koul
Cc: linux-arm-kernel, dmaengine, linux-kernel
This fixes the following error:
drivers/dma/pxa_dma.c: In function ‘dbg_show_requester_chan’:
drivers/dma/pxa_dma.c:192:2: error: void value not ignored as it ought to be
pos += seq_printf(s, "DMA channel %d requester :\n", phy->idx);
^
drivers/dma/pxa_dma.c:197:8: error: void value not ignored as it ought to be
!!(drcmr & DRCMR_MAPVLD));
^
scripts/Makefile.build:258: recipe for target 'drivers/dma/pxa_dma.o' failed
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
---
drivers/dma/pxa_dma.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/dma/pxa_dma.c b/drivers/dma/pxa_dma.c
index ddcbbf5..be5b524 100644
--- a/drivers/dma/pxa_dma.c
+++ b/drivers/dma/pxa_dma.c
@@ -184,19 +184,18 @@ static unsigned int pxad_drcmr(unsigned int line)
static int dbg_show_requester_chan(struct seq_file *s, void *p)
{
- int pos = 0;
struct pxad_phy *phy = s->private;
int i;
u32 drcmr;
- pos += seq_printf(s, "DMA channel %d requester :\n", phy->idx);
+ seq_printf(s, "DMA channel %d requester :\n", phy->idx);
for (i = 0; i < 70; i++) {
drcmr = readl_relaxed(phy->base + pxad_drcmr(i));
if ((drcmr & DRCMR_CHLNUM) == phy->idx)
- pos += seq_printf(s, "\tRequester %d (MAPVLD=%d)\n", i,
- !!(drcmr & DRCMR_MAPVLD));
+ seq_printf(s, "\tRequester %d (MAPVLD=%d)\n", i,
+ !!(drcmr & DRCMR_MAPVLD));
}
- return pos;
+ return 0;
}
static inline int dbg_burst_from_dcmd(u32 dcmd)
--
2.1.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] fixup! dmaengine: pxa_dma: add debug information
2015-05-27 21:23 [PATCH] fixup! dmaengine: pxa_dma: add debug information Robert Jarzmik
@ 2015-05-28 8:44 ` Arnd Bergmann
2015-05-29 9:13 ` Vinod Koul
1 sibling, 0 replies; 6+ messages in thread
From: Arnd Bergmann @ 2015-05-28 8:44 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Robert Jarzmik, Daniel Mack, Haojian Zhuang, Vinod Koul,
dmaengine, linux-kernel
On Wednesday 27 May 2015 23:23:40 Robert Jarzmik wrote:
> This fixes the following error:
> drivers/dma/pxa_dma.c: In function ‘dbg_show_requester_chan’:
> drivers/dma/pxa_dma.c:192:2: error: void value not ignored as it ought to be
> pos += seq_printf(s, "DMA channel %d requester :\n", phy->idx);
> ^
> drivers/dma/pxa_dma.c:197:8: error: void value not ignored as it ought to be
> !!(drcmr & DRCMR_MAPVLD));
> ^
> scripts/Makefile.build:258: recipe for target 'drivers/dma/pxa_dma.o' failed
>
> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
>
Acked-by: Arnd Bergmann <arnd@arndb.de>
I ran into the problem yesterday and came up with the same fix, but you
submitted it first, thanks!
Arnd
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] fixup! dmaengine: pxa_dma: add debug information
2015-05-27 21:23 [PATCH] fixup! dmaengine: pxa_dma: add debug information Robert Jarzmik
2015-05-28 8:44 ` Arnd Bergmann
@ 2015-05-29 9:13 ` Vinod Koul
2015-05-29 9:29 ` robert.jarzmik
1 sibling, 1 reply; 6+ messages in thread
From: Vinod Koul @ 2015-05-29 9:13 UTC (permalink / raw)
To: Robert Jarzmik
Cc: Daniel Mack, Haojian Zhuang, linux-arm-kernel, dmaengine, linux-kernel
On Wed, May 27, 2015 at 11:23:40PM +0200, Robert Jarzmik wrote:
> This fixes the following error:
> drivers/dma/pxa_dma.c: In function ‘dbg_show_requester_chan’:
> drivers/dma/pxa_dma.c:192:2: error: void value not ignored as it ought to be
> pos += seq_printf(s, "DMA channel %d requester :\n", phy->idx);
> ^
> drivers/dma/pxa_dma.c:197:8: error: void value not ignored as it ought to be
> !!(drcmr & DRCMR_MAPVLD));
> ^
> scripts/Makefile.build:258: recipe for target 'drivers/dma/pxa_dma.o' failed
Applied now, but not pleased that you sent broken code. Sending stuff that
compiles is basic step
--
~Vinod
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] fixup! dmaengine: pxa_dma: add debug information
2015-05-29 9:13 ` Vinod Koul
@ 2015-05-29 9:29 ` robert.jarzmik
2015-05-29 9:51 ` Joe Perches
0 siblings, 1 reply; 6+ messages in thread
From: robert.jarzmik @ 2015-05-29 9:29 UTC (permalink / raw)
To: Vinod Koul
Cc: Daniel Mack, Haojian Zhuang, linux-arm-kernel, dmaengine, linux-kernel
----- Mail original -----
De: "Vinod Koul" <vinod.koul@intel.com>
À: "Robert Jarzmik" <robert.jarzmik@free.fr>
On Wed, May 27, 2015 at 11:23:40PM +0200, Robert Jarzmik wrote:
> This fixes the following error:
> drivers/dma/pxa_dma.c: In function ‘dbg_show_requester_chan’:
> drivers/dma/pxa_dma.c:192:2: error: void value not ignored as it ought to be
> pos += seq_printf(s, "DMA channel %d requester :\n", phy->idx);
> Applied now.
Thanks.
> but not pleased that you sent broken code. Sending stuff that
> compiles is basic step
You should know me better by now. I told you I compiled *and* tested.
And with a a bit closer look check this commit, especially the date :
commit 0bac33653b06a5f80a5c04e275eb33db9493b85a
Author: Joe Perches <joe@perches.com>
Date: Sat May 23 12:00:38 2015 +1000
fs/seq_file: convert int seq_vprint/seq_printf/etc... returns to void
Cheers.
--
Robert
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] fixup! dmaengine: pxa_dma: add debug information
2015-05-29 9:29 ` robert.jarzmik
@ 2015-05-29 9:51 ` Joe Perches
2015-06-01 21:31 ` Robert Jarzmik
0 siblings, 1 reply; 6+ messages in thread
From: Joe Perches @ 2015-05-29 9:51 UTC (permalink / raw)
To: robert.jarzmik
Cc: Vinod Koul, Daniel Mack, Haojian Zhuang, linux-arm-kernel,
dmaengine, linux-kernel
On Fri, 2015-05-29 at 11:29 +0200, robert.jarzmik@free.fr wrote:
> ----- Mail original -----
> De: "Vinod Koul" <vinod.koul@intel.com>
> On Wed, May 27, 2015 at 11:23:40PM +0200, Robert Jarzmik wrote:
> > This fixes the following error:
[]
> And with a a bit closer look check this commit, especially the date :
> commit 0bac33653b06a5f80a5c04e275eb33db9493b85a
> Author: Joe Perches <joe@perches.com>
> Date: Sat May 23 12:00:38 2015 +1000
>
> fs/seq_file: convert int seq_vprint/seq_printf/etc... returns to void
Hello Robert.
The return value of that dbg_show_requester_chan function
was incorrect and the increment of pos was an example of
why the seq_printf return value was changed to void.
It was a pretty common error and easy to understand given
the expectation that seq_printf should work like printf.
It's a pity it bit you. but this type of patch collision
should be a bit more difficult to reoccur in the future.
cheers, Joe
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] fixup! dmaengine: pxa_dma: add debug information
2015-05-29 9:51 ` Joe Perches
@ 2015-06-01 21:31 ` Robert Jarzmik
0 siblings, 0 replies; 6+ messages in thread
From: Robert Jarzmik @ 2015-06-01 21:31 UTC (permalink / raw)
To: Joe Perches
Cc: Vinod Koul, Daniel Mack, Haojian Zhuang, linux-arm-kernel,
dmaengine, linux-kernel
Joe Perches <joe@perches.com> writes:
> Hello Robert.
>
> The return value of that dbg_show_requester_chan function
> was incorrect and the increment of pos was an example of
> why the seq_printf return value was changed to void.
>
> It was a pretty common error and easy to understand given
> the expectation that seq_printf should work like printf.
Sure.
> It's a pity it bit you. but this type of patch collision
> should be a bit more difficult to reoccur in the future.
I got what I deserved. I knew it was coming, I've seen it in other drivers of
mine, but my left brain didn't tell the other half to crosscheck in this
patch. Anyway, it's not a big fixup, so everything is fine now.
Cheers.
--
Robert
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-06-01 21:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-27 21:23 [PATCH] fixup! dmaengine: pxa_dma: add debug information Robert Jarzmik
2015-05-28 8:44 ` Arnd Bergmann
2015-05-29 9:13 ` Vinod Koul
2015-05-29 9:29 ` robert.jarzmik
2015-05-29 9:51 ` Joe Perches
2015-06-01 21:31 ` Robert Jarzmik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).