From: Dan Carpenter <dan.carpenter@oracle.com>
To: linux-sh@vger.kernel.org
Subject: Re: [kbuild] [slave-dma:for-linus 55/57] drivers/dma/sh/rcar-hpbdma.c:627:10-15: ERROR: iterator var
Date: Mon, 02 Jun 2014 11:26:39 +0000 [thread overview]
Message-ID: <20140602112639.GV17724@mwanda> (raw)
In-Reply-To: <2296161.9WoPSnLurk@avalon>
On Mon, Jun 02, 2014 at 01:09:32PM +0200, Laurent Pinchart wrote:
> Hi,
>
> On Monday 02 June 2014 10:33:42 Dan Carpenter wrote:
> > tree: git://git.infradead.org/users/vkoul/slave-dma.git for-linus
> > head: 654fa24965aafcb4bb8a1a14400c5ecea3be76b6
> > commit: ebc6d2d9c8cd48c351da84dd467c0edddc149ded [55/57] dmaengine: shdma:
> > Enable driver compilation with COMPILE_TEST
> > >> drivers/dma/sh/rcar-hpbdma.c:627:10-15: ERROR: iterator variable bound on
> > >> line 626 cannot be NULL
> > --
> > >> drivers/dma/sh/shdma-base.c:812:7-12: ERROR: iterator variable bound on
> > >> line 808 cannot be NULL
> > --
> > >> drivers/dma/sh/shdmac.c:581:10-15: ERROR: iterator variable bound on line
> > >> 580 cannot be NULL
> > --
> > >> drivers/dma/sh/sudmac.c:303:10-15: ERROR: iterator variable bound on line
> > >> 302 cannot be NULL
> >
> > Please consider folding the attached diff :-)
>
> The shdma_for_each_chan iterator can in theory iterate over NULL elements.
> I'll need to check whether it can happen in practice before applying the
> proposed fixes.
Oh... You're right. I didn't understand how the
scripts/coccinelle/iterators/itnull.cocci check worked so I wasn't
expecting this false positive. I will be more careful next time.
These all seem like false positives.
Also really the attached patches are probably not the right thing
because they blame Fengguang for everything when it was my fault. I
should have editted them.
Sorry for this.
regards,
dan carpenter
prev parent reply other threads:[~2014-06-02 11:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-02 11:09 [kbuild] [slave-dma:for-linus 55/57] drivers/dma/sh/rcar-hpbdma.c:627:10-15: ERROR: iterator var Laurent Pinchart
2014-06-02 11:26 ` Dan Carpenter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140602112639.GV17724@mwanda \
--to=dan.carpenter@oracle.com \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).