[PATCH 03/16] lib,treewide: add new match_string() helper/macro
alexandru.Ardelean at analog.com
Wed May 8 13:22:03 UTC 2019
On Wed, 2019-05-08 at 15:18 +0200, Greg KH wrote:
> On Wed, May 08, 2019 at 04:11:28PM +0300, Andy Shevchenko wrote:
> > On Wed, May 08, 2019 at 02:28:29PM +0300, Alexandru Ardelean wrote:
> > > This change re-introduces `match_string()` as a macro that uses
> > > ARRAY_SIZE() to compute the size of the array.
> > > The macro is added in all the places that do
> > > `match_string(_a, ARRAY_SIZE(_a), s)`, since the change is pretty
> > > straightforward.
> > Can you split include/linux/ change from the rest?
> That would break the build, why do you want it split out? This makes
> sense all as a single patch to me.
It would be just be the new match_string() helper/macro in a new commit.
And the conversions of the simple users of match_string() (the ones using
ARRAY_SIZE()) in another commit.
> greg k-h
More information about the devel