Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3574445rwl; Mon, 27 Mar 2023 16:35:59 -0700 (PDT) X-Google-Smtp-Source: AKy350bh4wrBPEjwRcnR7oTY+fnJkE9ozPv4on0gJeWWYr8D3AiWzJen5zG8C0Kp7SCoiwQK3s9Q X-Received: by 2002:aa7:ccc7:0:b0:4fc:709f:7ab0 with SMTP id y7-20020aa7ccc7000000b004fc709f7ab0mr14386439edt.0.1679960159666; Mon, 27 Mar 2023 16:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679960159; cv=none; d=google.com; s=arc-20160816; b=xE00ezu4JsyMF4roxdJUcMhbfUw5mdWu85eqF5pu3/7D+RRRHpmLLJYXYzVcvP/vqj knOzkOX8N5sOIvnxShmHAKSl4SB41N/MN9JhDE2s2SHLObibL9XheSiEnT7gTLGDTpEm gyliEdmftkwqQ8wEtQZyRgMex3EWfexHyHAvyRIj9cEv5/M+GAzOG1s8LNFvBQyNSKKD G8Twuc/1QsmDr7HOKnR9siRRkEFvZRABWv9vqzXdjz/dPM+vszyoEQ1qsF/QB3YLPHQc 6HPYPkFz0cUnfxTMwdS5gCG43hcn3hTdLjxHfGYA1tPxYTcHofnpfTf/EeSZQ3WBSPBd tKpg== 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=1IwF6Kj9QYhpJPxCrtGOCcjZaHDRHTEbDHEOQ0Q0o5c=; b=TfE8+nUzySvk4UbguXYgw0KlKlSZDY0XBqDNrNvknfE4d3pKrCkrcOWCiZYOOYN772 LOuBy8+d/0M42o0ugM+2Fpt6thDLKTUTtY5eaalpUGUUalQXfM3Ad/K2edhrxZzHj/uW 6Mc5CxGsZ+WHuVpDbmIXBp3YrJo2n2sTmNzsT+1fiZuXgXV04ktMZvylvHL1QMtyN1Eh fmha90EH5C5YRyrJ2H4mSjW8hSnFMok6JaZ1MzH4IstcZDnMYGD99mbJIb4XFY4FkjBI 1bllls8RNZmSVL8xLEb2xnjx2CK7BbSqrk1DmAPWJIxVdqaLlmks8Vx/W+EgQ0Qx/ukM WtmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=jfYnm0x5; 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 f7-20020a056402160700b005020d1700a6si14152454edv.8.2023.03.27.16.35.35; Mon, 27 Mar 2023 16:35:59 -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=jfYnm0x5; 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 S231375AbjC0Xex (ORCPT + 99 others); Mon, 27 Mar 2023 19:34:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbjC0Xet (ORCPT ); Mon, 27 Mar 2023 19:34:49 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B43E426B6 for ; Mon, 27 Mar 2023 16:34:41 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id y184so7697665oiy.8 for ; Mon, 27 Mar 2023 16:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1679960081; 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=1IwF6Kj9QYhpJPxCrtGOCcjZaHDRHTEbDHEOQ0Q0o5c=; b=jfYnm0x5boN6VyBUnMWPRzz97xGu/bVZkk8ot1nSNhbtqM525wpnumuPPxj2g6SBmt iqmmB2Tb3gG2gIqDlHDVBtcb5bLSyxASg2JlHy4W5rzyjFd0wER0kSIGXZ7mUjS5562+ 4imgqjAZwoauhGi0X9/tsjF17nKL8f44lyAP2Z9q8WVM+VVX4Mrf8rvcYLk8k6Yypltz 55syccSk7F6t6/C4ZpQlbrqQ+AQDGC3FjX9vijwQatYhvkvfGErtohIi3PnBdcogv/Fr i1LAISm1WjJdeH7GRdOWbnkEjnvTOG2OW2321C8y6x5FfqRTcO49qcGEIHuN8EzxTkpx KDtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679960081; 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=1IwF6Kj9QYhpJPxCrtGOCcjZaHDRHTEbDHEOQ0Q0o5c=; b=wmJFl4wS9l1lKxUjvAXohLo0EBFRBslE3ltooqYOAL8B0TbTKgmhMNWZen7T6SbIGA 1Ns8aLxfoUitgAAEw3QT2fQXThWjp+/LBzg+FBzrl92EnwWMHW/VHzIfLzhtL0Ulm2tf 1FVkgXAOeBPpKRtJEn3eQhG3QNzFwYrAz3fcOArD9TltNAIbSuQ9+PthXtmjzQkkNfSF a6sBKdwLw4mHijfQuxAsKjbhB142hE3Wp5uzG0hPrcJ2/+zZmRdGa91qMS1THIDesB55 +CLPZWYB++kKdno4W8NZj2X9nc2bEYTqcgMOafDRm/Zgsdhh9zpE6j0YRm+CEQHGGYbH +8lA== X-Gm-Message-State: AAQBX9e5WIiOPN45++EOVEMcNE03KnXh1bAqgV0EZtam6s2Pg9YNMHd3 Fum55vONnlXFVpHHARCmCMDrHA== X-Received: by 2002:aca:2b09:0:b0:389:4f27:9e0 with SMTP id i9-20020aca2b09000000b003894f2709e0mr676851oik.26.1679960079586; Mon, 27 Mar 2023 16:34:39 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:34:39 -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 03/12] drm/amd/display: Remove unused variable 'pixel_width' Date: Mon, 27 Mar 2023 20:33:44 -0300 Message-Id: <20230327233353.64081-4-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_dpp.c: In function ‘dpp201_get_optimal_number_of_taps’: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn201/dcn201_dpp.c:188:18: warning: variable ‘pixel_width’ 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_dpp.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_dpp.c b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_dpp.c index f50ab961bc17..f8ffc06593b2 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_dpp.c +++ b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_dpp.c @@ -185,12 +185,6 @@ static bool dpp201_get_optimal_number_of_taps( struct scaler_data *scl_data, const struct scaling_taps *in_taps) { - uint32_t pixel_width; - - if (scl_data->viewport.width > scl_data->recout.width) - pixel_width = scl_data->recout.width; - else - pixel_width = scl_data->viewport.width; if (scl_data->viewport.width != scl_data->h_active && scl_data->viewport.height != scl_data->v_active && -- 2.40.0