Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3575663rwl; Mon, 27 Mar 2023 16:37:13 -0700 (PDT) X-Google-Smtp-Source: AKy350ZcyilDdizITb6Q/gFvND7Xze/6ueVwC/a3tgCazl8BE8m91bFpyTbHToDaVkOaNPjGnkDo X-Received: by 2002:a17:906:b303:b0:8b1:7fa:6588 with SMTP id n3-20020a170906b30300b008b107fa6588mr12421635ejz.12.1679960232821; Mon, 27 Mar 2023 16:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679960232; cv=none; d=google.com; s=arc-20160816; b=iAKu73giOsgAnnMpML4trLyGToV1Nmroihf5Xb7bu5h3O76eo7UEWy9L+LF4QEOllV jEFlrneQusoIAl4cRLr+xbvcexqxxt4naye2MZ57RE22K37NpdJ8EAzGZSF6X75bn49x FdEqMcBlRDxJaZLISpfDX9KqQ15WcfST0hYeOgOizP/LFJ/hKg/Urq5DlW4cq5jMRym+ 3LKtSCtksxERregAfRUZdz0MlPJo33XuIJkz3e8YkBxcYsg6Tr+mPgqKGHudabQlLXFX RsSLPYvgKZKQj8qbGLxPYCcI5OM8Ys2CjCrpbZyLn2lL2AUiv+KkpOg43N3Psij2TjfL 5wbw== 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=K1xhDxA3uWDRifG4IvLBAoRIIiYm0r4QC9LLNbKp2X8=; b=M/sHNErgd2mZLbQrUbPYrV+bMuEtx8qB6cDo8yLqXy9OQU+wGsPiLcsFRAa74UJNYj vjzp8t2X9wm5V+zN7LdpFlIUxs9yGinK7JwlwUHAAGehUiohY507l61/o4mX1JNhpxSt n2dh5C64d2krv7M1sMFPUdb7G6lRCjWjmYQm1oBEw9x/HvrO8rz7aWYB7WxfVytKsZjn Tr82y3vg3jpkBoYbaZsxVzJbeebWoHdoE4Z8xHMhueZ0L+G2JynMGzRKkpnch8iTY8Fo rlf8U7911nwxy4WZiIkyUHgvDcQP8iXw9NpWsHXYhbbD18cZhnWzjry4BVzuwW/RfHsa 8G8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b=hvoaJX2u; 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 kx2-20020a170907774200b00931696e703fsi23889939ejc.436.2023.03.27.16.36.48; Mon, 27 Mar 2023 16:37:12 -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=hvoaJX2u; 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 S231934AbjC0XgU (ORCPT + 99 others); Mon, 27 Mar 2023 19:36:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231927AbjC0XgR (ORCPT ); Mon, 27 Mar 2023 19:36:17 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC7D030E0 for ; Mon, 27 Mar 2023 16:35:50 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id w133so7710456oib.1 for ; Mon, 27 Mar 2023 16:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; t=1679960150; 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=K1xhDxA3uWDRifG4IvLBAoRIIiYm0r4QC9LLNbKp2X8=; b=hvoaJX2ufI+udaK8mtxiLI21DzeH7JurXG/B43jOARKu83aSms5p/jUB7lwFs6omfL C3MvJEbwKrp4+zN7nS9bwwLJRstOf0GeeBnUjX0wuSPeyXQ2hqrkBQek1SQGMIiX+KCX /4ZPrhOgZvJ0MEOfcTm3nKfKoZUGeUiv8O33K6TquSH+CmZVXyqzo50twDCInP4i9q9l LtUwMM4WfNHC2cmc/CLIiaJJAaok/ssG3j/4jAMDz7SP/mcITFs8jlPilmDmUbIu1rpa S8HtZoIjJX3ZkBhEtr41i+hLJVS4ef1KC5FtF535WpCQQdngJk+XZwGB3Wp0bFrZvPsJ rcZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679960150; 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=K1xhDxA3uWDRifG4IvLBAoRIIiYm0r4QC9LLNbKp2X8=; b=sZaFtVDmiF1BUV78mBatW9UMhCjDQd9bO+EOTb/S9OmWxzqp+E4YfCig+8WoInXqMA 7J3DmjngKgzwWIFV0TTvWvqVOEcGQt0IpZLTIvMUX4V1uap/t/m9tC4E05lIYm4+NdXH s5zl2omyGVXPS8MuJcN2WgtwSOVuo18q//QI8NzOtLcaDNxnbMYejGLcvsP2+SgEP4mJ QQbbUbYzm1Vl7frYKGXH9ZpAlq1Emxu3Mfpyhv6PNlG3GgJXHu9CyZBSVIbUKWg+ke30 blZp/gANCHSKEG0nLryjjbPdC0MxQERAkCV5XFUegWcv7NlX9h+y/IhhiKVRlMTPS4ur +VGw== X-Gm-Message-State: AO0yUKWBykkt+1dkYHfdknSEjUunW4xzu2nnbOpPubN0lvpR8o4WU6nH Bond+lZP3rwuOI1X/8rhUIhGww== X-Received: by 2002:aca:6507:0:b0:387:3239:61fa with SMTP id m7-20020aca6507000000b00387323961famr5553985oim.30.1679960149872; Mon, 27 Mar 2023 16:35: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.35.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 16:35: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 10/12] drm/amd/display: Remove unused variable 'cursor_bpp' Date: Mon, 27 Mar 2023 20:33:51 -0300 Message-Id: <20230327233353.64081-11-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/dcn32/dcn32_resource_helpers.c: In function ‘dcn32_helper_calculate_mall_bytes_for_cursor’: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:62:18: warning: variable ‘cursor_bpp’ 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/dcn32/dcn32_resource_helpers.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c index 3a2d7bcc4b6d..a616cf078cf4 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c @@ -59,25 +59,21 @@ uint32_t dcn32_helper_calculate_mall_bytes_for_cursor( { struct hubp *hubp = pipe_ctx->plane_res.hubp; uint32_t cursor_size = hubp->curs_attr.pitch * hubp->curs_attr.height; - uint32_t cursor_bpp = 4; uint32_t cursor_mall_size_bytes = 0; switch (pipe_ctx->stream->cursor_attributes.color_format) { case CURSOR_MODE_MONO: cursor_size /= 2; - cursor_bpp = 4; break; case CURSOR_MODE_COLOR_1BIT_AND: case CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA: case CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA: cursor_size *= 4; - cursor_bpp = 4; break; case CURSOR_MODE_COLOR_64BIT_FP_PRE_MULTIPLIED: case CURSOR_MODE_COLOR_64BIT_FP_UN_PRE_MULTIPLIED: cursor_size *= 8; - cursor_bpp = 8; break; } -- 2.40.0