Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3697755imw; Mon, 18 Jul 2022 12:52:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uHf4OeZSGkQU7QlBJg0gBcdBo4LsCNHpzsIH1ObIB653Tk9F78Ou1SRhX2y/V77jmZsjO+ X-Received: by 2002:a17:906:7007:b0:6ff:8028:42e with SMTP id n7-20020a170906700700b006ff8028042emr27369953ejj.278.1658173924670; Mon, 18 Jul 2022 12:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658173924; cv=none; d=google.com; s=arc-20160816; b=qugqZFkRneOLq0UrnKqzfr6lS41zkLUzNVfCk6JjZFwyNqa0HUzN0peVTu19ZWKmbW TKn5RuNayhtNHEa4fXBtzH8hJoUQatMCG1T8KLQmU21jZ7+mzgD2X2F65mJRu4T7PbRc A6+M6DZiP+XPXXloWucKGHHHDfZOa+3/7p0nX/zsUSb7o1iHgUQnzjfW/IgNz8h2IMtF C6wJCBswhvE4UFaoo5rCa9fwk8h21q5MQG4zPivZ9M5DayE/122yvNdYQosX7iEvTy9I OgW8i685qMIE7pXkb6EiXi6iOxlfSFMMB78zjynjjSyEYnptx5XD40PsCXP1JLkZm7s5 9F6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kIztP35AVtY3Dcob7hWoCvvqV3w68ASQI2y6wb5SraQ=; b=0KZN1YhrVzsBQwq4OC5xn5Wi3j/zh2AV9XBmJZJayoTFrKrztI+rQMX2cjkYSlshqT V4QUVvIq1KA0YbyCnGUmfwAmpxz+H+RPziz/6II8Yaf0Rye/oAyjg0a67dasShJQi0ro ZHJV8KFrhMxjvEdKXlJZ9K8KW0tX7bQmRh7PEd85balUM2SGNlqRgyIsBMEh0m8bU7EH ftA/Jnanal3XGFBsvd+4DXtjwHaSDTqZK5BYtBspihOi4BPw84OrlmZsmTWeExcMjbmH eYxaJ1RlmyIeyIl06EtRHFzhPSLGtuznsA5KmyjSkACn9E3Y8GlmIeMkuy3n/SQpo0u8 tTng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RBl+Jgtz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a170906974900b0072eff8bb1easi14938893ejy.672.2022.07.18.12.51.39; Mon, 18 Jul 2022 12:52:04 -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=@gmail.com header.s=20210112 header.b=RBl+Jgtz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231786AbiGRSzg (ORCPT + 99 others); Mon, 18 Jul 2022 14:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbiGRSzf (ORCPT ); Mon, 18 Jul 2022 14:55:35 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 514CA2F038 for ; Mon, 18 Jul 2022 11:55:34 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id b11so22957176eju.10 for ; Mon, 18 Jul 2022 11:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kIztP35AVtY3Dcob7hWoCvvqV3w68ASQI2y6wb5SraQ=; b=RBl+Jgtzs8yMw7hGgLK07sQQzjRDR2jlkfoiPAfrQ7bdIBR5roZdVpOF6TP0JKUEgw D1APVjySG+bYk87HAgHZtPMwzxloM57fqDhnzbrKiIbD1fN+zr6ciE/glmOUT/V/05a0 guvlG+o0NDHaAUycP+F/YfXDhbtsvGqUP1HVi4G/ZwyXU1MxD+zYyY+TUnpZ06fapJv0 EcaQW5E0bLUgmikV7YvQL498m1fLwroFLJArVUqinpldJWcA8Zj2VEPI0dxLI3xD9anG UrFKXa4aJfR+B1CPx5avjPTvPdJgY8K6sLbYZJtj53AfRhyHfUJkCM7uLXgd4yfMsqiy 5LZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=kIztP35AVtY3Dcob7hWoCvvqV3w68ASQI2y6wb5SraQ=; b=5IdafYY++MhkHMrrECWrph95Q14Z+o0gChX3lLTdowY3Xyjq8ygIrdSKMVo2LIDF6M IwfcvuyWzMFBq59uOtu+pT/O1eo17eLp2LnDJWKSMnLSVbvGktziMZ89preuoOBJV+rN bn0kBnF68L7L5Y+ZYq0RmyqXGLCat3J56YzPnNrcfARjfOHRp5BLn7DkHGI1j3DKJWeY fZXvwTP6aepZ8MBKcW/9HF4bVBXpzxy9ZbzZNHFSOyLyYYSvKmzyZVv4ezYF/Ir2Yars 2AzWMQP7sBfYH5HowA9yjdrWI1/lGSkKdAJ0HjEt84BBLpMn4ajXXbgzZ0THvqQk8TTi 69KA== X-Gm-Message-State: AJIora8drq5in7Wdr6NmP51XMb6JoiJR0GsRuEDBGUy2RxLrKuzoHirh 0L8O3X8fZ/Vh6z5NdTzmmpdLEnEOSEkwN7ncpig= X-Received: by 2002:a17:907:2702:b0:72b:307b:98e6 with SMTP id w2-20020a170907270200b0072b307b98e6mr27463747ejk.658.1658170532827; Mon, 18 Jul 2022 11:55:32 -0700 (PDT) MIME-Version: 1.0 References: <20220714164507.561751-1-mairacanal@riseup.net> <20220714164507.561751-5-mairacanal@riseup.net> In-Reply-To: <20220714164507.561751-5-mairacanal@riseup.net> From: Alex Deucher Date: Mon, 18 Jul 2022 14:55:21 -0400 Message-ID: Subject: Re: [PATCH 05/12] drm/amd/display: Remove unused NumberOfStates variable To: =?UTF-8?B?TWHDrXJhIENhbmFs?= Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , Christian Koenig , xinhui pan , David Airlie , Daniel Vetter , Nicholas Kazlauskas , Dmytro Laktyushkin , Aurabindo Pillai , Magali Lemes , Tales Lelo da Aparecida , LKML , amd-gfx list , Melissa Wen , Isabella Basso , andrealmeid@riseup.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Applied. Thanks! Alex On Thu, Jul 14, 2022 at 12:46 PM Ma=C3=ADra Canal w= rote: > > Remove the unused unsigned int NumberOfStates from the file, which was > declared but never hooked up. > > This was pointed by clang with the following warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_32.c:= 33:27: > warning: unused variable 'NumberOfStates' [-Wunused-const-variable] > static const unsigned int NumberOfStates =3D DC__VOLTAGE_STATES; > ^ > 1 warning generated. > > Signed-off-by: Ma=C3=ADra Canal > --- > drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32= .c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c > index c6c3a9e6731a..dff8f8f27de4 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c > +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c > @@ -30,8 +30,6 @@ > #include "../dml_inline_defs.h" > #include "display_mode_vba_util_32.h" > > -static const unsigned int NumberOfStates =3D DC__VOLTAGE_STATES; > - > void dml32_recalculate(struct display_mode_lib *mode_lib); > static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndP= erformanceCalculation( > struct display_mode_lib *mode_lib); > -- > 2.36.1 >