Re: [PATCH 1/5] media: chips-media: wave5: Convert to platform remove callback returning void

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Le samedi 24 février 2024 à 09:52 +0100, Uwe Kleine-König a écrit :
> Hello Nicolas,
> 
> [reordered the mail a bit to give understandable context.]
> 
> On Fri, Feb 23, 2024 at 01:20:59PM -0500, Nicolas Dufresne wrote:
> > Le vendredi 23 février 2024 à 13:19 -0500, Nicolas Dufresne a écrit :
> > > maybe its already been discussed but ...
> > > 
> > > Le vendredi 23 février 2024 à 13:59 +0100, Uwe Kleine-König a écrit :
> > > > The .remove() callback for a platform driver returns an int which makes
> > > > many driver authors wrongly assume it's possible to do error handling by
> > > > returning an error code. However the value returned is ignored (apart
> > > > from emitting a warning) and this typically results in resource leaks.
> > > > 
> > > > To improve here there is a quest to make the remove callback return
> > > > void. In the first step of this quest all drivers are converted to
> > > > .remove_new(), which already returns void. Eventually after all drivers
> > > > are converted, .remove_new() will be renamed to .remove().
> > > 
> > > What if we have another screw up ? remove_new_new ? Why not just remove the int
> > > across the tree instead ? Or perhaps its a two step plane ?
> > 
> > Please ignore my comment, sorry for the noise.
> 
> Is that an Ack? :-)

You have my:

Reviewed-by: Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>

Ideally I would have liked to see Nas or Jackson sends their Ack as they are
maintaining that driver. But I'll leave that to Sebastian and Hans to decide.

Nicolas

> 
> Best regards
> Uwe
> 






[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux