From patchwork Wed Oct 13 14:42:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 515724 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp6605306ime; Wed, 13 Oct 2021 07:42:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp22umpUwBhiwhEgZWAzCnRNxMY347bTV28zKlnJgbOjpdf77sRy/vHOWXWlU7RTk3R+I2 X-Received: by 2002:a17:90b:1e4f:: with SMTP id pi15mr13965095pjb.231.1634136161795; Wed, 13 Oct 2021 07:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634136161; cv=none; d=google.com; s=arc-20160816; b=Y6IsMkOvT9QmsPg8CEp2jPpLtEFZO1b8hnPunxNw9gXC6E64gw60pGiEs4MzhgKRc3 RFydxgD7BzhS5JThPhuCIGWujLnuk5exvf07tIn6z91mCJQbpz1KnTL/B28nRxpEKH3m EGuaN3y1s+U4hpmO1yWfdkVZRrhXBxDLdkDTlcGRCRuYQotPRQIH74gKk6I1ZMxJJhm8 WAqp77n6ettrarG/1RA05XpfgIFP/9ix4MUTmbqEx0JNQ354weaewGmlseSRTNtVr3aI ho+HL/W5VL7ncBR+jXA30mAgEv5hPNkf/vikJJSJHFfj24Nr++kpHkPuPol7rXCjdhLy 1Z0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :delivered-to; bh=Y9jPDaoHmU4k7NSfJIPBym6zZ0WgrcpE9YvDE7QCY3A=; b=yd4LAlQ1jyldmwTl759LV7KBIajZtaJhZydzAA40y2kvmnb/UHPb1DzW2fcVLr5Nl9 EgIcDATvs3pOv/lt0uRBfv1IvH2rCvYTwOdFkhcpU+HCXD+uoguettWPZPokDLeqhrfO SLs98jHe94LgbG5atdm73zW8mlIMM1y0ap3oPHy3M5l0D6T3GQBTUoQW2Ez0cYK9ln7F 4oTcpAXFRp+9F1Bdd6CcJzrBfZAk97oN0xq/KKxeHl7MIxBVYye2nPB8i8/0JfcX4CJe AYUEyh9Y2Vb/peKq2We2pHHR+AJZMeFPGhVrPM8Ev6s/hGeNp1wQduJx31tYCt+NSj2T Yinw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PppLkcWh; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id e189si19966307pgc.412.2021.10.13.07.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 07:42:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PppLkcWh; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7E2C86E0CE; Wed, 13 Oct 2021 14:42:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id BDD766EA02; Wed, 13 Oct 2021 14:42:39 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 563DD61165; Wed, 13 Oct 2021 14:42:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634136159; bh=qtuN71F2mOeUcWHCNSmjSBO9j7CrGEvPuhdVjbtcEXM=; h=From:To:Cc:Subject:Date:From; b=PppLkcWhmQMcUsDDMZNYA8XJrYgHKJLduHy/K88ME/Rl7/Oy6OzjH1AXPu8ZGw1rx U/K90vZksfK4Vr7V+9fO7RiAAIRIYIPBg/7OwnQdtoT/vv1r+u7CnY1zngjfUdmUoh LvJpTK6Ho9VhFrlRg8RlPQ6XUQzfnH62rEFbAemXw4Oao2Ai1Jlpj5qigFo/2/95Eq 7dIm4kCpSm4wSG/08bDTshWYW1H7En6dS/Yj0m7IlA/Phwlc/K5NtPnaGz/H2/97ku Il7tXcn4HoL6PpUHaxfVPp0bnviOI26xIfuNQf5Obak5VhxTZuYyFbFEm+W1W4TW6K e6JAOmADkm6Vg== From: Arnd Bergmann To: Harry Wentland , Leo Li , Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= , "Pan, Xinhui" Cc: Arnd Bergmann , David Airlie , Daniel Vetter , Krunoslav Kovac , Jaehyun Chung , Mikita Lipski , Aurabindo Pillai , Felipe , Felipe Clark , Derek Lai , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/display: fix apply_degamma_for_user_regamma() warning Date: Wed, 13 Oct 2021 16:42:07 +0200 Message-Id: <20211013144234.2224358-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann It appears that the wrong argument was removed in this call: drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c: In function 'apply_degamma_for_user_regamma': drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c:1694:36: error: implicit conversion from 'enum ' to 'enum dc_transfer_func_predefined' [-Werror=enum-conversion] 1694 | build_coefficients(&coeff, true); Fixes: 9b3d76527f6e ("drm/amd/display: Revert adding degamma coefficients") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/modules/color/color_gamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.29.2 diff --git a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c index 64a38f08f497..4cb6617059ae 100644 --- a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c +++ b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c @@ -1691,7 +1691,7 @@ static void apply_degamma_for_user_regamma(struct pwl_float_data_ex *rgb_regamma struct pwl_float_data_ex *rgb = rgb_regamma; const struct hw_x_point *coord_x = coordinates_x; - build_coefficients(&coeff, true); + build_coefficients(&coeff, TRANSFER_FUNCTION_SRGB); i = 0; while (i != hw_points_num + 1) {