Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3574661rwl; Mon, 27 Mar 2023 16:36:14 -0700 (PDT) X-Google-Smtp-Source: AKy350YTuvO5oEgW9/9xvAbZoleKfgulJWZ8GB2WT5TPB6zCpyOHCfEU4eo6hAcf0cH3OY9hvJkx X-Received: by 2002:aa7:ccc7:0:b0:4fc:709f:7ab0 with SMTP id y7-20020aa7ccc7000000b004fc709f7ab0mr14386976edt.0.1679960173912; Mon, 27 Mar 2023 16:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679960173; cv=none; d=google.com; s=arc-20160816; b=F8zr3qzIddjHS8ZTY52bPBwO+UyUC2HPxiaAUOJ3Yz7bk/qkUXp0bV6HHA+sXjKXbN 28K1VU7H/TZTFwEPZ/KoyNXHyofxHHLSizRlAjlNVXzJUVCGsFFgEcJe3LHFvFqIwC7z 8tomaMPDvLCdax5vCDhV9v7YCsuve3Vd/wRzAVx3wjsrslZtwHq2/BSSuXQvluTrT2o5 MLLkenymDSM1ybBG2WlXkvdFw2QCiGrfUzT3BNl7wpVmBjfDnMyWJVaEMVfKkbj54t/y 6epYNhEBL0nLvr0n6DEunyoc3R3m/S6CcyJuKWdb6Bwfg6VfAGgRWzObf5+eBhaykxxp PpYw== 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=8QsHyz7gKUkQwkVhf5pyg1KknFMPIvy4LcmMgDotpCM=; b=0THVYBD98pCxlCiyR1zfVmC02VvDhq8nGRTAhbF4t9akieNVWXz8Pgs4uzrnrvq5jI 44HbiNSxyIpU6Z2KrJ5NIw/yeaAEes9qTrPAH3p3OspKDdcFP1Yer0a5I5qj42i/MXQ7 8A/SCJU7RwlesZIjqv0WeKYJeZ2fh/aDcYtD1YLify8tTx8aCtULjafRagxwkgxY0uZh 4Wv79Dcad17crH0ETPcw3V12OkY/OyJjcVRRdQBAE4qd0zBvO0ctqPfIf/WX+j5i7Qy+ q/q7r63wicCz5w2RxVg3odpSOEDJCS6iiD2DtJX9iJ74bMcyFqYL5NIXLXyxbZN2tDry JDtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=sx01gaku; 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 p5-20020a056402074500b004acc42357cfsi28993734edy.364.2023.03.27.16.35.40; Mon, 27 Mar 2023 16:36:13 -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=sx01gaku; 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 S230432AbjC0XfC (ORCPT + 99 others); Mon, 27 Mar 2023 19:35:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230412AbjC0Xe7 (ORCPT ); Mon, 27 Mar 2023 19:34:59 -0400 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 662E32129 for ; Mon, 27 Mar 2023 16:34:50 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id bk5so7699177oib.6 for ; Mon, 27 Mar 2023 16:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1679960089; 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=8QsHyz7gKUkQwkVhf5pyg1KknFMPIvy4LcmMgDotpCM=; b=sx01gakuWa2Q5P6dcI4aIQRwIo9i+t9MKVEV2yp/xxLG+XXh5L4SKodd8Ib0rthkhM d229sHbxpl6ezpNSYIuE8NQG3fv4OcWLeqiVpughUBDCD6HoXLYQkjPeeOcHA6UVU8G5 /J+jdLdjufxFxv955wirCwSmbuLxHyCqXYk0my/ciyXJCElao7c90x1rIa/Yh0yTCp3W s7+bZXZt1V3nUO4Bba4bODojyT+ct9iMtEBxRi58GmbNQ7mDBbPk1ey70ybCkLX6rMhK 2vB49cK9mzSLuo9e7QPRVLEHJHwT0WQ6eKElBGY/NK8HFvBSQE8kDrnuupww2QfLMRTD Y6EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679960089; 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=8QsHyz7gKUkQwkVhf5pyg1KknFMPIvy4LcmMgDotpCM=; b=RQUmvm3GEGu3++24DvQmx4ppn1XueKY5l/ihMhjaQQLMmILnCqt7p4eKIeydWgSTUm a1HuP17DVkwwVJMAKIL1YCnfTOa+pT+Q/woXI8J/p8uuveWBj5BYdcy9VWij16mKw/kF pA3EJi8ii3vifbq3k/Q1mSALUucXIogCgMUcFJBBqfinuitSdA8Wm1GRU3aLdu5YPj9q LMbc3ueb248pfmksheVRLNvxhAtNY+3r3y7juPMBysiFcuURP7PKMqe0g9YBrQecYROa wmAzcl+s9zYGZfDxlk4l63LYJfBLTeb283RE6zFke3Aph68oXEgFxYhLmJr/jwrzbbTw NTfg== X-Gm-Message-State: AAQBX9fHcb6XmL717wJYq2UuYJuOd8T+1twq0uHA6OiD7XLEUGHv6n4M 6e6gIhI8GNPH07CB1O1Y40J0ww== X-Received: by 2002:aca:d0f:0:b0:389:f4a:93ec with SMTP id 15-20020aca0d0f000000b003890f4a93ecmr2974502oin.28.1679960089575; Mon, 27 Mar 2023 16:34:49 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:34:49 -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 04/12] drm/amd/display: Remove unused variable 'hubp' Date: Mon, 27 Mar 2023 20:33:45 -0300 Message-Id: <20230327233353.64081-5-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/dcn201/dcn201_hwseq.c: In function ‘dcn201_pipe_control_lock’: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_hwseq.c:544:22: warning: variable ‘hubp’ 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/dcn201/dcn201_hwseq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_hwseq.c index 61bcfa03c4e7..1aeb04fbd89d 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_hwseq.c @@ -541,8 +541,6 @@ void dcn201_pipe_control_lock( bool lock) { struct dce_hwseq *hws = dc->hwseq; - struct hubp *hubp = NULL; - hubp = dc->res_pool->hubps[pipe->pipe_idx]; /* use TG master update lock to lock everything on the TG * therefore only top pipe need to lock */ -- 2.40.0