From: Robert Richter <rrichter@marvell.com>
To: Markus Elfring <Markus.Elfring@web.de>
Cc: "linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org>,
"Borislav Petkov" <bp@alien8.de>,
"James Morse" <james.morse@arm.com>,
"Jan Lübbe" <jlu@pengutronix.de>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Tony Luck" <tony.luck@intel.com>,
LKML <linux-kernel@vger.kernel.org>,
"kernel-janitors@vger.kernel.org"
<kernel-janitors@vger.kernel.org>
Subject: Re: [PATCH] EDAC: Armada XP: Use devm_platform_ioremap_resource() in two functions
Date: Mon, 23 Sep 2019 08:11:27 +0000 [thread overview]
Message-ID: <20190923081117.4p4mwqz35fzavkeg@rric.localdomain> (raw)
In-Reply-To: <3cf2076e-6394-4997-613d-cbf5b6dbee1e@web.de>
Hi Markus,
On 21.09.19 17:57:24, Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 21 Sep 2019 17:50:17 +0200
>
> Simplify these function implementations by using a known function.
>
> This issue was detected by using the Coccinelle software.
Which semantic patch did you use here?
The kernel's spatch for this pattern only found and fixed the
following:
$ make coccicheck COCCI=scripts/coccinelle/api/devm_platform_ioremap_resource.cocci MODE=patch M=drivers/edac | patch -p1
patching file drivers/edac/ti_edac.c
patching file drivers/edac/xgene_edac.c
patching file drivers/edac/synopsys_edac.c
There are probably more drivers to fix than the above and the one you
fixed:
$ git grep -l platform_get_resource drivers/edac/
drivers/edac/altera_edac.c
drivers/edac/armada_xp_edac.c
drivers/edac/aspeed_edac.c
drivers/edac/bluefield_edac.c
drivers/edac/cpc925_edac.c
drivers/edac/highbank_l2_edac.c
drivers/edac/highbank_mc_edac.c
drivers/edac/mv64x60_edac.c
drivers/edac/synopsys_edac.c
drivers/edac/ti_edac.c
drivers/edac/xgene_edac.c
So while at it, how about fixing the .cocci patch in scripts/ and run
it for drivers/edac? There should be one patch only for all edac
drivers.
Thanks,
-Robert
next prev parent reply other threads:[~2019-09-23 8:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-21 15:57 [PATCH] EDAC: Armada XP: Use devm_platform_ioremap_resource() in two functions Markus Elfring
2019-09-23 8:11 ` Robert Richter [this message]
2019-09-23 9:25 ` Markus Elfring
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=20190923081117.4p4mwqz35fzavkeg@rric.localdomain \
--to=rrichter@marvell.com \
--cc=Markus.Elfring@web.de \
--cc=bp@alien8.de \
--cc=james.morse@arm.com \
--cc=jlu@pengutronix.de \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=tony.luck@intel.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;
as well as URLs for NNTP newsgroup(s).