From patchwork Fri Jan 8 20:14:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 359056 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp855985jai; Fri, 8 Jan 2021 12:15:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxoPKQP1qWUO1Mo/WAOhxzDfqBdAkU6fQOXaobyiycPk6oc1b4hM/0eArUqVl/JSsGGsmu X-Received: by 2002:a17:90a:b110:: with SMTP id z16mr5348487pjq.167.1610136957606; Fri, 08 Jan 2021 12:15:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610136957; cv=none; d=google.com; s=arc-20160816; b=HDFIGj231AS58vV+N07YrQZh6wjtTbCTH3e2raJ+4yHTa6gRLbfFsY6Sq/DEtrJtMS LjgKVKsQH6I+SGkFk3fkeMTS4nvC6omcWj9u0z21HKZDZCtKislkydqddeagqPKgjd6R G4+HulO2ThGGqAFxW8sY6nV8ADv/PHCf2oybvdwyBYf1c+EEuVbNem5F14NlMjlbZwM9 XIxXk+u3y1V6A+oYNQ8paKMxFeEhqL3vwoVNgovDGz1z816C5aceUmby4w40tP7pwB2o cUiz7g6e8CPk27rSCxYYRFVOXRjcgsTi+IBqrVrtFVHM2aSm1kCEBQAzToyhFArFD8vX Dv+A== 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=lVOxdDOEIrJ9Z7ZbDJ+S/3SaWd0+5dZLY5jpvSrCSvs=; b=UEIi0/XSDtUAs++kz9JhrCVq1zFj1ml4e10opCx08AvCHqePlkbliWlNeD7HaOUIL2 2sgkAJsS1g+MbrEq1BONugVdNlTQ1EjBxzKULZappROkDDCNuMQxTFODp6OJooDRHy8R Hba4zbwgc+XXPpfKfuA0KrqMPCVllSDDV1Kdz+Tt5NeBUsS34hPKhqmZrJJoBamG56zt UER3zsURZ3arhgnjDWeZPc/PZAx1U2NB3NAlV0zL/u0vDpKOw9Fu1/vK5GVdBFJe/B4f Qz7w4FVYgP+bjDbO5aModRPDnORHI2SCpy/+IHH4glatmUMa6fwLLHF0SkAPo+u1Og40 Yshw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="o3+1v//I"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id t11si9875467plr.343.2021.01.08.12.15.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:57 -0800 (PST) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="o3+1v//I"; 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=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 857646E8C5; Fri, 8 Jan 2021 20:15:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by gabe.freedesktop.org (Postfix) with ESMTPS id 844A66E8E2 for ; Fri, 8 Jan 2021 20:15:50 +0000 (UTC) Received: by mail-wm1-x330.google.com with SMTP id 3so9431613wmg.4 for ; Fri, 08 Jan 2021 12:15:50 -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=zW3ufI7pY7JKZ5jgf9PFOiorHzk8Ikn536vctwi0D0o=; b=o3+1v//IuiO8OWf1LsRbjZv/Xs6WgdkPiA0liTKkThpPTBjfWe46BeDVSY32inCCQr ipNhPObHC4cpO9eg3wFEcYD4IkaSKkd0DwOj2e1mllIpDfTF4f7hUlU29AANQ9RJDYe/ hxT5H7cx6tbtdM72Oq51SIdiuL8P4vQ6OEU300+iwQEHxGWipdoNLvPXoVAK4XGdJDnS pUikoZhdHW1KTDHclPBwb2FLIinrwM07ZMcGAQtC5eDawXjDNoNrXLXOhRntsxiIwhe+ jMbiszhFMrXF/EBDYGL9bFTO1UnUxx+55azoVqpmoyaoxaemhPWP9X4DG/JkoQoDwO43 BZSw== 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=zW3ufI7pY7JKZ5jgf9PFOiorHzk8Ikn536vctwi0D0o=; b=YAnrrgq5OWDkbwm8NIu4vzJl8ytARQj5RyTEmYtvThrO3+8P0rO9dLYflDH9QOHKAL onYWdljwWwzl9wujNb4YMRdFfImVh8eAi1YMMIJ5TudXj1oeztUmFaGNbrpiquCagXd9 j9GENKku3PSd+J18o+qRCR/t+wgherfF79qiWaPBPQcgxTSSQYfZB3VTVQtZflvR48C3 7RRLjzW4qYvzb4wffGjl76S9HPJUWKYxExX9DE66DV7IJGlekIq0lyHDdiPwIGb4IqaZ ma+14ssUg1oOtqj4KKinGfXzmoY3YN/ZQ7ozXf8QN3rmulLuhaKNsIREysP0pc+Kdjjv VMiw== X-Gm-Message-State: AOAM5320FKtKuzgpwmqidPrxtCKKuqTD8y4+ho8RnNFvNjIFX4ROrBoL gVk/ueisGy45OwGhqhYtxNgfLw== X-Received: by 2002:a1c:f604:: with SMTP id w4mr4580747wmc.39.1610136949189; Fri, 08 Jan 2021 12:15:49 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:48 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 31/40] drm/amd/display/dc/dce/dce_opp: Make local functions and ones invoked by reference static Date: Fri, 8 Jan 2021 20:14:48 +0000 Message-Id: <20210108201457.3078600-32-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_opp.c:427:6: warning: no previous prototype for ‘dce60_opp_set_clamping’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:548:6: warning: no previous prototype for ‘dce60_opp_program_bit_depth_reduction’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:571:6: warning: no previous prototype for ‘dce60_opp_program_clamping_and_pixel_encoding’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:681:6: warning: no previous prototype for ‘dce60_opp_program_fmt’ [-Wmissing-prototypes] 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_opp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c b/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c index e459ae65aaf76..2bf8f5a2e0c22 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c @@ -424,7 +424,7 @@ void dce110_opp_set_clamping( * 7 for programable * 2) Enable clamp if Limited range requested */ -void dce60_opp_set_clamping( +static void dce60_opp_set_clamping( struct dce110_opp *opp110, const struct clamping_and_pixel_encoding_params *params) { @@ -545,7 +545,7 @@ void dce110_opp_program_bit_depth_reduction( } #if defined(CONFIG_DRM_AMD_DC_SI) -void dce60_opp_program_bit_depth_reduction( +static void dce60_opp_program_bit_depth_reduction( struct output_pixel_processor *opp, const struct bit_depth_reduction_params *params) { @@ -568,7 +568,7 @@ void dce110_opp_program_clamping_and_pixel_encoding( } #if defined(CONFIG_DRM_AMD_DC_SI) -void dce60_opp_program_clamping_and_pixel_encoding( +static void dce60_opp_program_clamping_and_pixel_encoding( struct output_pixel_processor *opp, const struct clamping_and_pixel_encoding_params *params) { @@ -678,7 +678,7 @@ void dce110_opp_program_fmt( } #if defined(CONFIG_DRM_AMD_DC_SI) -void dce60_opp_program_fmt( +static void dce60_opp_program_fmt( struct output_pixel_processor *opp, struct bit_depth_reduction_params *fmt_bit_depth, struct clamping_and_pixel_encoding_params *clamping)