Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7794735rdb; Thu, 4 Jan 2024 07:59:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGAIezRi1sMw4ZYQuYhO9HhAcqryC40pZfWwMhBuNDYVtgbXQ2YCehfLHqoT4uwlfiESlTx X-Received: by 2002:a17:906:2350:b0:a23:6143:61b5 with SMTP id m16-20020a170906235000b00a23614361b5mr492856eja.129.1704383970916; Thu, 04 Jan 2024 07:59:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704383970; cv=none; d=google.com; s=arc-20160816; b=UDvDgW9G+ACMTB1JG1IMWAj9/ktlOHLZABHjVKd65Z3YZJBlxS/n2OJoRc2dw40+Yb LjVuYQJSHDPuc1d3CWqa7YN81mlwHwaUuP1np90813WTDxe6VIBxmVDgqcPYZoQv3Pcu IZUC7EbCH69YEYktWJ7Nnfk2TCJNO9oQCJWQYMoAC5DJ5HBIjriuJwso6ehLxw3QfgqC 8Oh93wC23WViFg+Yd7DGZNVEW8pHQWXml4oGByLm3CaIrrw/1I3BF+Ca3+JIUyUxWHs+ aaQ9nrp9qql3X+wKIhRofQLvSp+J6ieVgf4Z4krsArw0z5E2aiYGgR76Yditp54SGqUJ GB3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=tEWq2NNVvRFtBfzp0UvoGVNHcDW8E0nf23RPTk2WtbM=; fh=CiiHgaH8cMotW6BNTGpPvzJaPobR3q2qySXMYKIxYc0=; b=getnJ2m7pKXAvYQFynfaMr/OxO2nN2QmMGsY8+aciZTA35EBovP1Fdlta3i0npNq1q pBQWstGO3CSdLga2dxerfP2wBaCSPtUc4Xy0JyuPs56UHcz31htrQO1KtiIfQj1BZ9G3 9JEkw0clz127oXCi9ED5I/jxIa8TUqypX2Po7u9skddx+jUBLmB66PQOoWjLBkuSe2Zl HPQUVLA03MENu7Sw3Y4nFePdCKDFPCZH6uFDJHTKYBSZmet4EbDo75gMp1f5yvbfcwUD u8iatZbypbaK9XJhgrKwnYTmbpNQRA2apdIvNlMYWP3j1zPpJznXXSnNkDb+jBRR0qad AINw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16897-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 21-20020a170906301500b00a27874b04easi3149152ejz.498.2024.01.04.07.59.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 07:59:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16897-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A8F9D1F2443F for ; Thu, 4 Jan 2024 15:59:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C95424A1E; Thu, 4 Jan 2024 15:59:21 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E63CC249E9 for ; Thu, 4 Jan 2024 15:59:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i53875a56.versanet.de ([83.135.90.86] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rLQ7T-00072M-QC; Thu, 04 Jan 2024 16:58:55 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Sandy Huang , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Cristian Ciocaltea Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCH] drm/rockchip: vop2: Drop unused if_dclk_rate variable Date: Thu, 04 Jan 2024 16:58:54 +0100 Message-ID: <5867171.29KlJPOoH8@diego> In-Reply-To: <20240104143951.85219-2-cristian.ciocaltea@collabora.com> References: <20240104143951.85219-1-cristian.ciocaltea@collabora.com> <20240104143951.85219-2-cristian.ciocaltea@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Hi Christian, Andy, Am Donnerstag, 4. Januar 2024, 15:39:50 CET schrieb Cristian Ciocaltea: > Commit 5a028e8f062f ("drm/rockchip: vop2: Add support for rk3588") > introduced a variable which ended up being unused. Remove it. >=20 > rockchip_drm_vop2.c:1688:23: warning: variable =E2=80=98if_dclk_rate=E2= =80=99 set but not used [-Wunused-but-set-variable] >=20 > Signed-off-by: Cristian Ciocaltea in general, please don't send non-series patches as replies to other patche= s. It confuses tooling like b4 way too often, as this patch is not designated as a 2/2 (similar to the first one not being 1/2). > --- > drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 2 -- > 1 file changed, 2 deletions(-) >=20 > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/d= rm/rockchip/rockchip_drm_vop2.c > index 44508c2dd614..923985d4161b 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c > @@ -1685,7 +1685,6 @@ static unsigned long rk3588_calc_cru_cfg(struct vop= 2_video_port *vp, int id, > unsigned long dclk_core_rate =3D v_pixclk >> 2; > unsigned long dclk_rate =3D v_pixclk; > unsigned long dclk_out_rate; > - unsigned long if_dclk_rate; > unsigned long if_pixclk_rate; > int K =3D 1; > =20 > @@ -1700,7 +1699,6 @@ static unsigned long rk3588_calc_cru_cfg(struct vop= 2_video_port *vp, int id, > } > =20 > if_pixclk_rate =3D (dclk_core_rate << 1) / K; > - if_dclk_rate =3D dclk_core_rate / K; > /* > * *if_pixclk_div =3D dclk_rate / if_pixclk_rate; > * *if_dclk_div =3D dclk_rate / if_dclk_rate; > */ *if_pixclk_div =3D 2; *if_dclk_div =3D 4; with the code continuing with those static constants but the comment showing a forumula, I do hope Andy can provide a bit of insight into what is happening here. I.e. I'd really like to understand if that really is just a remnant or something different is needed. Heiko