Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp732775imw; Thu, 14 Jul 2022 09:50:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tZ2z1vHuFmyoUwXH1lfX/V/A3IGifSztTbDfFkNSyq9bPvBWTHrfDEloC+GN4/Y3wFiAH7 X-Received: by 2002:a17:902:e888:b0:16c:2608:9b48 with SMTP id w8-20020a170902e88800b0016c26089b48mr9204302plg.75.1657817407469; Thu, 14 Jul 2022 09:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657817407; cv=none; d=google.com; s=arc-20160816; b=oaogJo2MuybZ1CbsaQRyR/3tBOI+1brBtVt0HHvbFBliPXaGt2G4aOu936EXMXA6Yg a6u2piwT2hX6kAU+cr5IRHck6wVWEyA7yRllkl/zOksCmjYWt8+fHbp9CuI9ZBVcqeHr tO3EorCdOoi4EIAV3FtFgYTN9W4mE0niboEThPVkCaLR7i/oKbVH82GLLCW8SM0iPLz0 Ehqe1Ugxy3mpYn7ywZDaW28IqoK7kJYIjmsyl6fD4UuCoNof0JeGpXVmub7vBuZ+VKtV t3+PrM4fa8s8F2SLgAwWP7u4i24DnUuWfq7UOI2x+MtKvE0sNj6xR4JD5v70rPK9P8ZL Wb9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lHWG08mWCwsvoyz0d3eTGnPYKBZmgsUDcexmNyznBXw=; b=XFdHPLPqRpZhjaMqYgTflCG8aoOP6qFvc8nZ0golqa6w+nH1cM1dPuyCnt1ngma9Wl xNWtX7OtU/8gmbJLER1wXAchpvNfDYrvdGMWUSjt1GLe+9NAqhqn61vbN96CS0VlKiOR EdnfwP6GgxcU6iTw1WdLksLV9NORZDIm7RupLnNXOT7YzvAcCSPCGCbvH4MPvti+4iIL mNr0a51U5VlZPC0Rh0rD8FJ2eWldipRl+I3Yrz1mQltHnsBKznyc8djTiGsBUnkLAfMR MM9vOfUwOrQzRBnGIKIlc3SEgPbm9yyttFDU6XOzSsRxaX1Y2yTPY5hvI48aCNCmkov8 oUxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=q0CUIMOL; 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=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d193-20020a6368ca000000b00416018a2be8si2243512pgc.749.2022.07.14.09.49.52; Thu, 14 Jul 2022 09:50:07 -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=@riseup.net header.s=squak header.b=q0CUIMOL; 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=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240022AbiGNQs4 (ORCPT + 99 others); Thu, 14 Jul 2022 12:48:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238312AbiGNQsX (ORCPT ); Thu, 14 Jul 2022 12:48:23 -0400 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 074C46EE94 for ; Thu, 14 Jul 2022 09:46:15 -0700 (PDT) Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4LkL3B01PKzDqNg; Thu, 14 Jul 2022 16:45:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1657817158; bh=rYhHk6kmoNgXjWL3ardLF+D2Hj0Y/fAY0GKHtabcLGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q0CUIMOLGoU5/VDM5VAHsLEelPdZgGMzPSzox345JHqthTubqhV7wQiBxh6aRF/HD w+tI6gTdgAeo3nfm5Oi1SQKx5+5a7DF8LKtsjbeOKEE/pLUzUYwgFVEQ4hpGokCO7I npuse0888/IfYKnQrMfI9m//pMFmuUrhcw79z3RI= X-Riseup-User-ID: 6DEBBF90D19B9DDA1D6A535BC184E7B50096223042D08519B7422F5C1BFA8A21 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4LkL3371zTz5w5Z; Thu, 14 Jul 2022 16:45:51 +0000 (UTC) From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , christian.koenig@amd.com, Xinhui.Pan@amd.com, David Airlie , Daniel Vetter , Nicholas Kazlauskas , Dmytro Laktyushkin , Aurabindo Pillai Cc: amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, mwen@igalia.com, andrealmeid@riseup.net, Isabella Basso , magalilemes00@gmail.com, tales.aparecida@gmail.com, =?UTF-8?q?Ma=C3=ADra=20Canal?= Subject: [PATCH 05/12] drm/amd/display: Remove unused NumberOfStates variable Date: Thu, 14 Jul 2022 13:45:00 -0300 Message-Id: <20220714164507.561751-5-mairacanal@riseup.net> In-Reply-To: <20220714164507.561751-1-mairacanal@riseup.net> References: <20220714164507.561751-1-mairacanal@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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 = DC__VOLTAGE_STATES; ^ 1 warning generated. Signed-off-by: MaĆ­ra 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 = DC__VOLTAGE_STATES; - void dml32_recalculate(struct display_mode_lib *mode_lib); static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation( struct display_mode_lib *mode_lib); -- 2.36.1