Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1662640rwb; Wed, 16 Nov 2022 23:21:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf70j+cTK42396tvcH77WXGPP9beC7evUdyNQikuAUN3hUZC/eIpxRUpyiGS+hPrnLO9KNJP X-Received: by 2002:a17:906:3542:b0:7ad:aedb:140b with SMTP id s2-20020a170906354200b007adaedb140bmr1098931eja.477.1668669661416; Wed, 16 Nov 2022 23:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668669661; cv=none; d=google.com; s=arc-20160816; b=fbmQ+LwvPwX46ELeods/2e/hVUSUeMwb4F+d6zw/mSbck9PQ+b1Pca18vQTnz0G89g LC3Yp3FgjEzjkfLnZ+CXElEp6Kbi71kgAwhSwGKeaY3H2asXe/d0WTZH4kxdjroihl5w dyMyN3G2XOENUn6558E+s+94jFy9eHnnvyvdoTN+1KlbmirUsvCDIUgleqSOGYAgxdjY AblGRFZM6Ro/n4tF7TAoZYjQ5YTGNmicRXjWy8NXqnfYHle4WoE4If3bIRcHY72klCJg Z486Rokr9n1SRtGaE1wdSHP4WcfIr3k07ZI4GOq2xF9rdCcjtgtv9hDRdteZUpwk9CNn JduQ== 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; bh=JfMPYS2IbF92bPG5Aq+rEh7QNe5A+5vOt0Pfu+TgJZE=; b=x9lvuP5jRsFd3IFhQo/LG6zUuZfkbB0lSrWWuOvRFucjY3AvVLJ0TV6eXm+84x1Atl ZZ5HCE3UAfcvIP6vYN4YnqNcPJEBV45Q89WgUhkIMQK2Paiw6hhACR/MmpRukAgVDHtJ oPXOkLu9R0kiL6zgtGhc2CDcaYyhPCpJH9QZ67V67hwR3eCzNRlSwZXVTWC0LpzlShV9 HHrOB2T1drrP2OB2T+kV5EnZhDUhlELZp/red8f3wOpoeoHCb/FNQhTlT9A8EiRrEXeJ qjgtBG9scoIy89eIXeQIVPNPj+9vqTG5naCbbFH2xQvP4UizoTX4h6E+GV87AeOU1d+c PNmA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go10-20020a1709070d8a00b007ae4ed41508si15856590ejc.738.2022.11.16.23.20.40; Wed, 16 Nov 2022 23:21:01 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234913AbiKQHHU (ORCPT + 91 others); Thu, 17 Nov 2022 02:07:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234658AbiKQHHR (ORCPT ); Thu, 17 Nov 2022 02:07:17 -0500 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 485F4657FD for ; Wed, 16 Nov 2022 23:07:16 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VV-tMJ4_1668668827; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VV-tMJ4_1668668827) by smtp.aliyun-inc.com; Thu, 17 Nov 2022 15:07:12 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 2/2] drm/amd/display: Remove set but unused variable cursor_bpp Date: Thu, 17 Nov 2022 15:06:55 +0800 Message-Id: <20221117070655.52749-2-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20221117070655.52749-1-jiapeng.chong@linux.alibaba.com> References: <20221117070655.52749-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham 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 Variable cursor_bpp is not effectively used in the function, so delete it. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_hwseq.c:217:10: warning: variable ‘cursor_bpp’ set but not used. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3120 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c index 763311ffb967..311be35de315 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c @@ -214,7 +214,6 @@ static uint32_t dcn32_calculate_cab_allocation(struct dc *dc, struct dc_state *c uint32_t lines_per_way = 0; uint8_t num_ways = 0; uint8_t bytes_per_pixel = 0; - uint8_t cursor_bpp = 0; uint16_t mblk_width = 0; uint16_t mblk_height = 0; uint16_t mall_alloc_width_blk_aligned = 0; @@ -288,19 +287,16 @@ static uint32_t dcn32_calculate_cab_allocation(struct dc *dc, struct dc_state *c switch (pipe->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.20.1.7.g153144c