From patchwork Mon Dec 28 12:45:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 352732 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp9846417jai; Mon, 28 Dec 2020 07:53:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQyO5CgPxslDuM2sAHLSOt6fd8P9F/6gK5wMNwPFDnewsOf+uIM7JxumI80ieZRXhr9sKI X-Received: by 2002:a05:6402:1803:: with SMTP id g3mr43380278edy.10.1609170828981; Mon, 28 Dec 2020 07:53:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609170828; cv=none; d=google.com; s=arc-20160816; b=VsgfsnzKEF5XZJ2PH9VDjGQrFC3hH+56SdVQr6dAc9SXLpm31t8k+bwOPPkCeYNDW5 obhw/n1vhphaT5m3suNC+j+BcYo9CW1Il45T0iTJeS0m5EW0Jh6jNpxY96J6MyxoN98i fZg6o+geMvYxK5sOsA5DD0uithEIbQdaL+Up0oh3BB+iXrg+PVGHLWV8F/H35UWJF5VM H7enIF/FxuccyG1dpE6YeQR3WbTt3161nyiXwLb1yXRGGQcM3lX+bj/N5IBl53Q3ZO2t 035UPzuu9nL/rjGANPST8P7R5rb9RCgkrBiCo+mkGw1q8Q5sIjkqjgNcq3KDDapx6rfD uJNA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Eu9CfFtSBxbwWxHsI0bmpseXwQCPVvDMIi0I75E0Mh0=; b=ldK7Kyo22+OqbjuAhJlc2STdoFXuegxiYIaP6JaRcxQnGEP5r/UjUkHI6JzYh3Oxfx uLJCjzSgfEEjzmvndRTRnvEh2qhj0pUkxix6VbRzreyREz0/5kjMWlHj1HBkXpqciybk N/+FmWchUJcPYDJIRKlSJ3/JQoQCpI1jc9+K7TpCf2FGuWdPmhQpjkQed6vPV2ISnaC3 zuTWrI2qOEXge9SflDMSjiBCd7UlTnpoUiEpQEfwHqIxZ7rDtRDudAa7E2oMGuJgIHHg 6aCmvIBxwJ3GOTJoRgb9WXP6pOC7Lw1b+OyYxMaS7laJ7XZ09Mi9RBUK7eeRH9jghvdr TerA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ygLJUaxR; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 7si19461835edw.324.2020.12.28.07.53.48; Mon, 28 Dec 2020 07:53:48 -0800 (PST) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ygLJUaxR; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404172AbgL1NmX (ORCPT + 14 others); Mon, 28 Dec 2020 08:42:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:42692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404165AbgL1NmX (ORCPT ); Mon, 28 Dec 2020 08:42:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8E7A82064B; Mon, 28 Dec 2020 13:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609162902; bh=9TQ4wAfsTVm3x0u1dNI8FaIpIokiiOq6tpPP4Ai0wx4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ygLJUaxRwD2e8gCDe0LAIoQSRZKFmPAoVJcG0+QSd1eD5n2s9K2o8bg1/Kw/3Br/K 5+tgceRzFwQ9wEziRwovVMpOUrW2alLBsnAWfefR/RWoThcTy+7+B4HTNN+xTe1wMa X44AeWj/drKWTVlu1FyTCs0wvmPpa4VLgrlsDM8c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Harry Wentland , Arnd Bergmann , Alex Deucher , Sasha Levin Subject: [PATCH 5.4 099/453] drm/amdgpu: fix build_coefficients() argument Date: Mon, 28 Dec 2020 13:45:35 +0100 Message-Id: <20201228124941.984955049@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124937.240114599@linuxfoundation.org> References: <20201228124937.240114599@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit dbb60031dd0c2b85f10ce4c12ae604c28d3aaca4 ] gcc -Wextra warns about a function taking an enum argument being called with a bool: 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:1617:29: warning: implicit conversion from 'enum ' to 'enum dc_transfer_func_predefined' [-Wenum-conversion] 1617 | build_coefficients(&coeff, true); It appears that a patch was added using the old calling conventions after the type was changed, and the value should actually be 0 (TRANSFER_FUNCTION_SRGB) here instead of 1 (true). Fixes: 55a01d4023ce ("drm/amd/display: Add user_regamma to color module") Reviewed-by: Harry Wentland Signed-off-by: Arnd Bergmann Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/modules/color/color_gamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 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 51d07a4561ce9..e042d8ce05b4a 100644 --- a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c +++ b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c @@ -1576,7 +1576,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) {