From patchwork Fri Jan 8 20:14:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 359054 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp855955jai; Fri, 8 Jan 2021 12:15:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFqOsia2zhLEYwsbdCAhttLMze+4UXi8qJCXu2KvthBd3i4N7nYZZlbMN0KYJeJo0iorur X-Received: by 2002:aa7:87d2:0:b029:1a5:43da:b93c with SMTP id i18-20020aa787d20000b02901a543dab93cmr5214702pfo.6.1610136954582; Fri, 08 Jan 2021 12:15:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610136954; cv=none; d=google.com; s=arc-20160816; b=iIMJUnpZLhEG8ky2NiyccYAtaFR+fiNYxm+GzdQHRIKEmYlDzflD0b7gp+TpQhbzUc wdyBlFHXiruIaaOEwlH0pJeGVLBcyk/gWBn6c64futfNLq7Cb0zykWHDd4nDXJmsgJoY RJFfMC8NTFJu0b8yXrWQJ1uSkaXj8IyxjkmYVgvlXf0uJMUjImBK7mjLBLD4I4FbuC5B QFH0QKdE+/2NlwD4nMNcwoJGQZ/VlzKbmpSCHQvQG1GNY27+Xd+833M+4Tf0bXVF6W2V wihJh6XILG8ztWckZgB4sUKHGA9rxepT6wtgLSsrScxGN36UZIJUTlP/i0EO4F7lPkYS wwQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=PCXhkoEhv/wT+wBadDhpogW5sGiwDh00w4IwkRIUfaM=; b=AI0B1q1Uyi2ANru8GGY4pu+vHOZbJPHh9A7jymlDP964mdSpUQ4O14Hen9iIaBQrOo ROQnWglzQRKJhFj5gltLlPP9GiuSkN58FvBILodRK7jrqsIfXL+Uo5yGtkZSP5m4C6nP rEKyDx/WidHDoBzH5BtWoqGo5SKpOUSF150Gx1AAK4SKLnnKjM7peQVVg8MWO/lgP3ZL HGdQtqpVBE5FLgnfsxNNOEUREirel80UPsCVw5LeA1F7IvJwqQRLc0Gx0dK6kofhiWl6 QSqSN1evy103hDRfXb4V2ObudlqN+zkDpIUY7dX0xfhXc6JYBNE/I8Lpkjd/zmcx7BWQ iswA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=wbg5je7F; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id o37si9978268pgl.473.2021.01.08.12.15.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=wbg5je7F; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A5C186E8E6; Fri, 8 Jan 2021 20:15:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by gabe.freedesktop.org (Postfix) with ESMTPS id A85946E8DC for ; Fri, 8 Jan 2021 20:15:46 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id 190so8768143wmz.0 for ; Fri, 08 Jan 2021 12:15:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4ytR3fqWZwqVYBK3RsUcXcI3WQSuSAKiurJIlwb7LgU=; b=wbg5je7FZsTgpIt6O9urrAylcwuurXSWEq/h3em25fF38r83Wa9EOq3Db9eo7QsSk9 xwCRNYNRj/HLDKQWdrdE8TtwKeaffhNaIpi6nqRIGPVhppSmMflAaIIQH3Fn0I+ceMkh 4fYv2+yBgTyo1WcrjJkbhFjC/1l+GZEtkMHjeRldDTYSvdfqYUlJ+BZnw5geAXBmz9Kt Kw5FQ7yrlP4d6g5ycACgBF+bzlCUiu2T7klLeCQ/8q0Goa4cAXvZFBTeALZvDFP8+dTg K7nwLezl8va5JyslPwJjMB2o3u+zpgwll+AaOccnV+dIaNxAY/MUgouPKgWFlhRTYSbe GMqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4ytR3fqWZwqVYBK3RsUcXcI3WQSuSAKiurJIlwb7LgU=; b=YdEJekYmLDbO2jpNgVhV0g5jAOL+fFNdxFGtIinunZ8FNFky+Yy+91YJa36n2wV7tz 6SDlFZRAA+F/asy7rhrlXQ2h70YMYxB+AUZWB1SShSvgkXuayOn58sc+M+pjIKoYhxAA 4JywJiLqoA43GlatxRnGWywT16h9c/UJBjPvQUAdP6nB8VT3bPsbmQnJ9d1VT+JtCt4p 3u6tJ1J9vxHYuP6yNOtsOPXMYyMqyBlzRsN5hX8j0/1+YL+1SWADprsWOSR44y9JqYe+ 5LMPJ/HfuUJCZZmvhjKb4GkKuZyWkjiJJ5xdUfTFvmJj3Mn4qsFd9P0iAJlEwMGxuB7m 6jcA== X-Gm-Message-State: AOAM531IvjNgwDllrOIFORFBMvkyVTO/Y3K0XeMwmF/CD45z4l75mWHF myuq614J0V4Zaen1+TNjF/zNIg== X-Received: by 2002:a1c:234d:: with SMTP id j74mr4503783wmj.18.1610136945272; Fri, 08 Jan 2021 12:15:45 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:44 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 28/40] drm/amd/display/dc/dce/dce_transform: Remove 3 unused/legacy variables Date: Fri, 8 Jan 2021 20:14:45 +0000 Message-Id: <20210108201457.3078600-29-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108201457.3078600-1-lee.jones@linaro.org> References: <20210108201457.3078600-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li , Mauro Rossi , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c: In function ‘dce60_transform_set_scaler’: drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:496:7: warning: variable ‘filter_updated’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c: In function ‘dce60_transform_set_pixel_storage_depth’: drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:1040:19: warning: variable ‘expan_mode’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:1040:6: warning: variable ‘pixel_depth’ set but not used [-Wunused-but-set-variable] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Mauro Rossi Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/dce/dce_transform.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c index 130a0a0c83329..6121bb7b009b8 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c @@ -493,7 +493,6 @@ static void dce60_transform_set_scaler( { struct dce_transform *xfm_dce = TO_DCE_TRANSFORM(xfm); bool is_scaling_required; - bool filter_updated = false; const uint16_t *coeffs_v, *coeffs_h; /*Use whole line buffer memory always*/ @@ -558,7 +557,6 @@ static void dce60_transform_set_scaler( xfm_dce->filter_v = coeffs_v; xfm_dce->filter_h = coeffs_h; - filter_updated = true; } } @@ -1037,34 +1035,23 @@ static void dce60_transform_set_pixel_storage_depth( const struct bit_depth_reduction_params *bit_depth_params) { struct dce_transform *xfm_dce = TO_DCE_TRANSFORM(xfm); - int pixel_depth, expan_mode; enum dc_color_depth color_depth; switch (depth) { case LB_PIXEL_DEPTH_18BPP: color_depth = COLOR_DEPTH_666; - pixel_depth = 2; - expan_mode = 1; break; case LB_PIXEL_DEPTH_24BPP: color_depth = COLOR_DEPTH_888; - pixel_depth = 1; - expan_mode = 1; break; case LB_PIXEL_DEPTH_30BPP: color_depth = COLOR_DEPTH_101010; - pixel_depth = 0; - expan_mode = 1; break; case LB_PIXEL_DEPTH_36BPP: color_depth = COLOR_DEPTH_121212; - pixel_depth = 3; - expan_mode = 0; break; default: color_depth = COLOR_DEPTH_101010; - pixel_depth = 0; - expan_mode = 1; BREAK_TO_DEBUGGER(); break; }