Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3583658rwl; Mon, 27 Mar 2023 16:45:35 -0700 (PDT) X-Google-Smtp-Source: AKy350akYIaN0v5pWxRU92IBUUl0rTGOaDO8eDz6prAHxLdS4PPfe29YsxtCwQhNrA6LSl0IvSPY X-Received: by 2002:a17:902:fa43:b0:1a1:a8db:495d with SMTP id lb3-20020a170902fa4300b001a1a8db495dmr10532726plb.4.1679960735679; Mon, 27 Mar 2023 16:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679960735; cv=none; d=google.com; s=arc-20160816; b=IMZO0nBvHSqXAXLYeQ42p60Tlsq2LYHqt/6eZU4V4eXvU9O8TtjmXrqm204bbhzwTC lZ3ETUs/65sucM3srub7omkRHbBv9G7bdNgqJNL/IQF3wAJQzNwQlOxThklk463usZFA zqNjI9Y4hk94HdeORYuBmN8BUfjEfKoIqKKeslbNzpA1IiXdPhmcf1odVCWFLawleRRj PIWBaAbIPk5UF3lDvQQpAp3mgR525xwhfUEhMTYs8bIaI+qE4n8nvHztKH1oGL7OoHTX vLn3TuqXQ6I3aIJnFkqNPWgNKOlrt4f+XUsA2pbaVwWAOtcWNcJ6mkJyAVjuyiKJq3lJ ItZA== 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=DMjKJJljMmxLa3Ljhxg1VmcGN3uGAZRfG7BjQI50ULI=; b=bRmF511gJa/a9qLYU7cObTHtQusdLEIdYzFmgyAHXmqks3Zm6JNq7cKWA5hSOISkwa yTDgkEFMkZuFlcx3b2BRhJj2klbLVBhIInIQC+OY1YKJwKFhIQlay9lNZ81cNpfXEBBr jZkJJ6fqiAGztxS9bQp/3voHQLZwjbD5FM+CmV1aSwNSjCtrp7NxhA2YVWFss1wSWH2N /kvHTY/WUPpNzoVdgMUzeXldxKx7Q8eB7TtFk7ZYnRiRzau4EtLOrFQ7e7wRz4JzgTXt Nn0oyxeyaSelkz4pU27dzvrNFvXuWgKOEe6MmaBjAOcG4dP+74PAdrcg5ZINXK/dNHC5 xgYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=yZcXL9yy; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020a634a08000000b004ff73120afbsi27518766pga.103.2023.03.27.16.45.22; Mon, 27 Mar 2023 16:45:35 -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=@usp.br header.s=usp-google header.b=yZcXL9yy; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230187AbjC0Xgq (ORCPT + 99 others); Mon, 27 Mar 2023 19:36:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232100AbjC0Xgp (ORCPT ); Mon, 27 Mar 2023 19:36:45 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01FFD2D59 for ; Mon, 27 Mar 2023 16:36:13 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id y184so7699770oiy.8 for ; Mon, 27 Mar 2023 16:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1679960170; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DMjKJJljMmxLa3Ljhxg1VmcGN3uGAZRfG7BjQI50ULI=; b=yZcXL9yyvDZKCVJzbqsl/6xiSdbujypjw3qnCm+WCPI+oYss4rXX79NJb6EhbtXhp5 LYJdAEiuKIwajKd2vSdA8Vsn+SLgotaZnv312ScdaCXG6RSNfhjqzidGZ5FaTWmOddcu UqsdHJyw7JByhHBlwA+ANsEOdFyhKPDFuKMOTDQZxeEmDeFBVCSDD74RXqiDfE4TlQV+ sTpfn15kjRl3szo+IakedBOdd3wUF6wP+o07P8dSqHEkdd5/zmw/xhwmhb9f3Jl9QUvJ nKqDWBehFY5QznZ12WccPFZIrMinZI+bzFXpCrPzOj+NO8w+KAs7YglMRg0fwMJgGOPy pFaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679960170; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DMjKJJljMmxLa3Ljhxg1VmcGN3uGAZRfG7BjQI50ULI=; b=T2qjHIIxbp1vK+ZhRheFzBxk/ZLh4nIq+LH4HuP2GVMc4SSpiReubG7IKqCJLtCa/I 3vFcTzVmnQrhouiqutC0Rg5UzbB10Jg5F7BUwhxStzLvxQYP+dG2urklt37DHFzLkygj BGRhoiePzxOZSK0VVkgP1tMUTmC+gHziC3ITRmIpV+FQac/+6psLxlUfVzCs8zAJUroa ek2SuJLJV2aEsTMp4pM2V5cAZAEk+kq69Lhfdh+uq3yswC/qQZSzKCsWKzkmp8OfX2dC wxXXAkOi7Yq8FNVWB5To78meRpzrWXEF1OTjiFAfpRhvnDyGuPn4o7CCz+BEW6fMQZPn Xkqw== X-Gm-Message-State: AO0yUKXaGy3lbODCvCHiKOtZ+kgAnYK3BE/V5UWKwu3OFIytY/qqTqgf aQzb9rHBTgjsiUQNTvssPHE0FgPZQhA+RbL2RFKzpA== X-Received: by 2002:a05:6808:7cf:b0:383:f04d:5d41 with SMTP id f15-20020a05680807cf00b00383f04d5d41mr5941639oij.59.1679960170022; Mon, 27 Mar 2023 16:36:10 -0700 (PDT) Received: from ARCHaio.localdomain ([2804:1b3:a2c0:c911:919f:bd20:4f2a:8383]) by smtp.gmail.com with ESMTPSA id b186-20020aca34c3000000b00389295e8424sm1643409oia.45.2023.03.27.16.36.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:36:09 -0700 (PDT) From: Caio Novais To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Harry Wentland , Leo Li , Rodrigo Siqueira , Jack Xiao , Hawking Zhang , Le Ma , Mario Limonciello , Yifan Zhang , Mukul Joshi , Jun Lei , Wenjing Liu , Alan Liu , Caio Novais , Joshua Ashton , Guo Zhengkui , Nicholas Kazlauskas , Zhan Liu , Wayne Lin , Charlene Liu , Martin Leung , Tom Chung , Alvin Lee , George Shen , Qingqing Zhuo , Roman Li , Wesley Chalmers , Aurabindo Pillai , Jingwen Zhu , Melissa Wen , Felipe Clark , Sung Joon Kim , Dillon Varone , Ethan Wellenreiter , Taimur Hassan , =?UTF-8?q?Ma=C3=ADra=20Canal?= , Brian Chang , Gabe Teeger , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Chaitanya Dhere , Jiapeng Chong , Ryan Lin , Hamza Mahfooz Subject: [PATCH 12/12] drm/amd/display: Remove two unused variables 'result_write_min_hblank' and 'hblank_size' Date: Mon, 27 Mar 2023 20:33:53 -0300 Message-Id: <20230327233353.64081-13-caionovais@usp.br> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230327233353.64081-1-caionovais@usp.br> References: <20230327233353.64081-1-caionovais@usp.br> MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Compiling AMD GPU drivers displays a warning: drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_capability.c: In function ‘dpcd_set_source_specific_data’: drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_capability.c:1290:32: warning: variable ‘result_write_min_hblank’ set but not used [-Wunused-but-set-variable] Get rid of it by removing the variable 'result_write_min_hblank' and 'hblank_size'. Signed-off-by: Caio Novais --- .../drm/amd/display/dc/link/protocols/link_dp_capability.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c index d4370856f164..7392fcf17653 100644 --- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c +++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c @@ -1287,7 +1287,6 @@ void dc_link_overwrite_extended_receiver_cap( void dpcd_set_source_specific_data(struct dc_link *link) { if (!link->dc->vendor_signature.is_valid) { - enum dc_status result_write_min_hblank = DC_NOT_SUPPORTED; struct dpcd_amd_signature amd_signature = {0}; struct dpcd_amd_device_id amd_device_id = {0}; @@ -1324,16 +1323,10 @@ void dpcd_set_source_specific_data(struct dc_link *link) if (link->ctx->dce_version >= DCN_VERSION_2_0 && link->dc->caps.min_horizontal_blanking_period != 0) { - uint8_t hblank_size = (uint8_t)link->dc->caps.min_horizontal_blanking_period; - - result_write_min_hblank = core_link_write_dpcd(link, - DP_SOURCE_MINIMUM_HBLANK_SUPPORTED, (uint8_t *)(&hblank_size), - sizeof(hblank_size)); } DC_TRACE_LEVEL_MESSAGE(DAL_TRACE_LEVEL_INFORMATION, WPP_BIT_FLAG_DC_DETECTION_DP_CAPS, "result=%u link_index=%u enum dce_version=%d DPCD=0x%04X min_hblank=%u branch_dev_id=0x%x branch_dev_name='%c%c%c%c%c%c'", - result_write_min_hblank, link->link_index, link->ctx->dce_version, DP_SOURCE_MINIMUM_HBLANK_SUPPORTED, -- 2.40.0