Re: [PATCH v2 3/3] drivers: base: test: Add ...find_device_by...(... NULL) tests

2024-12-13 Thread Brian Norris
Hi Maxime, On Fri, Dec 13, 2024 at 12:59:57PM +0100, Maxime Ripard wrote: > On Wed, Dec 11, 2024 at 04:31:41PM -0800, Brian Norris wrote: > > --- a/drivers/base/test/platform-device-test.c > > +++ b/drivers/base/test/platform-device-test.c > > @@ -217,7 +219,45 @@ static struct kunit_suite > > p

Re: [PATCH v2 3/3] drivers: base: test: Add ...find_device_by...(... NULL) tests

2024-12-13 Thread Maxime Ripard
Hi, On Wed, Dec 11, 2024 at 04:31:41PM -0800, Brian Norris wrote: > We recently updated these device_match*() (and therefore, various > *find_device_by*()) functions to return a consistent 'false' value when > trying to match a NULL handle. Add tests for this. > > This provides regression-testing

[PATCH v2 3/3] drivers: base: test: Add ...find_device_by...(... NULL) tests

2024-12-11 Thread Brian Norris
We recently updated these device_match*() (and therefore, various *find_device_by*()) functions to return a consistent 'false' value when trying to match a NULL handle. Add tests for this. This provides regression-testing coverage for the sorts of bugs that underly commit 5c8418cf4025 ("PCI/pwrctr