Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8617401rwp; Wed, 19 Jul 2023 12:33:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlGf05e06MJVi4TIn5mBNDVIUHnc/sceYvBwJ0KHiXBKbax9lhC7KYza+ETtQnpqqJZ/NeZB X-Received: by 2002:a17:902:d2c4:b0:1b8:6a09:9cf9 with SMTP id n4-20020a170902d2c400b001b86a099cf9mr131266plc.26.1689795206832; Wed, 19 Jul 2023 12:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689795206; cv=none; d=google.com; s=arc-20160816; b=HhHqA3Bmi1+shNu5jGVtwxlpB2CkV47tbhYP/fBQtjQP+Af0TUGAKWsAhfFV0zaWG5 g/6m3L/OM5QOjHzMKENe7R8ULJs3e0yBpCqgG5r89lojdI5RLxb+A6OOw48Bu4i98x8L OYjxSMxkefht52u4gcKyVpCQ0QAakNnQtSZZvJ6hLy308FAYHJ4jjSR+WEpixj4w+MmU yPt7HkUHeNoRrcdx/Ve0Um+S27Amc1u4okQTOK/9lCwxbmYpYpw8aUq1o3BlVtYZSwWg sWSDp1Nxr5M2oOOalE+u1D4Z6lAKNlsqNXNOyem0WH456PIxGZv2q9M2aLorX6KU90Rp wBHg== 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=F8XGxi53b0PEdlxoh7O8cl7xJyRMkcuJJYP/JuLoaN8=; fh=6bZ9kKIHh878zvAH94gz2LePr4UDuzqXICHyU8eLSeM=; b=yMpr/wWihmycvTLwEJJa7myDk8IRpflq4FtHBY0paC4NXI4s5+m5ufDZ0Gs3eaCZgC zKV9DCCsDrj0BDVojRaAXFTGumH2rCr1cIoRtabOzyG93jbI7WawpCaZa+KQ6muIUAp1 Gdhfh8fz/F2mG3uaMtZam6qDvPDd13k0S47NGUiLn8Fkadb/VBhtGxhSXsOw/iIMkL5K EgiIXUeXr+iLVo19ttZNjISpUfGyKldv7l3xmhGsXBjwoeXW8DT2KrUXsK/iMg03AoYB DqIjDj4U81d9LMd4XY0guQQqW/sJ+kMNhOyPzgfgSYHXNt5Pn8XsXum3Vs60V579X0DN Px8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="SRxE7/HP"; 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 m3-20020a170902d18300b001b3b2697004si3866624plb.333.2023.07.19.12.33.14; Wed, 19 Jul 2023 12:33:26 -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="SRxE7/HP"; 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 S230514AbjGSTMc (ORCPT + 99 others); Wed, 19 Jul 2023 15:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230511AbjGSTM1 (ORCPT ); Wed, 19 Jul 2023 15:12:27 -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 EA568199A for ; Wed, 19 Jul 2023 12:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689793900; 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=F8XGxi53b0PEdlxoh7O8cl7xJyRMkcuJJYP/JuLoaN8=; b=SRxE7/HP8H//Wg/zEmb57Oh398h2MBvK63J5wbgE9mKOdEhkI0bCMqvvYkNVz7SiQdy1+n dkkJUo8EJUTKYE6LlVED4aztfbphjsgCrOwnKGc6OwzyeVMpV+h0Y/MJONSKxpD35PvhPF 53Igcu5Op95vHE9uUHddu6LNj5U9Mkw= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-117-__ui0w8MMKef19n0jhQzTg-1; Wed, 19 Jul 2023 15:11:38 -0400 X-MC-Unique: __ui0w8MMKef19n0jhQzTg-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-3fa8db49267so39101395e9.3 for ; Wed, 19 Jul 2023 12:11:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689793897; x=1690398697; 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=F8XGxi53b0PEdlxoh7O8cl7xJyRMkcuJJYP/JuLoaN8=; b=Lb8s2SupZs1d+rcn6LAU4q8chrgCZBkSjwJXX3CXO99awdfmc/nkhVh4R/KEBbFvuz R/UWCcMi+ZzFZoW53b92eD+zqN4NU3e6ezqDYWpkWQc8sfmHEQCYhnbsPaC7eQl4aBEL 19Zy2jLQYXIgR4Th1FMIKH3/EJaF/LU0QNW1x9x4v7M+irafjJ5x5flUhdftkJPg2EAN YaShbLd2VbjXr/luz3OMVayF8DzXpuMiMWtrzMfijocaZJm7S3FHzfYhwvGefQlOcfqA 9CFv1AvWNeL5c1NXT/8pe6wqTT+qSYyApSFgdjoFLj/f7M8/XZFJffNtw6Cv1kXm77SZ SvYQ== X-Gm-Message-State: ABy/qLZN623Fno1yCWhkmpwzGEPjaqVuZ0v8sIXJJNka5sw6AIDg6dRV JGj8AXz/7jxi2NUsREcrwC+m/LVZpha9xq1EsDICaF2O1onjfxkLbteMXS4DpiXwNz9cCkAHbY8 BLAcooW6M6s7PcmiB5Ej0Cv1OPA5T10As X-Received: by 2002:adf:de85:0:b0:313:efed:9162 with SMTP id w5-20020adfde85000000b00313efed9162mr592379wrl.59.1689793897427; Wed, 19 Jul 2023 12:11:37 -0700 (PDT) X-Received: by 2002:adf:de85:0:b0:313:efed:9162 with SMTP id w5-20020adfde85000000b00313efed9162mr592365wrl.59.1689793897094; Wed, 19 Jul 2023 12:11:37 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id c3-20020adfef43000000b00313f9a0c521sm5973293wrp.107.2023.07.19.12.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 12:11:36 -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 05/11] drm/tests: helpers: Create an helper to allocate a locking ctx In-Reply-To: <20230710-kms-kunit-actions-rework-v1-5-722c58d72c72@kernel.org> References: <20230710-kms-kunit-actions-rework-v1-0-722c58d72c72@kernel.org> <20230710-kms-kunit-actions-rework-v1-5-722c58d72c72@kernel.org> Date: Wed, 19 Jul 2023 21:11:36 +0200 Message-ID: <874jlzk97b.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: > As we get more and more tests, the locking context initialisation > creates more and more boilerplate, both at creation and destruction. > > Let's create a helper that will allocate, initialise a context, and > register kunit actions to clean up once the test is done. > > Signed-off-by: Maxime Ripard > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat