From patchwork Mon Jul 10 07:47:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 117690 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4860962vqx; Mon, 10 Jul 2023 01:06:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlGTQjWwhcpi5QRPZ4N7BAtxgZiSjV5vKY+X7rJ/9FMIaix5t21qGGeHlvqj8E0lO8geb52W X-Received: by 2002:a05:6a20:1591:b0:122:a808:dbbe with SMTP id h17-20020a056a20159100b00122a808dbbemr15272025pzj.29.1688976403670; Mon, 10 Jul 2023 01:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688976403; cv=none; d=google.com; s=arc-20160816; b=DhI8igSSQgfacroRuNL+cVhBAMp4iHhIHjkcbHI5ytChNCKRD3djxJzrzp6/K1j1gW /YF3x4tXE3h5ZzIKvpHVQh6X//p3OZQb3MxNgGCYIhf8uqq5xDGAJrngJXkxwfSM9tO1 fv1hiO1NW8iYvtTAnCWakZC9KHf534qI6qv43/jSLGbeMdT/yxp/ExzYb8kOtj/6nhU6 OM+Q8DtXCimBN497rorbGPn+d1MR1faKErmKZu73Jn1I+uQFJ/2MieN2pTIqr5DXdqQb gADyx325eF/PqSC1e3uGI9so0rNz8I28xCqVgUqPK78u1QZJBFLD4FktSkOR+ItkHua7 eQag== 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=jvs+zu3+PqyCT8SV3tjQ9tUaOZqPtlMBzlFa80IvNv8=; fh=hv+BGfRnZKm/Mx7Um70Asy2r1y7Zqr2lNnN/bFBL5yk=; b=lpEBqa0N4IjxVTvqaQg3E6AhgqNUEMqU1kzjOC++6ye7a0KFg9iOs1pYdt81DlsLpz mrHsMZMbmZh60mTYKduBzMcGeYLIT5zG4TF2Z9uERSSJgwHjgS6/qrJrfjh8JUUdgqnM uGJtp5WsAA+/OEvShYdSx80iYoeF1PJRLD51FXOToGiGzlEtrUm3HN0r/RpknXO672AO ytGYe9Tp3IBD2rzUfGSuar1eTpgf/G/8nQjF/e5NlYtYyVUCoFk/saD7izV7ZQlo7LUO FiuvSmWlF304n24cRYhtkPeVvIGnZ1Lby8fpLz1jWaOV70HH3uPHhSUNdi1el6pYJ+7h uMZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ALd6PxwN; 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 j187-20020a638bc4000000b00542d3727da9si9045396pge.464.2023.07.10.01.06.31; Mon, 10 Jul 2023 01:06:43 -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=ALd6PxwN; 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 S231654AbjGJHsP (ORCPT + 99 others); Mon, 10 Jul 2023 03:48:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231848AbjGJHrz (ORCPT ); Mon, 10 Jul 2023 03:47:55 -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 1900BE5C for ; Mon, 10 Jul 2023 00:47:48 -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 7DD6660EC3 for ; Mon, 10 Jul 2023 07:47:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F7DCC433C9; Mon, 10 Jul 2023 07:47:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688975266; bh=xWovrJZer1W7AjsxvLVKMJnE5oarV1IwKSg4Wq6t9kE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ALd6PxwN7gs9AOQ9IIcA1aTr9WugCcwY4yNHmfKBr7AlYy2CXaas4ntrMpr3VvqrY Ev6RA+QI46zmOkcRfm9/Ufn1GovH4i4TG0azF5RpYqvjwFZPyS9kvDhtgs++3t4vhp wTwbsNY0jI+6IpilfVp52Rs3W6LCH1eWLelgxR4BjlVTrSbrgvPCNkQiYW4FaHX4JZ e6+xCv3EvNTAG3aMqhVcwueVPxzSo4R/x0qoskZikJeY02iaINN3KVF7xU3BSx8I1S d+2crBXnTAmkFJMToplXDK8ZHrmdXyQ/W/qynntvl/dpilgb8vvUlHpI+5PJEVr969 e26T+DDC6c2Iw== From: Maxime Ripard Date: Mon, 10 Jul 2023 09:47:33 +0200 Subject: [PATCH 02/11] drm/tests: client-modeset: Remove call to drm_kunit_helper_free_device() MIME-Version: 1.0 Message-Id: <20230710-kms-kunit-actions-rework-v1-2-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=1345; i=mripard@kernel.org; h=from:subject:message-id; bh=xWovrJZer1W7AjsxvLVKMJnE5oarV1IwKSg4Wq6t9kE=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDCmrt89YqvEpYsXW57qTdpsVTH83WfZV7lfpqr3TT15sn3U5 5PfN1o5SFgYxLgZZMUWWGGHzJXGnZr3uZOObBzOHlQlkCAMXpwBMRNyA4Z+2/jkvG/6/V1Njchce+M pz+NFy3ug3Czo39604d2L146tLGBmeXvN4qTC/PSDz77GiPJEt3dIXBS8pOHzttj+Y9O/6+Ve8AA== 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: 1771020121407992782 X-GMAIL-MSGID: 1771020121407992782 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/tests/drm_client_modeset_test.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/tests/drm_client_modeset_test.c b/drivers/gpu/drm/tests/drm_client_modeset_test.c index 416a279b6dae..7516f6cb36e4 100644 --- a/drivers/gpu/drm/tests/drm_client_modeset_test.c +++ b/drivers/gpu/drm/tests/drm_client_modeset_test.c @@ -82,13 +82,6 @@ static int drm_client_modeset_test_init(struct kunit *test) return 0; } -static void drm_client_modeset_test_exit(struct kunit *test) -{ - struct drm_client_modeset_test_priv *priv = test->priv; - - drm_kunit_helper_free_device(test, priv->dev); -} - static void drm_test_pick_cmdline_res_1920_1080_60(struct kunit *test) { struct drm_client_modeset_test_priv *priv = test->priv; @@ -188,7 +181,6 @@ static struct kunit_case drm_test_pick_cmdline_tests[] = { static struct kunit_suite drm_test_pick_cmdline_test_suite = { .name = "drm_test_pick_cmdline", .init = drm_client_modeset_test_init, - .exit = drm_client_modeset_test_exit, .test_cases = drm_test_pick_cmdline_tests };