Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp796537pxx; Tue, 27 Oct 2020 00:00:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCFESU/AOT00XBy6eVhwwbh7qCCG15zIAN9G4qH8HuMPvkAS+o5A4XIIzRc8GbzqEflPbF X-Received: by 2002:a17:906:9511:: with SMTP id u17mr967434ejx.194.1603782001901; Tue, 27 Oct 2020 00:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603782001; cv=none; d=google.com; s=arc-20160816; b=XivZGgwd9duGBK/KHjtgVjjps7bdZ+ADRmkOkvvgmgL3aKWfGcVMKzy2VrBu0VBquV pUJm/T+GrNfhM3QLsQ3P+K5Ws39eQDgHRh6jwDfhvqHn82onjt/R3y8P0JgptHRj+kPT kWoogwJgXkCsvKvtbq40VGyMTA9kA8psG1kztA7yKBZhze9KYvFoZ8hjxh7ufznzzWai Sy5HQ5nOU+852adehgRRrQ3V4w4WOue23AnGFO/S/aCIXPJTyyg3PV9ZuMHXoMhLECYi DCPjsVz/vQpujRfBU+BzUt33qutDeJTIbaE4dflj67woMRUVIoh9pockEo3mG7IPVknt CwLQ== 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 :dkim-signature; bh=Ju34jRqybGRgfTOStBCVcW3p8hpI6bnRi2lV2lqMxs4=; b=Ejq81iBjMuTAA4oQAgfcnd5K3/tVzxX4PHHBWOlhlgmc4AdVhaWOEZZLjoWoKr6JF8 lLT9lt/kz/6ypQkZSpvJjxOS4ss1wUkNE6LiHcyEIU/zlgEW/UtjES/CB7thsb/NXdxR /JfY6WYRdDqdH8FqpOJ5ppQ7mxIu8L4r+0vq5tT9grDJpmnOno+bZxWbgxAJ/jH2rqsS EtuUFOz6nFA6jQxrFRHaS8dnF+rxJo5alc/drCprr4ONIXD9w/qu3haHUjipFFUfI7MS 2WBjOZG2Ap69RaePeOzJB2ngZgrxh7CxxCtPR47bCHVWPceSVC5Jq0nNzcTki063r6PA Fo/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LhJGZKnx; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lg14si359663ejb.82.2020.10.26.23.59.39; Tue, 27 Oct 2020 00:00:01 -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=@kernel.org header.s=default header.b=LhJGZKnx; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729274AbgJZVB3 (ORCPT + 99 others); Mon, 26 Oct 2020 17:01:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:55826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729259AbgJZVB2 (ORCPT ); Mon, 26 Oct 2020 17:01:28 -0400 Received: from localhost.localdomain (unknown [192.30.34.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5E32620829; Mon, 26 Oct 2020 21:01:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603746087; bh=MIKQiQBZmnJNoIdqgw0/BlRmOZ5SjarctyzS0l2h4+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LhJGZKnxSeOcuD6ScbAADTnR9TLfI1UtJCyMiRiDdhHRuZuvsY3YrTaDxh6sGNlq/ GJNUazGYQ518GnLMyj7JxnE+sR70RBTEk+CHDZnfJAwrk6Kz51sc2k3Eqe9KndcdNq Br42FS+wMsgrnj3jVqhMnunD5FRtHzyJ9KYNpdAU= From: Arnd Bergmann To: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Anthony Koo , Krunoslav Kovac Cc: Arnd Bergmann , Denis Efremov , Aric Cyr , Josip Pavic , Nicholas Kazlauskas , Reza Amini , Lewis Huang , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] drm/amdgpu: fix build_coefficients() argument Date: Mon, 26 Oct 2020 22:00:32 +0100 Message-Id: <20201026210039.3884312-4-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201026210039.3884312-1-arnd@kernel.org> References: <20201026210039.3884312-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). 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