Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp22060pxa; Tue, 4 Aug 2020 15:21:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk7Vj+0gsPI/TP6ofkcqDBDqQSI5XKJbD7oopI2iFpa9J74RACOBgM+sORt2Ycv5us1eTj X-Received: by 2002:aa7:c45a:: with SMTP id n26mr85196edr.45.1596579709420; Tue, 04 Aug 2020 15:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596579709; cv=none; d=google.com; s=arc-20160816; b=uhCVadg88gkjAlBdEhshzZrWneyPn6DPrJ/Wgj9BVnERDhsA7BPIdNfY8aDyvF0NZI kKn/mC2Xm0lwaE0VnsputY2VaMRy0Me9XzkxsCJt0pmwZ+vANGyPijS3UtPhAPcD4ckr 8DQzTvQ+92lKgXfVxNZU8GFi6koKLxMO6CItHuoUsGP3rQ+eXqmJv4vzmE5Yr3G15r+G RXsG3IwWOqOw+4ItUaaS7TS6BQH72+3xCF3IIVG0hkcOgmGreuhiJ5mdAMIu8/RIRzFf Htr2izMjNDdsuajs/HjrhVi1gHLUnRealT3TuW2z5XsYqKs9Jb0z/XuMZHTRfZKgAeQa SbUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bIU597/R52NdHt9My0gKrv9XPCqvlmRzraRI2fhWzKw=; b=k8nqgwDi6lzlv06Na+8L4uHrmHp3Sw1eOKGaP+u0IjlO8e/ws9co2JH5An/JDkZ47K jjOHvLjMrJj0I4Y/Rmi+so6dyZX/13zjj978XPeKbIB+CPmIJkE6MrbHBS5KwISuel8Q FPmzVEV2RVSY1tSzEEz1lcy6smDV9Dtl/9LnxZgtXIw5BKxPepKm3wiziXKtTMcBA/NC JznZhPRR6fxNxifP1x7W16SDkimMUbq9FKjwKaYmJCg9Vu/I0e2RUlTj7g8PXfluO3p6 3NtDVqDQyrRysKK7Var5BMBtU4c0h8laJ3/XYKjcD/mKXL4rMJ4xGTuanguyYB3wZ70D AzZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N8IhA7xX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si64562ejr.426.2020.08.04.15.21.09; Tue, 04 Aug 2020 15:21:49 -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=@gmail.com header.s=20161025 header.b=N8IhA7xX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726688AbgHDWUN (ORCPT + 99 others); Tue, 4 Aug 2020 18:20:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725863AbgHDWUN (ORCPT ); Tue, 4 Aug 2020 18:20:13 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 883D6C06174A for ; Tue, 4 Aug 2020 15:20:11 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id q76so4389459wme.4 for ; Tue, 04 Aug 2020 15:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bIU597/R52NdHt9My0gKrv9XPCqvlmRzraRI2fhWzKw=; b=N8IhA7xXYSSwwD5ZHij95ahJQh5m7VjaobHv39G8BqYbUStXlUudUwRau+y0sqrYIN TrnPoZst9mLsMipwxTzW/Ee7yXQx2TjEIE5kvFOIX8I9ZKPOw1x7E0FPVEykt5MtHeW+ CugqxmE4WdbsZjjMyIdWQv2pyl8yFMUxFzQCi8PN65pCnJQYNEK6odoaWHs3GsbQp8BH g7QYvMAynvurxHOsg59Rz1nmLLNZx3SuPzbzS768v53YnXP1Ujzfx6gN+KkohPqvjyPn dWh0DeqmRGxwKH4seuHv+HRylwC0v7KxHIE8AlA6jaDMvMtSuBBjtnXK0X370erD2HeZ j5bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bIU597/R52NdHt9My0gKrv9XPCqvlmRzraRI2fhWzKw=; b=r86KjWmXHm/eC7MjbYnGcJUsxg9xT+StcDx9H6o/aua/zUWZnG9qNyLE7VLmepAaPK bQp/8ttNBJOYkPRGzkK7hwhknm6Fri+A+lwPrmmG5C/z+wk9RneCYYxBO0LE8LxCX4E7 Dig34bMgYSW58RkEO4nCFsaHas5WVs42iEV+L1Wf+zjx6XY5evVjwmPtR1RGyXSRFdLi W7QGQWyilIRGEqSbp5TfEfyA3aO5ShMuY0d3in1UYbJzH6fVvmFY+pg+cBY9srDw/hES 3YCDlhy9b4+nfzX+WxoIAlD7x5ZcNkrvUytu4WTizpGlRIjIgua5tPlmdB1uZzgG4+yd WDDw== X-Gm-Message-State: AOAM531WzAE+ZHNDyTAN9X7Bqhme2aXfCXfHWyNn0uk0ZoQocbss6N0Q oecrOkMwodbetKFi238UnHda/LYtTsLzrq1Y0bE= X-Received: by 2002:a1c:f70a:: with SMTP id v10mr469144wmh.39.1596579610237; Tue, 04 Aug 2020 15:20:10 -0700 (PDT) MIME-Version: 1.0 References: <20200802111536.5246-1-tianjia.zhang@linux.alibaba.com> In-Reply-To: <20200802111536.5246-1-tianjia.zhang@linux.alibaba.com> From: Alex Deucher Date: Tue, 4 Aug 2020 18:19:58 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: Fix wrong return value in dm_update_plane_state() To: Tianjia Zhang Cc: "Wentland, Harry" , "Leo (Sunpeng) Li" , "Deucher, Alexander" , Christian Koenig , Dave Airlie , Daniel Vetter , "Kazlauskas, Nicholas" , "Siqueira, Rodrigo" , Bhawanpreet Lakha , Stylon Wang , Roman Li , "Lipski, Mikita" , tianjia.zhang@alibaba.com, Maling list - DRI developers , amd-gfx list , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 3, 2020 at 4:21 AM Tianjia Zhang wrote: > > On an error exit path, a negative error code should be returned > instead of a positive return value. > > Fixes: 9e869063b0021 ("drm/amd/display: Move iteration out of dm_update_planes") > Cc: Leo Li > Signed-off-by: Tianjia Zhang Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > index 710edc70e37e..5810416e2ddc 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > @@ -8182,8 +8182,7 @@ static int dm_update_plane_state(struct dc *dc, > dm_old_plane_state->dc_state, > dm_state->context)) { > > - ret = EINVAL; > - return ret; > + return -EINVAL; > } > > > -- > 2.26.2 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel