Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp319358rdb; Tue, 31 Oct 2023 08:21:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoNgWg1HebnhwpqUKIt1z9A3+vbc401gIfDxps92Kw+nK2adbkGKnMLcJ0zuBV/iy1FAF4 X-Received: by 2002:a17:90a:88a:b0:27e:22b:dce5 with SMTP id v10-20020a17090a088a00b0027e022bdce5mr10512907pjc.27.1698765663440; Tue, 31 Oct 2023 08:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698765663; cv=none; d=google.com; s=arc-20160816; b=P1hzjKAnIUW6Z3zOb5JcsYQPUCeH1LlXiNtgTAZVnNjeKJlQdS9EecOPmO812lZbw0 zkUbDD8cAoVMisxdsg7pwQ3hU5NWAtL6vOCF4m20wFdOl1KqVECSheMgI1ctZbDmXIdq pgMlX0W7D60QcckqaJqjrPP6Mt9MFpkReVeyf97CTrsnS+hjeEzuvczrmMc17qisrai3 7Q/68O0q2wReKcktfF+HTam6dbWnSNM23iI+f+RaugTXA1oXZheYTVgzCGI1CM4LQvSe udjeJGw5vs9LrdRap4Jz5ShRPEcC3zU+2yiWebGMrRx3sLyfOPZFtzdqyHtLgiyUtF+Z a7fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :message-id:user-agent:references:in-reply-to:subject:cc:to:from :date:mime-version; bh=Wtv9cVG3gU9nN5wtE3NA3NGMd825tYAZKCJvZaumteQ=; fh=GMRP0kVIWWHGAQRCXSK9iqTUkfDxWemoJHdETV/S/wA=; b=FLsnCfoGBDM13YrXTdVXRs2ODQ8jJn3ZZfGjcE6qPqceX3xu3kpDheNBFFiJOA4bDg 1mO853HcC8pX0dHeYaOxUw4prMjvNeNTbaHOjMK2QcUiIWSkfCzb4EydKE+l3UmnGXUn /JnveCknG7x1EVWLWwhj+nld9M1vJdw0SRPEbekUyQcO/545WAeF2abeECJZ24qZZAmn kOLdEGMPIjXpeVDI8phGGbg0Ou53sKVIA5cT/N24CypSyOM6TexylnAprknwDm35duFQ 1Xhb683WUIHM8cWs4vjht/0mPaGsJ+t3t1XJ9GB/YPkZsaYPsvoG82CSPNg65DCvBTe/ MM8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id pi16-20020a17090b1e5000b00274681ee3adsi1115130pjb.8.2023.10.31.08.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 08:21:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B8034804C645; Tue, 31 Oct 2023 08:20:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344798AbjJaPUY (ORCPT + 99 others); Tue, 31 Oct 2023 11:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344620AbjJaPUV (ORCPT ); Tue, 31 Oct 2023 11:20:21 -0400 X-Greylist: delayed 12000 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 31 Oct 2023 08:18:57 PDT Received: from 16.mo550.mail-out.ovh.net (16.mo550.mail-out.ovh.net [178.33.104.224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D164A10E7 for ; Tue, 31 Oct 2023 08:18:57 -0700 (PDT) Received: from director5.ghost.mail-out.ovh.net (unknown [10.108.4.105]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id E340E2884F for ; Tue, 31 Oct 2023 11:42:18 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-rsqbf (unknown [10.110.103.49]) by director5.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 03A651FEB0; Tue, 31 Oct 2023 11:42:17 +0000 (UTC) Received: from RCM-web9.webmail.mail.ovh.net ([151.80.29.21]) by ghost-submission-6684bf9d7b-rsqbf with ESMTPSA id xNv7ORnoQGUrvQAA/A58uA (envelope-from ); Tue, 31 Oct 2023 11:42:17 +0000 MIME-Version: 1.0 Date: Tue, 31 Oct 2023 13:42:17 +0200 From: =?UTF-8?Q?Jos=C3=A9_Pekkarinen?= To: Greg KH Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, skhan@linuxfoundation.org, dillon.varone@amd.com, linux-kernel-mentees@lists.linuxfoundation.org, dri-devel@lists.freedesktop.org, Xinhui.Pan@amd.com, linux-kernel@vger.kernel.org, samson.tam@amd.com, SyedSaaem.Rizvi@amd.com, aurabindo.pillai@amd.com, stable@vger.kernel.org, daniel@ffwll.ch, george.shen@amd.com, alexander.deucher@amd.com, Jun.Lei@amd.com, airlied@gmail.com, christian.koenig@amd.com Subject: Re: [PATCH] drm/amd/display: remove redundant check In-Reply-To: <2023103115-obstruct-smudgy-6cc6@gregkh> References: <20231030171748.35482-1-jose.pekkarinen@foxhound.fi> <2023103115-obstruct-smudgy-6cc6@gregkh> User-Agent: Roundcube Webmail/1.4.15 Message-ID: <3ab58c1e48447798d7525e7d2f42f1a2@foxhound.fi> X-Sender: jose.pekkarinen@foxhound.fi Organization: Foxhound Ltd. X-Originating-IP: 185.220.101.158 X-Webmail-UserID: jose.pekkarinen@foxhound.fi Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 16724680167312303623 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedruddtvddgfedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepggffhffvvefujghffgfkgihoihgtgfesthekjhdttderjeenucfhrhhomheplfhoshorucfrvghkkhgrrhhinhgvnhcuoehjohhsvgdrphgvkhhkrghrihhnvghnsehfohighhhouhhnugdrfhhiqeenucggtffrrghtthgvrhhnpeetveejleefudduueehfedvjeekteevhefhtdffkedvffegieejgeettdeuueeiteenucffohhmrghinhepfhhrvggvuggvshhkthhophdrohhrghenucfkphepuddvjedrtddrtddruddpudekhedrvddvtddruddtuddrudehkedpudehuddrkedtrddvledrvddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeojhhoshgvrdhpvghkkhgrrhhinhgvnhesfhhogihhohhunhgurdhfiheqpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehhedtpdhmohguvgepshhmthhpohhuth X-Spam-Status: No, score=4.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 31 Oct 2023 08:20:56 -0700 (PDT) On 2023-10-31 07:48, Greg KH wrote: > On Mon, Oct 30, 2023 at 07:17:48PM +0200, José Pekkarinen wrote: >> This patch addresses the following warning spotted by >> using coccinelle where the case checked does the same >> than the else case. >> >> drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c:4664:8-10: >> WARNING: possible condition with no effect (if == else) >> >> Fixes: 974ce181 ("drm/amd/display: Add check for PState change in >> DCN32") >> >> Cc: stable@vger.kernel.org > > Why is this relevant for stable? Hi, I was asked to send it for stable because this code looks different in amd-staging-drm-next, see here. https://gitlab.freedesktop.org/agd5f/linux/-/blob/amd-staging-drm-next/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c#L4661 Feel free to let me know if this is wrong, or if I need to review some other guidelines I may have missed. Thanks! José.