cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* Re: [Cocci] [PATCH] coccinelle: api/devm_platform_ioremap_resource: remove useless script
       [not found] <20191017142237.9734-1-alexandre.belloni@bootlin.com>
@ 2019-10-19  9:00 ` Markus Elfring
  2019-10-19 12:09   ` Alexandre Belloni
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Elfring @ 2019-10-19  9:00 UTC (permalink / raw)
  To: Alexandre Belloni, Julia Lawall, Himanshu Jha, kernel-janitors,
	Coccinelle
  Cc: Michal Marek, Arnd Bergmann, Marc Zyngier, Linus Walleij,
	Nicolas Palix, linux-kernel, Bartosz Golaszewski, Linus Torvalds,
	Greg Kroah-Hartman, Thomas Gleixner, Andy Shevchenko

> While it is useful for new drivers to use devm_platform_ioremap_resource,

This is nice.


> this script is currently used to spam maintainers,

This view is unfortunate.

Do we stumble on a target conflict again?


> often updating very old drivers.

This can also happen.


> The net benefit is the removal of 2 lines of code in the driver

Additional effects can be reconsidered, can't they?


> but the review load for the maintainers is huge.

Does collateral evolution trigger a remarkable amount of changes occasionally?


How will such feedback influence the development and integration of
further scripts for the semantic patch language (Coccinelle software)?

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Cocci] [PATCH] coccinelle: api/devm_platform_ioremap_resource: remove useless script
  2019-10-19  9:00 ` [Cocci] [PATCH] coccinelle: api/devm_platform_ioremap_resource: remove useless script Markus Elfring
@ 2019-10-19 12:09   ` Alexandre Belloni
  2019-10-19 14:06     ` [Cocci] " Markus Elfring
  2019-10-19 14:29     ` [Cocci] [PATCH] " Bartosz Golaszewski
  0 siblings, 2 replies; 5+ messages in thread
From: Alexandre Belloni @ 2019-10-19 12:09 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Nicolas Palix, Michal Marek, Arnd Bergmann, Bartosz Golaszewski,
	Marc Zyngier, Linus Walleij, kernel-janitors, linux-kernel,
	Linus Torvalds, Greg Kroah-Hartman, Thomas Gleixner,
	Andy Shevchenko, Coccinelle

On 19/10/2019 11:00:47+0200, Markus Elfring wrote:
> > While it is useful for new drivers to use devm_platform_ioremap_resource,
> 
> This is nice.
> 
> 
> > this script is currently used to spam maintainers,
> 
> This view is unfortunate.
> 
> Do we stumble on a target conflict again?
> 
> 
> > often updating very old drivers.
> 
> This can also happen.
> 
> 
> > The net benefit is the removal of 2 lines of code in the driver
> 
> Additional effects can be reconsidered, can't they?
> 

What are the additional effects? What is the end goal of converting all
the existing drivers to devm_platform_ioremap_resource? The existing
code is currently always correct and it is difficult to see how this
would lead to any bug avoidance in the long term.

> > but the review load for the maintainers is huge.
> 
> Does collateral evolution trigger a remarkable amount of changes occasionally?
> 

This is not an evolution, it is unnecessary churn. Those patches have no
benefit and eat up very valuable reviewer time.

> 
> How will such feedback influence the development and integration of
> further scripts for the semantic patch language (Coccinelle software)?
> 

There are a few other scripts that have no added value when applied to
existing code, like ptr_ret.cocci.

-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Cocci] coccinelle: api/devm_platform_ioremap_resource: remove useless script
  2019-10-19 12:09   ` Alexandre Belloni
@ 2019-10-19 14:06     ` Markus Elfring
  2019-10-19 14:29     ` [Cocci] [PATCH] " Bartosz Golaszewski
  1 sibling, 0 replies; 5+ messages in thread
From: Markus Elfring @ 2019-10-19 14:06 UTC (permalink / raw)
  To: Alexandre Belloni, Himanshu Jha, kernel-janitors, Coccinelle,
	Bartosz Golaszewski
  Cc: Michal Marek, YueHaibing, Arnd Bergmann, Marc Zyngier,
	Linus Walleij, Nicolas Palix, LKML, Linus Torvalds,
	Greg Kroah-Hartman, Thomas Gleixner, Andy Shevchenko

> What are the additional effects?

I suggest to take another look at the commit 7945f929f1a77a1c8887a97ca07f87626858ff42
("drivers: provide devm_platform_ioremap_resource()" from 2019-02-20)
which triggered the discussed software evolution.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/base/platform.c


> What is the end goal of converting all the existing drivers to devm_platform_ioremap_resource?

It was accepted by well-known Linux developers to put two function calls
into another wrapper function.


> This is not an evolution, it is unnecessary churn. Those patches have no
> benefit and eat up very valuable reviewer time.

I am curious if other contributors would like to describe more variants
of software development opinions in affected areas.


>> How will such feedback influence the development and integration of
>> further scripts for the semantic patch language (Coccinelle software)?
>
> There are a few other scripts that have no added value when applied to
> existing code, like ptr_ret.cocci.

Would you like to clarify concerns around such source code transformation
approaches in more detail?

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Cocci] [PATCH] coccinelle: api/devm_platform_ioremap_resource: remove useless script
  2019-10-19 12:09   ` Alexandre Belloni
  2019-10-19 14:06     ` [Cocci] " Markus Elfring
@ 2019-10-19 14:29     ` Bartosz Golaszewski
  2019-10-19 16:36       ` Markus Elfring
  1 sibling, 1 reply; 5+ messages in thread
From: Bartosz Golaszewski @ 2019-10-19 14:29 UTC (permalink / raw)
  To: Alexandre Belloni
  Cc: Nicolas Palix, Michal Marek, Arnd Bergmann, Marc Zyngier,
	Linus Walleij, kernel-janitors, LKML, Linus Torvalds,
	Markus Elfring, Greg Kroah-Hartman, Thomas Gleixner,
	Andy Shevchenko, Coccinelle

sob., 19 paź 2019 o 14:09 Alexandre Belloni
<alexandre.belloni@bootlin.com> napisał(a):
>
> On 19/10/2019 11:00:47+0200, Markus Elfring wrote:
> > > While it is useful for new drivers to use devm_platform_ioremap_resource,
> >
> > This is nice.
> >
> >
> > > this script is currently used to spam maintainers,
> >
> > This view is unfortunate.
> >
> > Do we stumble on a target conflict again?
> >
> >
> > > often updating very old drivers.
> >
> > This can also happen.
> >
> >
> > > The net benefit is the removal of 2 lines of code in the driver
> >
> > Additional effects can be reconsidered, can't they?
> >
>
> What are the additional effects? What is the end goal of converting all
> the existing drivers to devm_platform_ioremap_resource? The existing
> code is currently always correct and it is difficult to see how this
> would lead to any bug avoidance in the long term.
>
> > > but the review load for the maintainers is huge.
> >
> > Does collateral evolution trigger a remarkable amount of changes occasionally?
> >
>
> This is not an evolution, it is unnecessary churn. Those patches have no
> benefit and eat up very valuable reviewer time.
>
> >
> > How will such feedback influence the development and integration of
> > further scripts for the semantic patch language (Coccinelle software)?
> >
>
> There are a few other scripts that have no added value when applied to
> existing code, like ptr_ret.cocci.
>
> --
> Alexandre Belloni, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

Hi Alexandre,

Markus has been black-listed by several core maintainers already, I
think you're wasting your time arguing. WRT the patch: when
introducing this wrapper, I definitely didn't expect people to send
hundreds of often wrong patches based on coccinelle reports, so I
guess removing the script is correct.

Bart
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Cocci] [PATCH] coccinelle: api/devm_platform_ioremap_resource: remove useless script
  2019-10-19 14:29     ` [Cocci] [PATCH] " Bartosz Golaszewski
@ 2019-10-19 16:36       ` Markus Elfring
  0 siblings, 0 replies; 5+ messages in thread
From: Markus Elfring @ 2019-10-19 16:36 UTC (permalink / raw)
  To: Bartosz Golaszewski, Alexandre Belloni, kernel-janitors, Coccinelle
  Cc: Michal Marek, Arnd Bergmann, Marc Zyngier, Linus Walleij,
	Nicolas Palix, LKML, Linus Torvalds, Greg Kroah-Hartman,
	Thomas Gleixner, Andy Shevchenko

> Markus has been black-listed by several core maintainers already,

I am still curious if this communication filter will ever be adjusted
in more positive directions.


> I think you're wasting your time arguing.

I hope that also this software development discussion can become
more constructive.


> WRT the patch: when introducing this wrapper, I definitely didn't expect
> people to send hundreds of often wrong patches based on coccinelle reports,

The reality can provide various surprises.


> so I guess removing the script is correct.

I suggest to reconsider this conclusion once more.
The application of SmPL script variants can be continued despite
of the recently committed file removal.


The constraints for the usage of available scripts for the semantic patch language
are explained to some degree.
https://bottest.wiki.kernel.org/coccicheck

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-20  5:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20191017142237.9734-1-alexandre.belloni@bootlin.com>
2019-10-19  9:00 ` [Cocci] [PATCH] coccinelle: api/devm_platform_ioremap_resource: remove useless script Markus Elfring
2019-10-19 12:09   ` Alexandre Belloni
2019-10-19 14:06     ` [Cocci] " Markus Elfring
2019-10-19 14:29     ` [Cocci] [PATCH] " Bartosz Golaszewski
2019-10-19 16:36       ` Markus Elfring

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).