Message ID | 20230710-kms-kunit-actions-rework-v1-3-722c58d72c72@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4857596vqx; Mon, 10 Jul 2023 01:00:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlFPsKGwAp6XT1At32eFlZO/ylld4Fax9mxMG17VcwXl1YWa9Kpb9TtwggtR/7Tqw9MhjuaY X-Received: by 2002:a05:6808:1690:b0:398:1045:17ed with SMTP id bb16-20020a056808169000b00398104517edmr10037508oib.54.1688976014192; Mon, 10 Jul 2023 01:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688976014; cv=none; d=google.com; s=arc-20160816; b=FRBcOOT/SkC+UU5jyRTccOIQcGNHtW8YmALSL7ppF+R72//MsQ+hNqktWT+ZJwcri8 QuF0NjfVwyx842XCODRWKtl6o3ONOcD/OmRHundRUKrImWGbcmD/NmaytLK5bSUR1XSo nlLHly9rJ3S+wCZnO6B5/r+3pmOn1A1QXQQ9fp2eAmgeKs3MNj6XT4SOele+IYg636tT 2LAWjK8VScxCFbJBk/x2C5k6c8IXVjbiZiDZh+gwvLBVR8SPY91itKcrOcBILCUtUuvb 7BheDQNnbespxiUqFt1VsdFQLh7cfM6suc8r87HgR7eGqbVONsYR7j8Z0rgL0dNWY9Lw WzAg== 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=vzTM39QW0fInXmqtyi88yE08tkKW26xo17OX85qvDN0=; fh=hv+BGfRnZKm/Mx7Um70Asy2r1y7Zqr2lNnN/bFBL5yk=; b=PdXgiWlm1mNy3JviwaQJ2w72DhikD0NnbhWLxczvllEUSv6KwyB0jJMHnZK8Wt0Tyz 66ZLFbzQCiBiSm5P9tY+mSHO2NIzEmuNHy6RNysVgSQYupcSyMH1cYFPTu5A4UY0MIfN PFeokNd3UNbJX0Q8loF+F0WomVvvKzI7e7thWjboo00wR97Xa+224jxg9Str7c4wdyVw /cBZWbc20egv5t6QZ8Sgjtu5idUN+N/ulKf9YtmQdvCxP6yEIKi6QbiCy8yimw5ZIy6b bVP17/kf5x0R4U+NzQegESgjkgQSvdR6sNRQxpfgyQMqeVIOFpaPqlRUV04XLFpTzmz/ w+Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pZ8Q6H+e; 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 11-20020a63164b000000b00553e8d95742si8713783pgw.654.2023.07.10.01.00.01; Mon, 10 Jul 2023 01:00:14 -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=pZ8Q6H+e; 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 S231754AbjGJHsZ (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Mon, 10 Jul 2023 03:48:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232042AbjGJHr7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 10 Jul 2023 03:47:59 -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 7D224138 for <linux-kernel@vger.kernel.org>; Mon, 10 Jul 2023 00:47:51 -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 A7F7A60E9E for <linux-kernel@vger.kernel.org>; Mon, 10 Jul 2023 07:47:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CDD4C433C7; Mon, 10 Jul 2023 07:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688975270; bh=ESA0y0NXrSvpPjbIAHKbdqC7HnGx+32+DeIPn5Bsru4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=pZ8Q6H+eqITfqMayWd+SJ0YWIwM4w+0mClw1EjmaLdSoGIF4WWFyAqqybxUf16tGL 6ArmiNLhhAvBnhA8KtdGLVXTeXwIJ25f8ULMi3Y8W6pK9y5z+56cFeVjZfsEQiy0SE Yr0+8mzB2CcGtiivAC7EshSeDxDbzbUxcPE0UAN9KgSdrTl/YAQd+Gsuj0ds83+maq u3G9fr7haXi6pwAcpINt5BAnNXFXuvCU0vz1wRFgsWpe2CYNBtbrKM/nWYULgmKIn6 TkWqg/+GddLjaxHZ+UJQU0qrF2i6kWdO/iyRbJLnczGq7R4w0CqYhNDv3vVtZp7iJX PB3P+60woanCw== From: Maxime Ripard <mripard@kernel.org> Date: Mon, 10 Jul 2023 09:47:34 +0200 Subject: [PATCH 03/11] drm/tests: modes: Remove call to drm_kunit_helper_free_device() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230710-kms-kunit-actions-rework-v1-3-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 <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Thomas Zimmermann <tzimmermann@suse.de>, Emma Anholt <emma@anholt.net> Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Maxime Ripard <mripard@kernel.org> X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1235; i=mripard@kernel.org; h=from:subject:message-id; bh=ESA0y0NXrSvpPjbIAHKbdqC7HnGx+32+DeIPn5Bsru4=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDCmrt8/QyzP82jNtlwaXx53+bdniGR/XtlXOtZRqFtvEeuLw TuONHaUsDGJcDLJiiiwxwuZL4k7Net3JxjcPZg4rE8gQBi5OAZiIQx0jw4euqxNvu9sfSxa+tvqr3L RmxVYhsZWt3PPevvxWaniIZy/D/zwrwxO2j/elGTbHNnveMNMJV2BfclB32109zbke0//s5wUA 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771019713084545306 X-GMAIL-MSGID: 1771019713084545306 |
Series |
drm: kunit: Switch to kunit actions
|
|
Commit Message
Maxime Ripard
July 10, 2023, 7:47 a.m. UTC
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 <mripard@kernel.org>
---
drivers/gpu/drm/tests/drm_modes_test.c | 8 --------
1 file changed, 8 deletions(-)
Comments
Maxime Ripard <mripard@kernel.org> writes: > 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 <mripard@kernel.org> > --- Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
diff --git a/drivers/gpu/drm/tests/drm_modes_test.c b/drivers/gpu/drm/tests/drm_modes_test.c index bc4aa2ce78be..1e9f63fbfead 100644 --- a/drivers/gpu/drm/tests/drm_modes_test.c +++ b/drivers/gpu/drm/tests/drm_modes_test.c @@ -36,13 +36,6 @@ static int drm_test_modes_init(struct kunit *test) return 0; } -static void drm_test_modes_exit(struct kunit *test) -{ - struct drm_test_modes_priv *priv = test->priv; - - drm_kunit_helper_free_device(test, priv->dev); -} - static void drm_test_modes_analog_tv_ntsc_480i(struct kunit *test) { struct drm_test_modes_priv *priv = test->priv; @@ -148,7 +141,6 @@ static struct kunit_case drm_modes_analog_tv_tests[] = { static struct kunit_suite drm_modes_analog_tv_test_suite = { .name = "drm_modes_analog_tv", .init = drm_test_modes_init, - .exit = drm_test_modes_exit, .test_cases = drm_modes_analog_tv_tests, };