Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp529905rdb; Sat, 30 Sep 2023 14:54:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGi1GJ0VfPlnVbvmg+v2insxAWVyTLxMwHHVoZ+SxGsxZ4OvIkVs3IQ6NMkdPGNTpSWx/xt X-Received: by 2002:a05:6a21:a5a6:b0:133:8784:15f7 with SMTP id gd38-20020a056a21a5a600b00133878415f7mr12729487pzc.14.1696110874842; Sat, 30 Sep 2023 14:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696110874; cv=none; d=google.com; s=arc-20160816; b=icylVXVL2OSt0UukZ/OLj6iFGrdhde5fVACldw7kwgbWY+qwfdqkjE08sLMgJgmc9c uDDQ1NIPTPSxMYkwP+oH5ICHNi8FTL4FuMNIBLLUWcFcJxUrC9KYQK9MpoMzCyjnRxre E/vkJcRB9UFyoiBteSCWVi7M01OHfg7U6HMSw2mHxmzbsiP6AqJkv8YnWUb93dc2nMi3 c8AA1wDh1a2e5EMDd41g1F5s1zSKGU2GpQcuBY/6weQ4LGEE1bzxhc9Z+xCQzt/GE4Oq tJdItGHBpVT4PKBNIckXxzvDxPi5qPtW2tN8wKtNJENy1YevQQXMEyIIh5EKQO7+DmzM h0VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :message-id:dkim-signature; bh=1yCGmlNzU962/jTPlurFe1l8TTmbAiLa6ha9CBLe2VU=; fh=Fxas5NsVii2+3UGkAcpIe+/g78JUJm7lxmDwJEMH6lg=; b=koeYwZ/87p4sYX8JOamo5KfzNjQjO9tmvyOkeDILN2F31A/9rBv2z+2IUklx/cRFG7 7r2ulIgMKgaDx8CrwiKoHZLFe2oC++Xu3PZ86PwZnxWbnapZiEAGk9m40sQdLi7ZnAVY VC2tRhM7GeaEXdco0Gq+PzO4/C5X6RnNkc2JMRdeB1u2y0NjM5sXLvf4w1ALfKsH6y9i RqbdPDzmsrYJ0CpAxiCix8RCEe8/A5Om66u7+/RVtCZtC6Lrod6cth8s+8vgE4SDtDth 1ZvCCptNp9gPwq/YbTzKm3EZoxqk0xVi6xEPufbRx9h9FV42sNVMzQn5I4VhkIZ6sYHm nS4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b="dKhv/Sgl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id u20-20020a634714000000b00588fa0def25si258787pga.797.2023.09.30.14.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 14:54:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b="dKhv/Sgl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5C26280AD102; Sat, 30 Sep 2023 08:17:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234422AbjI3PRP (ORCPT + 99 others); Sat, 30 Sep 2023 11:17:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234403AbjI3PRO (ORCPT ); Sat, 30 Sep 2023 11:17:14 -0400 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 930B3E1 for ; Sat, 30 Sep 2023 08:17:12 -0700 (PDT) Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4RyW6H75ZczDqPT; Sat, 30 Sep 2023 15:17:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1696087032; bh=mGwncjVvn9Q1n/4UOt+Ol5PIuRTFGIsgWcj//XGPdsE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dKhv/SglRatkezq55mUaVG16r47J1XbLIdRTWYY6QL2h7ez7SM2CjR+umTlxsiqUF AoaIUO5c+W5l/0tz1/6AoE5N5gIh2XgIiZ2Uc+9WUWJXOKkVQ8WwFNG00J97E8wIoJ sH10kOGQnghB7nJcsPq/Q2R87b6Lof/1hBFJIElg= X-Riseup-User-ID: 3D6AA3F460CEDC86DC6B980F97D48256B19F6D666D86D7FF3B661C6FAC750E61 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4RyW6D4ZJZzJnCB; Sat, 30 Sep 2023 15:17:08 +0000 (UTC) Message-ID: <091e1c1c-3c96-5888-56c4-ec726e3f2bde@riseup.net> Date: Sat, 30 Sep 2023 12:17:06 -0300 MIME-Version: 1.0 Subject: Re: [PATCH 1/3] drm/tests: Fix kunit_release_action ctx argument Content-Language: en-US To: Arthur Grillo , David Airlie , Daniel Vetter , Maxime Ripard , Javier Martinez Canillas , Brendan Higgins , David Gow Cc: tales.aparecida@gmail.com, andrealmeid@riseup.net, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com References: <20230920-kunit-kasan-fixes-v1-0-1a0fc261832d@riseup.net> <20230920-kunit-kasan-fixes-v1-1-1a0fc261832d@riseup.net> <771e3ddf-aa15-5ff9-9689-ec0e02bc803a@riseup.net> <8aab614e-1624-413d-693a-5934be6cdf8e@riseup.net> From: Maira Canal In-Reply-To: <8aab614e-1624-413d-693a-5934be6cdf8e@riseup.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 30 Sep 2023 08:17:27 -0700 (PDT) Hi Arthur, On 9/27/23 19:52, Arthur Grillo wrote: > > > On 27/09/23 19:47, Maira Canal wrote: >> Hi Arthur, >> >> On 9/20/23 03:11, Arthur Grillo wrote: >>> The kunit_action_platform_driver_unregister is added with >>> &fake_platform_driver as ctx, but the kunit_release_action is called >>> pdev as ctx. Fix that by replacing it with &fake_platform_driver. >>> >>> Fixes: 4f2b0b583baa ("drm/tests: helpers: Switch to kunit actions") >>> Signed-off-by: Arthur Grillo >> >> Reviewed-by: Maíra Canal >> >> Do you need me to apply this patch to drm-misc-fixes? > > Yes, please do, if possible. Applied to drm-misc/drm-misc-fixes! Thanks, - Maíra > > Thanks, > ~Arthur Grillo > >> >> Best Regards, >> - Maíra >> >>> --- >>> drivers/gpu/drm/tests/drm_kunit_helpers.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/gpu/drm/tests/drm_kunit_helpers.c b/drivers/gpu/drm/tests/drm_kunit_helpers.c >>> index 3d624ff2f651..3150dbc647ee 100644 >>> --- a/drivers/gpu/drm/tests/drm_kunit_helpers.c >>> +++ b/drivers/gpu/drm/tests/drm_kunit_helpers.c >>> @@ -118,7 +118,7 @@ void drm_kunit_helper_free_device(struct kunit *test, struct device *dev) >>> kunit_release_action(test, >>> kunit_action_platform_driver_unregister, >>> - pdev); >>> + &fake_platform_driver); >>> } >>> EXPORT_SYMBOL_GPL(drm_kunit_helper_free_device); >>>