Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3574198rwl; Mon, 27 Mar 2023 16:35:44 -0700 (PDT) X-Google-Smtp-Source: AKy350Y5RX/ZCcyDtBfYg3VZC7EhAX6+ik1BfmdlWTbULyRfGe+KrzZVbXjcPC0l3IXKmzc7CRAw X-Received: by 2002:aa7:c84a:0:b0:502:26b7:82fe with SMTP id g10-20020aa7c84a000000b0050226b782femr10299465edt.3.1679960143754; Mon, 27 Mar 2023 16:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679960143; cv=none; d=google.com; s=arc-20160816; b=PLtcg+WzOgBIvv74kmDv2c9anr9M3e8bhpPXByGnT35Mqsf8KEaGEtFHVHJLAbbJUe GHA4QS43LjzXC2o4AgnqQoMJIP3sukVBjGODc+r9wRIZSc7AKORm7RrSRUvKq0tfhJsq Jyw5X/6e5cGUPQHje6cM6dW4fNQD6SjmfPGCYHyIDiZ22HTu7gFTj6f+vFFHtnJvUZsf BnPkgOXz7e91n/Tb/vBE070z9GQEch6+4CcCGXdt7HTv40IZ/ZyvGS7eAtYfnTbQbc78 pqBBMx/xqGhs5TK5/01+8ADy4jnnktmuB6768O8mHhy0iMF+TZrd7lWEMucmoE44SpcP p3IQ== 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=rCjnRFQPvAGnNx5L3qglgkfLmLwG3nPN+a/hM9CacEs=; b=NAUMNnUxGDYYYS605vN3Qg25bfACnG80AnbnN1seNPcmqTX911RQSXj4bwYG4GWe+N xBiFqmn+xgbkg3zQJCP0irINlb4nJLVimClf/lu4l4aD/0d+nOp4NBHuLSfn8RjH2X9W b9Hp+mjD55tO4A0Y46DcDzfvOasIXKNS+qCvB/yL+5ZwcGfDPpss0mL9L9Vhb/c/x6nO SZvTmXyw8dmF+7Dp0tdzu98U9e7WqHsXfXj45VnH60a1H/Ka21TFoHDoZpQ5mTV3ScWK GwlM3mztpG5aABjEkO/bVRIRFyPROkZ96jIvi1eTVKurMtblM6+jZsawj1ANbgProTuZ /Ubg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b="GtnEi/Ks"; 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 p15-20020a056402074f00b004c3d955605fsi31622238edy.631.2023.03.27.16.35.19; Mon, 27 Mar 2023 16:35:43 -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="GtnEi/Ks"; 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 S230452AbjC0Xek (ORCPT + 99 others); Mon, 27 Mar 2023 19:34:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230339AbjC0Xeh (ORCPT ); Mon, 27 Mar 2023 19:34:37 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D63B270B for ; Mon, 27 Mar 2023 16:34:31 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id s8so7715058ois.2 for ; Mon, 27 Mar 2023 16:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1679960071; 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=rCjnRFQPvAGnNx5L3qglgkfLmLwG3nPN+a/hM9CacEs=; b=GtnEi/KsBIrFkxShd3lvYGNJ9gUrQ2buWtvBFztcLMpjZHYnpfC2btTyNI2wDsx8gP PDOwtTF/TcTUNyeDxR4+oqyXUYAWrwKZvEptBJqEajGlOvHQG/N2hgJNqoRivII1xx51 srSRUFm+TSmPWghIrj0BJh5li74VwsAaLfH1KqwWeaR6TO4B41nDX8EIySGgAXFLkN8F YdwEqm/wd8FQ3RikiVit9f33f8/yakAEXCIUHf2m4mD8ZPr83k/J/9pPD+iRpgpI1jss eOoS5rgPZHuaXhSaw/dfu9zrMhREgjPL3L5P57orkSVqAnny3ybOMPodpqyInQTfYtTE TpRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679960071; 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=rCjnRFQPvAGnNx5L3qglgkfLmLwG3nPN+a/hM9CacEs=; b=mMy5JZWptBBx8E+pPmQjB/t+S6RgCGzZYg3lXZz3Uu5YpLos5A+2RfjCXd38++S8WJ FLPgJndLBea7LNV8UJNBCajg/fYwlS9QcuV9NrADSfykZJwJ20iy/zWdPlJhpf7bRtOk a1s5O/6VHaPyK2SHcf546Ksrczsz6fEl/+/E2reVc7RY1pdnZ3j5iFpDsQLqqFl7PQia jip4YocKNnKwCnR+3zcCQbZdexZFaB258rPHX+jP14YgEADtnfUSCGoqTsgVn/32d1IZ Elvfpz+56Uyabkts6tbwwKnkZxm0Zzf57UIeh9dhOJ2M//geOjSGs9Xvz4+Raf9+8fvd l9Mw== X-Gm-Message-State: AO0yUKWs3PmMhJ4ulKIwQv78o6vJPJDudeePNcheE9+2LCkPGkTd3PGU Eudaqd0OIRb3okCNn+5AyvFdBg== X-Received: by 2002:a05:6808:2d3:b0:386:ca6d:b602 with SMTP id a19-20020a05680802d300b00386ca6db602mr3723586oid.41.1679960069565; Mon, 27 Mar 2023 16:34:29 -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.34.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:34:29 -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 02/12] drm/amd: Remove unused variable 'value0' Date: Mon, 27 Mar 2023 20:33:43 -0300 Message-Id: <20230327233353.64081-3-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/dcn10/dcn10_link_encoder.c: In function ‘dcn10_link_encoder_update_mst_stream_allocation_table’: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_link_encoder.c:1222:18: warning: variable ‘value0’ set but not used [-Wunused-but-set-variable] Get rid of it by removing the variable. Signed-off-by: Caio Novais --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c index c4287147b853..81aa1631945a 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c @@ -1219,7 +1219,6 @@ void dcn10_link_encoder_update_mst_stream_allocation_table( const struct link_mst_stream_allocation_table *table) { struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); - uint32_t value0 = 0; uint32_t value1 = 0; uint32_t value2 = 0; uint32_t slots = 0; @@ -1321,8 +1320,6 @@ void dcn10_link_encoder_update_mst_stream_allocation_table( do { udelay(10); - value0 = REG_READ(DP_MSE_SAT_UPDATE); - REG_GET(DP_MSE_SAT_UPDATE, DP_MSE_SAT_UPDATE, &value1); -- 2.40.0