Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp319546rwb; Thu, 1 Dec 2022 02:36:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf6lJ7BYyD9QXKwruqPaVOKkGUiPG5x+M9sdolbT7uq9P6PZGdoh3pq05fqQf0dCk1fihv9u X-Received: by 2002:a17:907:9a8a:b0:7bf:9949:969e with SMTP id km10-20020a1709079a8a00b007bf9949969emr16918757ejc.132.1669891005513; Thu, 01 Dec 2022 02:36:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669891005; cv=none; d=google.com; s=arc-20160816; b=AJz3xVuqWU1ICRt07ipIRahcEtWCxL9nB7jTG+uzWcstLzOsX3avQ/Kp6qebNor+bA Z4k+b5dTdhhsDrnEEoDqvNDZHCbg+8lJZWiOnU8lxXz//U+9BYYlABinjvXatwRAMxcE i4tusxsQ5ThPvOyGfy5cX5bUerjBSRDo5dMS3DTXTT1HMwj8R2DDD8zVMOG8nLSnbRk6 jZcNWEHSDQUONTD0H2oM7N4K7cYri0hsMhUyGeQm905x19E3XvVUvUlP3K5Y6nM/4e1C kV5Rli1T/NfzeWXJlL9Cy2XmY3mkOaGL05N8Ex7yxxaWpLiR5Hz+8UbLOb4kB5fczz3E bMIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=eip0JYxLwAAvXLG5NBGWWs0mG1joDIdVXmK8+H3wc1I=; b=GOkjDNBpEwyovaXmbGM0fbhEiKuAgT535Jm1jVFotCdvqHIcGO/2xHCIfyB4omRWko jD/02nldzm4/Q1cvM8Qe7vzExwzT4bWFXHcjJ6ZfgxR2L8yhuetjpXPEssVeH+H1m9Xk RDOR0KIiMs3t06s4tizHctl767nwOc6xE5DPDtHs5PYBYtsdDYXTVSViX6BHvZt45FRK l+krBmWLZrtnkJyXHtIFXBHZVdYQez+3I9Tbo9mm43b7JtfZMNee90dsoEPsolWwJnoz bmLuWL4HMWhSIJMEe/okIwX62MP2t3ArCk6IRctnMOiz+VCrR85OGN/XqjkgUwrB+/4d OVlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=Ifcsm7mF; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=jHUQhnx+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a056402520700b00469a9937122si3831853edd.111.2022.12.01.02.36.26; Thu, 01 Dec 2022 02:36:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=Ifcsm7mF; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=jHUQhnx+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230000AbiLAK2O (ORCPT + 82 others); Thu, 1 Dec 2022 05:28:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230362AbiLAK2J (ORCPT ); Thu, 1 Dec 2022 05:28:09 -0500 Received: from new3-smtp.messagingengine.com (new3-smtp.messagingengine.com [66.111.4.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7657D5F99; Thu, 1 Dec 2022 02:27:59 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id 32628580452; Thu, 1 Dec 2022 05:27:59 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 01 Dec 2022 05:27:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1669890479; x=1669897679; bh=eip0JYxLwA AvXLG5NBGWWs0mG1joDIdVXmK8+H3wc1I=; b=Ifcsm7mFF1kDXPSQsE2BjtauEl 4bwtK3ys+M8QAe1DT6cDljjLeiP9u7O0waPCTSzJZvOmYsNzMNupyKSk7RlXCn+z SIt1N4VnFoe4DRug4ptdM/z7kJGtGgRWYHRgCq/DKQ6rEmGJI/hv+ECAVO3zMQeo m/6LelTKZuZRwHGi73LM3aKWDMjnFswHYQHFCEMLH1tLxRaMBy4KGPefilNGDnna 6EK9Iysjbf14LMFylHM+HCptA8YYGFlPnzMz5BBJ2Eh0H5sA0SE1O0qzDtKn1/0s 9fwoHGL9mP8OuXk1t9ZuXLI8vy7GGe+YC/LR8Z/wxq+3RwzxSR5zYC46inuw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1669890479; x=1669897679; bh=eip0JYxLwAAvXLG5NBGWWs0mG1jo DIdVXmK8+H3wc1I=; b=jHUQhnx+FI055/Dk7FSqjW8PozYbbmB3jI+xMqePY5Jj 0UQDS9Y8DOSGFbJpQ4QEN9aB7JffyVZkvEDR0TvX5/EzJf+vOAqw79xBlTUNz7+W KJ0LinhY/5xoBand1PEsJ0azU99iEa5mlvOM30ACai17rfRBbmuaM4K74XyirEBt 3bdKNePuRK7UFfRbZL8DsWMnAinS/Nin6J9uI9cwHq1W2z0iwwD3dx8k2i25xwvt Nvl4b6krJS5AIgr1bDa3eNVaF4kqOl0r/OVmPhb/RYd1D44m+b6kCfijbWUlpNQD qpJjMNXHbnnt75kCuekTNKj6DTBZHrZDeWEHpqPKXw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrtdehgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepteefffefgfektdefgfeludfgtdejfeejvddttdekteeiffejvdfgheehfffh vedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Dec 2022 05:27:58 -0500 (EST) Date: Thu, 1 Dec 2022 11:27:56 +0100 From: Maxime Ripard To: Javier Martinez Canillas Cc: Daniel Vetter , Maarten Lankhorst , David Airlie , Thomas Zimmermann , dri-devel@lists.freedesktop.org, Greg Kroah-Hartman , kunit-dev@googlegroups.com, linux-media@vger.kernel.org, linux-kselftest@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Brendan Higgins , =?utf-8?B?TWHDrXJh?= Canal , Dave Stevenson , linux-kernel@vger.kernel.org, David Gow Subject: Re: [PATCH v2 01/17] drm/tests: helpers: Move the helper header to include/drm Message-ID: <20221201102756.cdvxu4iryhu3rjpf@houat> References: <20221123-rpi-kunit-tests-v2-0-efe5ed518b63@cerno.tech> <20221123-rpi-kunit-tests-v2-1-efe5ed518b63@cerno.tech> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mtc5qjwrdj4bgosl" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mtc5qjwrdj4bgosl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Javier, On Wed, Nov 30, 2022 at 09:00:03AM +0100, Javier Martinez Canillas wrote: > On 11/28/22 15:53, Maxime Ripard wrote: > > We'll need to use those helpers from drivers too, so let's move it to a > > more visible location. > >=20 > > Signed-off-by: Maxime Ripard > > --- > > drivers/gpu/drm/tests/drm_client_modeset_test.c | 3 +-- > > drivers/gpu/drm/tests/drm_kunit_helpers.c | 3 +-- > > drivers/gpu/drm/tests/drm_modes_test.c | 3 +-- > > drivers/gpu/drm/tests/drm_probe_helper_test.c | 3 +-- > > {drivers/gpu/drm/tests =3D> include/drm}/drm_kunit_helpers.h | 0 > > 5 files changed, 4 insertions(+), 8 deletions(-) > >=20 > > diff --git a/drivers/gpu/drm/tests/drm_client_modeset_test.c b/drivers/= gpu/drm/tests/drm_client_modeset_test.c > > index 52929536a158..ed2f62e92fea 100644 > > --- a/drivers/gpu/drm/tests/drm_client_modeset_test.c > > +++ b/drivers/gpu/drm/tests/drm_client_modeset_test.c > > @@ -8,12 +8,11 @@ > > #include > > #include > > #include > > +#include >=20 > I wonder if now that this header was moved outside of the tests directory, > if we should add stub functions in the header file that are just defined > but do nothing if CONFIG_DRM_KUNIT_TEST isn't enabled. So that including > it in drivers will be a no-op. >=20 > Or do you plan to conditionally include this header file in drivers? So > that is only included when CONFIG_DRM_KUNIT_TEST is enabled? I'm not entirely sure. I'd expect only the tests to include it, and thus would depend on DRM_KUNIT_TEST already. But we can always add the stubs if it's ever included in a different context. > Another thing that wondered is if we want a different namespace for this > header, i.e: , to make it clear that is > not part of the DRM API but just for testing helpers. If there's a single header, I don't think we need to create the directory. This is also something we can consolidate later on if needed. > But these are open questions really, and they can be done as follow-up: >=20 > Reviewed-by: Javier Martinez Canillas Thanks :) Maxime --mtc5qjwrdj4bgosl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCY4iBrAAKCRDj7w1vZxhR xRpOAQDHwNPpAQkoE6hXFx/5LBWCsUpiuUg3V17tLDsBtosnuAD/TKCoP+W/vHA/ r8y7Tk1Pv3JAJ6pNY93sYVLHX2HmKQM= =Kavk -----END PGP SIGNATURE----- --mtc5qjwrdj4bgosl--