Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp153648pxb; Fri, 17 Sep 2021 22:07:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFebxVO9Lj5w67mdQFFBiV2IOXMRpolLpckRO2FOqaLda3nC6CDCfeZQaS/M+Qvc9yYmnN X-Received: by 2002:a92:da4a:: with SMTP id p10mr10892156ilq.13.1631941625104; Fri, 17 Sep 2021 22:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631941625; cv=none; d=google.com; s=arc-20160816; b=XyuiURKJFxIsPJ8wnAu15bEX/dFeXaO7YaSLIm4V0g40zPI6gJu8Gn6Rfv7DB+aUWl wlTVDIXiJVLkUOIywtREhLOvQWdMLe7wFNmY9JaEg2o8CtIbi6LM1BgzTLop0XUh2N9w UAB4LgPGf3r4Nkv0l9soZxKY23f6/9a4jyBt4n5T72clYqlD38wL8h+4YJHLlYbpL8zC iHqNAoyxcUWaTI53TEt3QqWMCzABv/NAKzAYucjEeEqzQqP44DiJ+EnXUG5Ikcv+8Esg GpPzmW/K7ytmx/c/1dGvv60F/9n83c+T4tjA1Sq7xbN58bpGwstnwgPPDYAN4YHUBOjo D4mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=RZqwfni5G08cwy4bwCn0VZ2NfU9CVpPHZawELnxT/nw=; b=OJXdT4mNiReP5dKxnA5mffx9P7TonLOulWrcGyxkBpV5poGGnxHu360V0ZYluJCgyo E7GrN5Fzg7ZU4oyU65UjCVhChROOeFDQX/wfwRd5tKUu4Vw6f74J2ldndNgYY6NBB5fb VK7pAfZ2OP2nEONMKW4nlg+TZ07zq4KRKfl8IG0mwnNfsi2rFrmJZR7coOVt4/qs9zut x1lT0dLq9c6G+ejvIxvCDlCDivIn4fUhJvH7HtBBXMj4jytn24wzu1uXqSjXVEBzM9ri ysMewUXl9TOmJ7v1egrFCOJcoJaIuriq/6ZD/hQpgzRkdpnorqUMWDrUlkQb5Q7jSQ5i n+Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@u92.eu header.s=fm3 header.b=CFEPoLG3; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dUn7PmC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si8488133ios.12.2021.09.17.22.06.53; Fri, 17 Sep 2021 22:07:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@u92.eu header.s=fm3 header.b=CFEPoLG3; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dUn7PmC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233843AbhIQWIf (ORCPT + 99 others); Fri, 17 Sep 2021 18:08:35 -0400 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:36869 "EHLO wnew3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244695AbhIQWId (ORCPT ); Fri, 17 Sep 2021 18:08:33 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id B227B2B00B9B; Fri, 17 Sep 2021 18:07:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 17 Sep 2021 18:07:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=u92.eu; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=RZqwfni5G08cwy4bwCn0VZ2NfU9 CVpPHZawELnxT/nw=; b=CFEPoLG3r9CnA2l7rKfHIt4/NhNBzFl/tYNZjS8vfyy /7sCYBUgPrRC6V28BYKuk9Bt2j1P+Iff3ZTYJf4cfr5F2EApL6nSPPeHbJno94Ql 0Mhe6eK4Hla69B75bTxb+z0TYEZ76Er4RbLdvE0OhGIO6nGSyfzFO1xh2UBwNaVM g/kiCzmS0gRdD7Ws1BuT4FPalpabDVdL0cDH2HoLQ0l1WClEm8MdwoKvir9yF+KI Mh9jLazd8l1xH2dhP9VnVnH0jZ6mP5ryxws3aKuICOK9b4psPogX/UxTPwuCe9WC 1mBj4y513FOjemXjVXaGVuBzIHYG3mfy3SV8tmRQPpA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=RZqwfn i5G08cwy4bwCn0VZ2NfU9CVpPHZawELnxT/nw=; b=dUn7PmC0UMgypEUPLvpOHv X2kr0eFnUfnvMEeRbdehbaGOancVzRwPT/g238ZzaSTphUNKKetqLzg9ET9o591s 846aL7F1yJ97PEV9sukaCt/59u/0UQEZyxt693FJCnGf9IgL4ZVBS8pI9y7XFX6R b1vUC9gV4CgqBqvZrS478AfxsUpMSTnbaJLNqlTyfT//ffTxil5lyiN34OaOd3N2 fcsD+sZqIN6yGeKn6dtaQAGa/3Ix/Ltzmd0sIX1WufyMPD2yByw1I+6cRrLfY8a7 BB0lpl6jbeBHOdFRwXZX+b4l8n9B3i8taSi/p/v3fFbMQyHmap9vama1Mcgu+UsQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehjedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttdejnecuhfhrohhmpefhvghrnhgr nhguohcutfgrmhhoshcuoehgrhgvvghnfhhoohesuhelvddrvghuqeenucggtffrrghtth gvrhhnpedvjeeifeelhfetiefhhfdthfefkefhhfeutdetvdfgvefgveefheffgfekjeef heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrh gvvghnfhhoohesuhelvddrvghu X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 17 Sep 2021 18:07:05 -0400 (EDT) Date: Sat, 18 Sep 2021 00:07:03 +0200 From: Fernando Ramos To: Sean Paul Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH 01/15] dmr: cleanup: drm_modeset_lock_all_ctx() --> DRM_MODESET_LOCK_ALL_BEGIN() Message-ID: References: <20210916211552.33490-1-greenfoo@u92.eu> <20210916211552.33490-2-greenfoo@u92.eu> <20210917152842.GA2515@art_vandelay> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210917152842.GA2515@art_vandelay> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Could you please fix the subject, changing dmr to drm? > Ups! Sure, I'll fix that. Thanks for noticing. > > I think you can just reuse 'ret' instead of creating a new variable. That > ensures if the lock fails we return the error from the macros. > I didn't reuse "ret" because otherwise I would have had to change the prototype of the function (which currently returns a "bool" instead of an "int"). However I could, for example, check for any error and convert that into "false". Would that be ok?