lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240223171233.000069bd@Huawei.com>
Date: Fri, 23 Feb 2024 17:12:33 +0000
From: Jonathan Cameron <Jonathan.Cameron@...wei.com>
To: Julia Lawall <julia.lawall@...ia.fr>
CC: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
	<linux-iio@...r.kernel.org>, Rob Herring <robh@...nel.org>, Frank Rowand
	<frowand.list@...il.com>, <linux-kernel@...r.kernel.org>, Peter Zijlstra
	<peterz@...radead.org>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	<marek.vasut@...il.com>
Subject: Re: [PATCH v2 0/4] of: automate of_node_put() - new approach to
 loops.

On Fri, 23 Feb 2024 17:38:31 +0100 (CET)
Julia Lawall <julia.lawall@...ia.fr> wrote:

> On Fri, 23 Feb 2024, Jonathan Cameron wrote:
> 
> > On Fri, 23 Feb 2024 17:52:46 +0200
> > Andy Shevchenko <andriy.shevchenko@...ux.intel.com> wrote:
> >  
> > > On Fri, Feb 23, 2024 at 12:44:28PM +0000, Jonathan Cameron wrote:  
> > > > The equivalent device_for_each_child_node_scoped() series for
> > > > fwnode will be queued up in IIO for the merge window shortly as
> > > > it has gathered sufficient tags. Hopefully the precdent set there
> > > > for the approach will reassure people that instantiating the
> > > > child variable inside the macro definition is the best approach.
> > > > https://lore.kernel.org/linux-iio/20240217164249.921878-1-jic23@kernel.org/
> > > >
> > > > v2: Andy suggested most of the original converted set should move to
> > > >     generic fwnode / property.h handling.  Within IIO that was
> > > >     a reasonable observation given we've been trying to move away from
> > > >     firmware specific handling for some time. Patches making that change
> > > >     to appropriate drivers posted.
> > > >     As we discussed there are cases which are not suitable for such
> > > >     conversion and this infrastructure still provides clear benefits
> > > >     for them.  
> > >  
> > > >   iio: adc: rcar-gyroadc: use for_each_available_child_node_scoped()  
> > >
> > > Is this the only one so far? Or do we have more outside of IIO?
> > >
> > > I'm fine with the code if OF maintainers think it's useful.
> > > My concern is to make as many as possible drivers to be converted to
> > > use fwnode instead of OF one.
> > >  
> > Julia wrote a coccinelle script
> > __free() cases
> > https://lore.kernel.org/all/alpine.DEB.2.22.394.2401291455430.8649@hadrien/  
> 
> The script doesn't use fwnode.  It gets rid of of_node_put, asssuming that
> someone has already set that up for __free.

Question I was addressing was a few lines up.
"Or do we have more outside of IIO?"

I should have addressed it immediately after the question
+ not sent half an answer :(

> 
> julia


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ