From patchwork Mon Jul 10 07:47:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 117701 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4871500vqx; Mon, 10 Jul 2023 01:32:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlHCAy0RkG2lGF1cuNCNG/QAQ5K0mJXjfBSPObACOLxjgKRds5Sqd30RNDPoxTVqY5FqBZko X-Received: by 2002:a17:906:5188:b0:993:dd1d:824d with SMTP id y8-20020a170906518800b00993dd1d824dmr8680981ejk.19.1688977936661; Mon, 10 Jul 2023 01:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688977936; cv=none; d=google.com; s=arc-20160816; b=F/xhqm46B23q8tf3i/c96YBlkjgj2buQpQeRYu70+iRjWBmObTfl1Zlejo9Ncghvu2 EBWkfJmZVF3aYgK0Rrz1hnrNR5ZcbXsRmy0DjyyWfhvDRmrSjHqNSqSSxCC5ChRNt+G2 aivGLdoUzHxssK6t/GAkN4wCaa6ZS5PO4+5WemhhQAU8xCyRGNKZg3tgLP4mmRHqkF0t ILJLIOtdjwbqbavoqS9URtjCFXoq5lrhEMhs1O+9023X88GYAXVPdZl/rExFRgRnscoL raIF1cBMdzGyqIlT4c2d8mFFEZMczsK2bQmIVe8ydcH0ONr5tyucgG/Szkyqm3monzi4 DRYQ== 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=+TKleDAJvaKD9/qK5NfcQ/AT57MYMKfOesO/WjGjH3s=; fh=hv+BGfRnZKm/Mx7Um70Asy2r1y7Zqr2lNnN/bFBL5yk=; b=RXUPIqApii/xpCq1G393dHU/vSCHQgWKnfr4uyWLUfkVT31FkcXkGh44r9jEZj/bMa 6Z/7tMKFvO7rIUz4zbeyhr1rU3Kkf87BMEYn1BYE1N3BPynq2pqXNVdRIBje9+1AfxZh EK4dAxSSaWBEJxduC1QoGc3RUll/3Hi316is9GOc0hRoNdcD+ZsVy3hVS6CZ1j0qGG7f v6zUl56U53SuXOq2CuzNIDMTWU/vDy0ZAwt8BMW7iNsJzCP0yFpFyAleuWD6tcc8iKNc mROH+sOP6nkJhfChq3tR6Y6o3QhfvX3B3LwpiSK4SA+mCKkE5LfEEV+MAHXV8LkyWn7V Uwbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZS2qTM59; 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 le15-20020a170906ae0f00b00992d262fb29si8550671ejb.992.2023.07.10.01.31.51; Mon, 10 Jul 2023 01:32:16 -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=ZS2qTM59; 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 S232161AbjGJHsf (ORCPT + 99 others); Mon, 10 Jul 2023 03:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232165AbjGJHsE (ORCPT ); Mon, 10 Jul 2023 03:48:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F054413D for ; Mon, 10 Jul 2023 00:48:02 -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 861B560EC3 for ; Mon, 10 Jul 2023 07:48:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95B71C433C7; Mon, 10 Jul 2023 07:48:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688975281; bh=P6AkzZmEIp/9uMOYra9+RhYe8NGkgtrmUDZAyGSGwBY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZS2qTM59an4tTDOc/lHUMdZ9YWW2KcLdikHB/RwLYbQIQxBy9AQttNMyXpYmiTRmE u3rLEY8OKJqGnuapdPgZIh5DyBJxyua8mSYSs+q/E2/OWAKDskriPj2RdXjU8I8vg0 HWX8fdr0XAl2w8iDuEdWuZJbgOhUh1OKO+6aa4Nbx5xqeNh4xDnKHFjicEpg4V16jB PwKkz8GlYI3dfNx7J+eU1lCFkc3HMvk92le5597HdkbJST72dqbFePH5z1pGd/l46g AXfe8nVNIRjH2MLC3OgJwkTCc1RPddJ9cd3Y8LJFn2ofkX4HeZCsC48XcjIiVulKnQ QwfLGwKiSRBzA== From: Maxime Ripard Date: Mon, 10 Jul 2023 09:47:38 +0200 Subject: [PATCH 07/11] drm/vc4: tests: pv-muxing: Remove call to drm_kunit_helper_free_device() MIME-Version: 1.0 Message-Id: <20230710-kms-kunit-actions-rework-v1-7-722c58d72c72@kernel.org> References: <20230710-kms-kunit-actions-rework-v1-0-722c58d72c72@kernel.org> In-Reply-To: <20230710-kms-kunit-actions-rework-v1-0-722c58d72c72@kernel.org> To: David Airlie , Daniel Vetter , Maarten Lankhorst , Thomas Zimmermann , Emma Anholt Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Maxime Ripard X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1793; i=mripard@kernel.org; h=from:subject:message-id; bh=P6AkzZmEIp/9uMOYra9+RhYe8NGkgtrmUDZAyGSGwBY=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDCmrt89o+CqzKlOs84+vi93Tq8Zbmjd8ql4+9dVal+01jn1H F3Ef6ShlYRDjYpAVU2SJETZfEndq1utONr55MHNYmUCGMHBxCsBEFnxn+GdvJlsnJ/36KTObdzeblH jMBOOa8LgHE15u/e+/NyfvlzHDf/9vemerQ1fvuH710F274O3NHnceR1/87xT98Ge51DPHdnYA X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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: 1771021728937907395 X-GMAIL-MSGID: 1771021728937907395 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. Signed-off-by: Maxime Ripard Reviewed-by: Javier Martinez Canillas --- 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[] = {