Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp973859pxx; Thu, 29 Oct 2020 20:56:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5S03yPOqAcQ146G3103cYZnEmK6unRhMDdwFWqVn3FPBog4wA/hhGZgoBH9S/uDPiSf2G X-Received: by 2002:a17:906:388d:: with SMTP id q13mr571413ejd.92.1604030166198; Thu, 29 Oct 2020 20:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604030166; cv=none; d=google.com; s=arc-20160816; b=W6aYLmzMx2K32cdO53IR8ttPfPn9oijnNxii76QkmPvFSXfrTuj/cIWkSR0BQibYg4 xeu+ymE4uinG86LzZPhFn06VsQ5FAtICl4ZbuvZIn+kFLvBhUhz5SaBgpZJbdlKvRmIF RwJWzYOzdL/dKyfdooObJa5gVEYHEX0zzfhP1Vn8gqiOrDtnWr4FeEBXX/3Mv504m1t/ 8lfCefxCgF8rHUp1Ypa76zceB8PVaXRM0BEaHSQDmdtAZFcW0i6QkLfJv4EjzgsJDdKk 3kE+3Tuk4hjNitRSymePq0Te9DDCHGtLKZ8Tc1IX9S/oYp4pEfJhXPK4Mx87d2IABY19 wNLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2FD2h7D4v2HS4oDKnH1ozkl5z/Z0lmckPIvoRH81OaE=; b=EQPpFJlODMTNEQEhKH5vFNeVqyIIiI09VDqhAHSYKi44nrZL4g3sgxNTRo5Poot753 bUQDZQTkOwM/UGWjBy75shIZl/29I9bxdTWBnWwnH7iwrKIkut0ZGHgNtlp6QVImdcc/ tLqoANhlHU+lq1rzYsPbvu6mjGpzYBoomgjW/SgmkTW3Hu5ycBjVLBgQb12cXgK5OVsK dvcfujeFmIt9nps5tlZVLBCf6FNUAKfHiiRkwnOutzztR8B6tU2vHIWxzCpyM68eH8YH +Zgi0aQeR/MXpHovJUq5typQHSfP49htvOkJfHkFYuiOFKtnFl7nA/lKN0a56SaSvGrT Poyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lDwiUGqe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr15si511059ejb.250.2020.10.29.20.55.42; Thu, 29 Oct 2020 20:56:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=lDwiUGqe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726250AbgJ3Dx3 (ORCPT + 99 others); Thu, 29 Oct 2020 23:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbgJ3Dx2 (ORCPT ); Thu, 29 Oct 2020 23:53:28 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AC0DC0613CF for ; Thu, 29 Oct 2020 20:53:28 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id k18so1692554wmj.5 for ; Thu, 29 Oct 2020 20:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2FD2h7D4v2HS4oDKnH1ozkl5z/Z0lmckPIvoRH81OaE=; b=lDwiUGqe31YYTdcVzh2ub/9hCxgwWbd4hg6znAi74KYcScH0EqreAG4C1XmeV0kkpr 4BHK/9Z/rRbK5WVSko+DcPz1K3OA66BJL1FcM2WKFTJLpzyLYh4bMPZlt3zpL4AZ5ooQ O2qjHrGiWXyqLfyoxsNaWpXnF0OGpNTufvrdVm6r2UF6TuUQozh+/zKS8Xu7R5GmeC3d gMSFPgfX7Iuvsql+XtxR/7WZlqAuM/h+pTu5k7WTc0nJBQ+xZIbtjuxsv+H5T5vFP8ti RlGlPocWeEzuPBf3DvYMWXIMAi0XJe0lg1hKn0i+u04cDID55sfZMqnhL6k4/Ff3219L E2gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2FD2h7D4v2HS4oDKnH1ozkl5z/Z0lmckPIvoRH81OaE=; b=oNbf/0LKpIthKVvY2TFw3WTZhZ1Oc9dKK4G3TRf1LJMJRXaqTVpgKDM1TLh92g1MrY ncgIibbm/1yTwsdQaoFlTCRPvzeCgDfR5wxr9SXz0byz2qgf7WZE0mA98ayQcUHPPtVj EO184k51o7mL6oBC5OJk2vGp/4gl996Zbhsb7ONtE+IjDG9Bhtw5z98F+p/xAd0d2idi mfXrnWTdGbdJf8pZBvmxQVpqXRDxGE1j5tDI/wOQMco5KyfJVmHEJMcGDSU0HoWme2M0 qt8LrU1LVSNZU2ss05IMrpznHba/sASJf4FEV5qp/hNACTmcYhuqXPYDkvfKMnJhamwI ENMg== X-Gm-Message-State: AOAM532dJpUEnuRrjLiQ3yDkaqP9D8Upnehc/ZU4MQLPMNeJSlAsXjpx Vxq2koESWWRGh90VkApwpgh74sh4zcjSjcDUFI+cROII X-Received: by 2002:a05:600c:25a:: with SMTP id 26mr247532wmj.39.1604030007030; Thu, 29 Oct 2020 20:53:27 -0700 (PDT) MIME-Version: 1.0 References: <20201026210039.3884312-1-arnd@kernel.org> <20201026210039.3884312-4-arnd@kernel.org> In-Reply-To: <20201026210039.3884312-4-arnd@kernel.org> From: Alex Deucher Date: Thu, 29 Oct 2020 23:53:15 -0400 Message-ID: Subject: Re: [PATCH 4/5] drm/amdgpu: fix build_coefficients() argument To: Arnd Bergmann Cc: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , David Airlie , Daniel Vetter , Anthony Koo , Krunoslav Kovac , Lewis Huang , Aric Cyr , Arnd Bergmann , Maling list - DRI developers , LKML , Denis Efremov , Reza Amini , amd-gfx list , Josip Pavic , Nicholas Kazlauskas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 26, 2020 at 5:01 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > 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). This looks correct to me. Harry, Leo? Alex > > Fixes: 55a01d4023ce ("drm/amd/display: Add user_regamma to color module") > Signed-off-by: Arnd Bergmann > --- > drivers/gpu/drm/amd/display/modules/color/color_gamma.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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 b8695660b480..09bc2c249e1a 100644 > --- a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c > +++ b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c > @@ -1614,7 +1614,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) { > -- > 2.27.0 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx