Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8669496rwp; Wed, 19 Jul 2023 13:27:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlGXViyc8MAcEFiSZt4FKUCHfYi9L0UN+vArv1fXGmLWYiLNfZnurOb6OaM1yqgVzsSlQ/YF X-Received: by 2002:a05:6a20:be2f:b0:132:d797:a6f9 with SMTP id ge47-20020a056a20be2f00b00132d797a6f9mr507627pzb.23.1689798466537; Wed, 19 Jul 2023 13:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689798466; cv=none; d=google.com; s=arc-20160816; b=rEmSSxd8ddSmf32BXPjpBIq7ZZsQx3bTWRqdfhconVxxEKEAyE58WjM+7YexFCWz26 YYAc9Xn/4seinlqojxHm71+GrJ8XurDW4g8yXLKqqbrElVhvFp6bA2mGQUGThsP+EvC0 4dSoAuy6SkwZYVTw0k7jywptBZagMMnj7HMyz76mVTDkjnb3fjWwy20LnlGGWga/x08D NBDZzLNh7y43VDp4T5Dr5cVYQW8cblrm7lRc6qJ2U7+OYOjy3yZ6aHWzxfP80evzmHwd BOfpA5XmcNbCM+Hw/YqwWsW61/fj2fOtWB5JoV21kcSFkP4x38Rn1Cb1nub/f4S2vIY4 tb1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=XOM+wVNXILroEPxWjZwTznoH+LNSt31Zm8n0YzaUK5g=; fh=6bZ9kKIHh878zvAH94gz2LePr4UDuzqXICHyU8eLSeM=; b=jaLEr8NKM2Pc6Bxz0GGFYDeE51Sk9UphaEa4BvTizUB3L+5apFiXipz+N+MXWDaeQ/ 2Kb5uO0uwHNLbuKdfbKtU/pU85VYb5REpfBcqcEEQDsQGnVuu/9n2/hN3wRZs6FUgcUv Vx+UUqxUu9V2pDRe2SgpuaO6XWGIBchngz/12g5rCqRf4xDtmXK4EzbHdQWvV2qbZP+p IksRFOvIOhARLZU8xv4bLufWlgniWJp1Yf87PVlJIamYJ1wkbZkVfEfAnGI10ys5iU8a m47DOwHkOjLMQinnO4LGX41K8+ABvELLmOKP3ZEpEuSFkF5xA38ul8TihozzPfkxGK2G ClaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hGudsZR4; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 185-20020a6300c2000000b005347c4d09ddsi4059102pga.678.2023.07.19.13.27.34; Wed, 19 Jul 2023 13:27:46 -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=@redhat.com header.s=mimecast20190719 header.b=hGudsZR4; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbjGSUEj (ORCPT + 99 others); Wed, 19 Jul 2023 16:04:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbjGSUEi (ORCPT ); Wed, 19 Jul 2023 16:04:38 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10429189 for ; Wed, 19 Jul 2023 13:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689797027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XOM+wVNXILroEPxWjZwTznoH+LNSt31Zm8n0YzaUK5g=; b=hGudsZR4Ido8A91iYcaZyzxZs+O37P5dhGl7U57uVnQOKNom5pB0um5A+0HvBVu3u7UX0v +inhvtuRgDHrAlRUc33KgrCzcumiYyl3JrZvJ2K1w6bIdyfY2Yh42gg33rRVCg+Ayype0I TJ7jK1l93xFOkjjKXh7cJTuX1t2/Vbs= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-253-DtbF0ownO3CltvPkvvNWDg-1; Wed, 19 Jul 2023 16:03:45 -0400 X-MC-Unique: DtbF0ownO3CltvPkvvNWDg-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-313c930ee0eso16677f8f.0 for ; Wed, 19 Jul 2023 13:03:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689797024; x=1690401824; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XOM+wVNXILroEPxWjZwTznoH+LNSt31Zm8n0YzaUK5g=; b=cKcpPJrk3JIPI4fzS6bwiwapc4Dmf8j54E55/uGG3rj+iXWnc4+tD1XUu/BUN+Equ/ NjHoUQlf8vgVr16wFIuM6xQLR2M1tMAACeKoXMJhmIMk7qqga7NhC3TyuRZg8WmzjaiJ qj6SpZImcJa/QXiouTeyChjARRBIEiLL8n0cWDOZRpUG96EB5aEPF9i/sfBPA6EKQ22I WPnKloMbxS/1c2JUdLcU49FGcMUb9KKcF6HWCq5PRiVQWYuS7LdOrZur8tBKbQfMkClE WSFp3IKTiZZAFnmtNEVfVh4kW8CThT0+kep9cK4givA99qMY68wp3eqyFrrNuddjn5z2 Tsug== X-Gm-Message-State: ABy/qLZYTVXzLiPZJO3eHpLvEMq1I8r2qB5deTPbiX2PqaEZasOWjTNH nLQIyrc0bG4LUyaH7x1QTxhE1wrWI0K96i8D+hEsTxtC8ZJRwhmBZOraWxh+x6KJq3+fs/2M10O mHLAXHcY+e8nfV9ZI0qsL6WOF X-Received: by 2002:adf:db0c:0:b0:313:f0d7:a46 with SMTP id s12-20020adfdb0c000000b00313f0d70a46mr789090wri.3.1689797024472; Wed, 19 Jul 2023 13:03:44 -0700 (PDT) X-Received: by 2002:adf:db0c:0:b0:313:f0d7:a46 with SMTP id s12-20020adfdb0c000000b00313f0d70a46mr789073wri.3.1689797024169; Wed, 19 Jul 2023 13:03:44 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id f13-20020a1c6a0d000000b003fbdbd0a7desm2373198wmc.27.2023.07.19.13.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 13:03:43 -0700 (PDT) From: Javier Martinez Canillas To: Maxime Ripard , David Airlie , Daniel Vetter , Maarten Lankhorst , Thomas Zimmermann , Emma Anholt Cc: Maxime Ripard , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 08/11] drm/vc4: tests: mock: Use a kunit action to unregister DRM device In-Reply-To: <20230710-kms-kunit-actions-rework-v1-8-722c58d72c72@kernel.org> References: <20230710-kms-kunit-actions-rework-v1-0-722c58d72c72@kernel.org> <20230710-kms-kunit-actions-rework-v1-8-722c58d72c72@kernel.org> Date: Wed, 19 Jul 2023 22:03:43 +0200 Message-ID: <87cz0nhdnk.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain 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,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,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 Maxime Ripard writes: > The *_mock_device functions allocate a DRM device that needs to be > released using drm_dev_unregister. > > Now that we have a kunit release action API, we can switch to it and > don't require any kind of garbage collection from the caller. > > Signed-off-by: Maxime Ripard > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat