From patchwork Fri Jul 28 09:06:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 127446 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp301870vqg; Fri, 28 Jul 2023 02:16:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlEh7Y/DXYrG1ShJQEDwj17PGHLa41/TXgU6fGDyDwv4xig1c8wzJ9enZAIKNtc7JwnQZE2d X-Received: by 2002:a05:6402:326:b0:522:5855:ee78 with SMTP id q6-20020a056402032600b005225855ee78mr1389696edw.32.1690535768855; Fri, 28 Jul 2023 02:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690535768; cv=none; d=google.com; s=arc-20160816; b=AmXIvEiT4B94w1RDMxv5W1Kaxyupm8nst9ehr3S50fhoDXKTZvXLGahSCGMKj/Fq1x tOefiLbqVokBSwiiXoV1sLEUWKxmXqNvV8YRaktnjwdMG+c3950CgQ8/r43EVXtfQ2xR jnAb8QFKn2t0/FFBjofdMeLOccb+dIdP4FgyMIANCb9EN+LsgFVWAWhd8VGIuLrC57y1 DOXbihArdB6PoZPQfL/nSAq02R6lKCZx8k/SoJNL8r/aF7MZiaJKYyfVaPxsH1fFT6Nt AXpiHpKzeB8rgdon+CQFOWZGMfBpegel4/lrAPXohwrQhYsf4g0Lii6NPelSNLBPWtjU n0vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Ati8xJCChl7zuZfsDYHSmLOG7qzYIKqsc1AETQlOaBA=; fh=r3YnEVRF2ge3yIgpTE2H86lvFoURZyw1nrIW71mPVsw=; b=dIWQSZK42M2Pk7X5jbhRhemj+lWgJ/cKaU4ZE8Ti1AjRPX6PghKF2MDzYV3BCPHAsS eWASu/irJYB45l+UOzHGLPwi+XennvIpjRsyD4C6M7kS7uEE8MmAszXR/r5vM/Yg/6Fl K0ojD2FpN0UHyXXxKuL4VTQK4BeJwxYAcGIpmeEOgJ00augYJ16iNUozXs3HoPNlisn2 154c+7Wis6GFJeRRTUQxHKviDvTkiHoklJFO7BD7oRDDpe2znztt+dLavLyNrhEFYarp CSXDB+bUnUhBiGfKqgVZz/NVoSF2+7ho+eDXbfqvSd2BZCiR1+7f9ixlquUTTwV7ycKk EXUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VvrGDiKU; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020aa7d983000000b005222114ba0asi2380973eds.390.2023.07.28.02.15.43; Fri, 28 Jul 2023 02:16:08 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=VvrGDiKU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234748AbjG1JHd (ORCPT + 99 others); Fri, 28 Jul 2023 05:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235296AbjG1JGv (ORCPT ); Fri, 28 Jul 2023 05:06:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18B8230F9; Fri, 28 Jul 2023 02:06:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A58AC62085; Fri, 28 Jul 2023 09:06:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5499C433C8; Fri, 28 Jul 2023 09:06:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690535202; bh=qPRZQkGyxFKuP0t7o+B34vYPs8lDG/wXUsYgJ3yYNaw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=VvrGDiKUc+0f7Xy18//Y4e6bS6FVMRFiLkjWhdUJK2tBzbrnjmBWlhRfe8GE7Hqoy +XQVCdOVaC1lm/x8JB6kgbi2oqBrG2jZpnKLfm/zuJdcKOYBJhZOAIwsHyc10xg+AN 1RVzfmn4n60Sm2ZlwDxjJypPY1779Omu0o9MYxH14/aGVuR95YfKUaHGx/fcMuzfvE fMWdxussYbIStujkapPxrmtIIsPv/8TSM97l5ROQZum3QXU3cPrOop3Q4oow2ljuV4 njz7dDI0cjjGRHVtNEld9v9c3hl7qQHbGyJm3jZNxlkulLP45aUaM6B99W5EIHlpxY IdEv80Tjz8Img== From: Maxime Ripard Date: Fri, 28 Jul 2023 11:06:20 +0200 Subject: [PATCH v3 07/11] drm/vc4: tests: pv-muxing: Remove call to drm_kunit_helper_free_device() MIME-Version: 1.0 Message-Id: <20230728-kms-kunit-actions-rework-v3-7-952565ccccfe@kernel.org> References: <20230728-kms-kunit-actions-rework-v3-0-952565ccccfe@kernel.org> In-Reply-To: <20230728-kms-kunit-actions-rework-v3-0-952565ccccfe@kernel.org> To: David Airlie , Daniel Vetter , Maarten Lankhorst , Thomas Zimmermann , Emma Anholt Cc: =?utf-8?q?Ma=C3=ADra_Canal?= , Javier Martinez Canillas , dri-devel@lists.freedesktop.org, David Gow , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, Maxime Ripard , Brendan Higgins X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1904; i=mripard@kernel.org; h=from:subject:message-id; bh=qPRZQkGyxFKuP0t7o+B34vYPs8lDG/wXUsYgJ3yYNaw=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDCmHW7mi1Heen7gwWPjr3ja+1OSNhW6zxEqFNmua/XnA1 bLlyqnrHaUsDGJcDLJiiiwxwuZL4k7Net3JxjcPZg4rE8gQBi5OAZjIhSmMDDftL1tfesDvkMPZ 7xZc53F/mVW3JLfb9Hybx48r16y/+oaR4dFVz9uxSxYlWDL82D5jYcJDwdAHLMa3l6g/Ssrh7hO oYQEA X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772655234113010906 X-GMAIL-MSGID: 1772655234113010906 Calling drm_kunit_helper_free_device() to clean up the resources allocated by drm_kunit_helper_alloc_device() is now optional and not needed in most cases. Remove it. Reviewed-by: Javier Martinez Canillas Reviewed-by: MaĆ­ra Canal Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c b/drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c index ae0bd0f81698..6c982e72cae8 100644 --- a/drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c +++ b/drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c @@ -762,7 +762,6 @@ static void vc4_pv_muxing_test_exit(struct kunit *test) drm_modeset_drop_locks(&priv->ctx); drm_modeset_acquire_fini(&priv->ctx); drm_dev_unregister(drm); - drm_kunit_helper_free_device(test, vc4->dev); } static struct kunit_case vc4_pv_muxing_tests[] = { @@ -873,7 +872,6 @@ static void drm_test_vc5_pv_muxing_bugs_subsequent_crtc_enable(struct kunit *tes drm_modeset_drop_locks(&ctx); drm_modeset_acquire_fini(&ctx); drm_dev_unregister(drm); - drm_kunit_helper_free_device(test, vc4->dev); } static void drm_test_vc5_pv_muxing_bugs_stable_fifo(struct kunit *test) @@ -963,7 +961,6 @@ static void drm_test_vc5_pv_muxing_bugs_stable_fifo(struct kunit *test) drm_modeset_drop_locks(&ctx); drm_modeset_acquire_fini(&ctx); drm_dev_unregister(drm); - drm_kunit_helper_free_device(test, vc4->dev); } static void @@ -1017,7 +1014,6 @@ drm_test_vc5_pv_muxing_bugs_subsequent_crtc_enable_too_many_crtc_state(struct ku drm_modeset_drop_locks(&ctx); drm_modeset_acquire_fini(&ctx); drm_dev_unregister(drm); - drm_kunit_helper_free_device(test, vc4->dev); } static struct kunit_case vc5_pv_muxing_bugs_tests[] = {