Coccinelle archive on
 help / color / Atom feed
* Re: [Cocci] [v4 2/3] treewide: Remove dev_err() usage after platform_get_irq()
       [not found] <>
@ 2019-07-24 11:17 ` Markus Elfring
  0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2019-07-24 11:17 UTC (permalink / raw)
  To: Stephen Boyd, Andy Shevchenko, cocci, kernel-janitors
  Cc: Rob Herring, Michal Marek, Rafael J . Wysocki,
	Greg Kroah-Hartman, linux-kernel, Javier Martinez Canillas,
	Andrzej Hajda, Bartlomiej Zolnierkiewicz, Mark Brown,
	Russell King, Marek Szyprowski

> > > struct platform_device *E;

How much does this specification matter for the parameters
of the mentioned functions (in the SmPL script)?
Will the selection of function names be sufficient for the discussed
source code search pattern?

> > Can you teach it to remove curly braces when it's appropriate?
> > (see below for examples)
> I don't know if that works.

Such an adjustment depends on additional development efforts.

> Is there some sort of tidy script I can run on my patches to do this?

You can add corresponding case distinctions to your transformation approach
for the semantic patch language (on demand), can't you?

Cocci mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2019-07-24 11:17 ` [Cocci] [v4 2/3] treewide: Remove dev_err() usage after platform_get_irq() Markus Elfring

Coccinelle archive on

Archives are clonable:
	git clone --mirror cocci/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 cocci cocci/ \
	public-inbox-index cocci

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox