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
| ||
|
Message-ID: <cb95b9c7-a975-1990-caed-a7ce80860809@redhat.com> Date: Fri, 25 Nov 2022 09:57:23 +0100 From: Javier Martinez Canillas <javierm@...hat.com> To: Maxime Ripard <maxime@...no.tech>, Maxime Ripard <mripard@...nel.org>, Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>, Daniel Vetter <daniel@...ll.ch>, David Airlie <airlied@...il.com>, Thomas Zimmermann <tzimmermann@...e.de> Cc: David Gow <davidgow@...gle.com>, linaro-mm-sig@...ts.linaro.org, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, linux-kselftest@...r.kernel.org, MaĆra Canal <mairacanal@...eup.net>, linux-media@...r.kernel.org, kunit-dev@...glegroups.com, dri-devel@...ts.freedesktop.org, Brendan Higgins <brendan.higgins@...ux.dev>, linux-kernel@...r.kernel.org, Dave Stevenson <dave.stevenson@...pberrypi.com> Subject: Re: [PATCH 02/24] drm/tests: helpers: Remove the name parameter On 11/23/22 16:25, Maxime Ripard wrote: > The device name isn't really useful, we can just define it instead of > exposing it in the API. > > Signed-off-by: Maxime Ripard <maxime@...no.tech> > --- > drivers/gpu/drm/tests/drm_client_modeset_test.c | 2 +- > drivers/gpu/drm/tests/drm_kunit_helpers.c | 6 ++++-- > drivers/gpu/drm/tests/drm_kunit_helpers.h | 3 +-- > 3 files changed, 6 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/tests/drm_client_modeset_test.c b/drivers/gpu/drm/tests/drm_client_modeset_test.c > index e469d1634e2d..6920c3ffdfdf 100644 > --- a/drivers/gpu/drm/tests/drm_client_modeset_test.c > +++ b/drivers/gpu/drm/tests/drm_client_modeset_test.c > @@ -41,7 +41,7 @@ static int drm_client_modeset_test_init(struct kunit *test) > > test->priv = priv; > > - priv->drm = drm_kunit_helper_alloc_drm_device(test, DRIVER_MODESET, "drm-client-modeset-test"); > + priv->drm = drm_kunit_helper_alloc_drm_device(test, DRIVER_MODESET); > KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv->drm); > > ret = drmm_connector_init(priv->drm, &priv->connector, > diff --git a/drivers/gpu/drm/tests/drm_kunit_helpers.c b/drivers/gpu/drm/tests/drm_kunit_helpers.c > index a4ad030ed101..7f69f56f5892 100644 > --- a/drivers/gpu/drm/tests/drm_kunit_helpers.c > +++ b/drivers/gpu/drm/tests/drm_kunit_helpers.c > @@ -9,6 +9,8 @@ > > #include "drm_kunit_helpers.h" > > +#define FAKE_DEVICE_NAME "drm-kunit-fake-device" > + I think that KUNIT_DEVICE_NAME and "drm-kunit-mock-device" are more descriptive names here. But I'm also OK with the patch as is. Reviewed-by: Javier Martinez Canillas <javierm@...hat.com> -- Best regards, Javier Martinez Canillas Core Platforms Red Hat
Powered by blists - more mailing lists