Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3575222rwl; Mon, 27 Mar 2023 16:36:45 -0700 (PDT) X-Google-Smtp-Source: AKy350ajybmoZ7zR4CJs94tcFL/NBA346KECTRenhyhrkeXstXVf7MNGHXpOMbGrn+wEjpITAwmO X-Received: by 2002:a17:907:2059:b0:8af:2107:6ce5 with SMTP id pg25-20020a170907205900b008af21076ce5mr12095066ejb.35.1679960205686; Mon, 27 Mar 2023 16:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679960205; cv=none; d=google.com; s=arc-20160816; b=WdaBhGrLcVW/dwpWkwpoS6HMoMlve7y/ACaOcAj8iXumM4du/8Es6DUhjrI0/sFwaW 8buhz5ZqVyUMl0QHtH81VfGFlbeTitbgLkYwpPymQ5799lOFcXzNy3/Cz43XJh0AdHh6 r4LyTS6JRcQyllKD6ZGhCcVQxeahrxodo7ZozxH8GvGEQp/m1zhL+kqpyaUkhf7Tmszf 0CLTRkVyBHxZ9R/iNU4dNQRbyh5PS8AdLaGpe+YnSJPmw8qSg3At+dzMn8zLo9N8g0RK wRVZwZI7jEuLf/f0BdE8EjXSb4da7CTaTNpbgTQt/GGGaWcFyBduIE7TnH0H4WEDb3pf UjfQ== 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=DIwazwlkbXfr/mhs4ygPSCHkxMgXqhz2v9oIbK7e01k=; b=nK/DXYgJLAMD9BhI0fsn+0tdTleEX4YhR3SqDzqb4JaQNw3h1uKShFbi8R+u2Kv4vY v1lLmB8VJtOfp1MMMixQz4M20xMbASgayQ8vamFUOMk/Ti07O3/apgL+My+Md/9quo6u Odc+rvefQs40ZmfQL0sSv3MDT3wFyO2EHmjU/S5tXu1FTVs9eh48deEXMjq7WBGy8joU hNrC3b1l/T5jGzzFEhL5866DPh8Dntq3idArQA1DXOz8ecb8a+NxhK0ASE14OB0jKI80 quZtjZaThFt2S0wusJBZzH+Lz3jMw3EHaX8oLja2XMN6LzTY4iBvs108xzwE7D3xzzWJ NSAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=TTy7nMwv; 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 v17-20020aa7cd51000000b00501c10ec485si24732656edw.0.2023.03.27.16.36.21; Mon, 27 Mar 2023 16:36:45 -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=TTy7nMwv; 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 S231203AbjC0Xfq (ORCPT + 99 others); Mon, 27 Mar 2023 19:35:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbjC0Xfm (ORCPT ); Mon, 27 Mar 2023 19:35:42 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93E08273C for ; Mon, 27 Mar 2023 16:35:20 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id bj20so7706189oib.3 for ; Mon, 27 Mar 2023 16:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1679960120; 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=DIwazwlkbXfr/mhs4ygPSCHkxMgXqhz2v9oIbK7e01k=; b=TTy7nMwv8iMo9KYVcMt30TmODMyElVifkej9lEeLYbHgK0TUC3YmQlbcg+Xo46YJmz PYiDPL6xk4c/s7E6SmIBKoazamO9F5A6s5w8jMtY+oTyZhW3eEnO100xmx22j7SDJZtP 6VsCIUno/jksYrlZ4XP3qSFj9Rm6alVqr8qpzlU9CFbwS4sL9mfnoIPXpCJolwmgjbec FqTmiiFznHEg0Ddqp6e4A3sJMsba+tXsBaNtiwGKtPEAF0nk1OARrZNSGtGNt0fS4gbn 9S1YXKcidghXj5K610oyihoMZCyGAk9I/eY8AXEE+1iuCHHW2VWqcqvzcS54KAC10+rI MiEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679960120; 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=DIwazwlkbXfr/mhs4ygPSCHkxMgXqhz2v9oIbK7e01k=; b=orZZ0OayWUEOhGM76Z0Yyd9uBskekyHoNoHT8NwCU/szx5vMCeSY90cz/v8LFwsSIN 59ZMvRlspMWV21vB97dgoT7hwHocBWbROdaupGv/+F+dTIgnOucizV3XUPyRdIc68Fpq 2HLDnnRysP0vndeq05kGxFnID748860AOyMTPbmvja1Wepw2luweX9rSKwe+IanGcZRN yNDZ6u9py/wndRnCoIHgeDkB/4nZDvxK74AQPKZQpe5L2fJAv+Rn2V4N1R0DWE6Lhd4N ggxfKw3Ivzh7mDUwY+YEbrHTEOySImoMc7y3Uve86N2DjeV2kJCxCltzScMFgRonihIZ tuTg== X-Gm-Message-State: AAQBX9fAzC1JZGeW6807sqXGEv2abTivljFnpRvbRf6S/hW5wwjm2ebD GOh7U8fpVULqDDD3VIS1EDdnhA== X-Received: by 2002:a05:6808:21a0:b0:388:edc5:3373 with SMTP id be32-20020a05680821a000b00388edc53373mr5891957oib.14.1679960119763; Mon, 27 Mar 2023 16:35:19 -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.35.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:35:19 -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 07/12] drm/amd/display: Remove unused variable 'optc' Date: Mon, 27 Mar 2023 20:33:48 -0300 Message-Id: <20230327233353.64081-8-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/dcn30/dcn30_hwseq.c: In function ‘dcn30_enable_writeback’: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c:326:34: warning: variable ‘optc’ 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/dcn30/dcn30_hwseq.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c index 3b4d4d68359b..6ef85e71380c 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c @@ -323,13 +323,10 @@ void dcn30_enable_writeback( { struct dwbc *dwb; struct mcif_wb *mcif_wb; - struct timing_generator *optc; dwb = dc->res_pool->dwbc[wb_info->dwb_pipe_inst]; mcif_wb = dc->res_pool->mcif_wb[wb_info->dwb_pipe_inst]; - /* set the OPTC source mux */ - optc = dc->res_pool->timing_generators[dwb->otg_inst]; DC_LOG_DWB("%s dwb_pipe_inst = %d, mpcc_inst = %d",\ __func__, wb_info->dwb_pipe_inst,\ wb_info->mpcc_inst); -- 2.40.0