From: David Miller <davem@davemloft.net>
To: julia@diku.dk
Cc: wli@holomorphy.com, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH 2/3] arch/sparc: Add missing of_node_put
Date: Tue, 04 Dec 2007 00:33:52 -0800 (PST) [thread overview]
Message-ID: <20071204.003352.120654801.davem@davemloft.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0712022104110.3361@ask.diku.dk>
From: Julia Lawall <julia@diku.dk>
Date: Sun, 2 Dec 2007 21:05:24 +0100 (CET)
> From: Julia Lawall <julia@diku.dk>
>
> There should be an of_node_put when breaking out of a loop that iterates
> using for_each_node_by_type.
>
> This was detected and fixed using the following semantic patch.
> (http://www.emn.fr/x-info/coccinelle/)
>
> // <smpl>
> @@
> identifier d;
> type T;
> expression e;
> iterator for_each_node_by_type;
> @@
>
> T *d;
> ...
> for_each_node_by_type(d,...)
> {... when != of_node_put(d)
> when != e = d
> (
> return d;
> |
> + of_node_put(d);
> ? return ...;
> )
> ...}
> // </smpl>
>
> Signed-off-by: Julia Lawall <julia@diku.dk>
Applied, but I had to fixup the trailing whitespace on this line:
> - if (!err)
> + if (!err) {
As indicated by GIT:
Adds trailing whitespace.
diff:9: if (!err) {
warning: 1 line adds whitespace errors.
Please correct these kinds of errors before submitting in
the future, thanks.
prev parent reply other threads:[~2007-12-04 8:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-02 20:05 Julia Lawall
2007-12-04 8:33 ` David Miller [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=20071204.003352.120654801.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=julia@diku.dk \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wli@holomorphy.com \
/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
all inboxes | Powered by JetHome®