From patchwork Mon Jan 11 19:19:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 360575 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3141217jai; Mon, 11 Jan 2021 11:22:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjpTBnSVAoLneRwvhDLJSecEw5dgAODFv9cUdwLnno2tXKjfmQEGZA0pLKnU9aDQ+vQgpq X-Received: by 2002:aa7:9357:0:b029:1a5:43da:b90d with SMTP id 23-20020aa793570000b02901a543dab90dmr890923pfn.54.1610392831827; Mon, 11 Jan 2021 11:20:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392831; cv=none; d=google.com; s=arc-20160816; b=HWBggQqLgJsdOsY2GBRubqoWVfEc2Eer8nl1IpCM2d/R9I50YHOyfq0kl903OuNvos L9PhHY7upeFZsQw7eedLKEazR+aImzRIJe/ah1/owNcFaKhxarm7fU7tL7y2kbYbR2u5 Og6fM9WcziSI50SkmiOPophotC3iW1tUvHXbNdTbQ4zYsUeD64n2P+D2m8M6sLQIltTI 6TaLFxm4BjBUYh5JYYZUzcQcNCLrduYKL0/35T3GbVT2YSQBifAwwrBaZn3dN5pnJw7L qM+K08OctBRFpg3rQ65WGaTQAewZxPH1GX0oymJZHKKcKOUhxnDxaLMTt6Kxog0nibD9 Hw+w== 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=2ODwaBJkLjq4qVVawsH3wKOnrA8LA1nKdQe2JyIbUSw=; b=pBe75PkNhENaNZxOZmxNM3bpCiOkfk1gWbWtsNYwY6++2jKLPbfe8025JssiVHwGZg jBoVCmaPvCxmk9zdC0a3Ph06GRlw/HU7/VNdeLrWHSo4sRdPi9/VR/DPV49NHkmm4sO1 vV6G+xJEMjkzmmnNpNt+6q/4+QAaO7FGkXK9B19Vuns++g4MLa4EThDkXc1m6NsJQUuZ cm5S8SwqN+tlUV5On4k8U+bx7NRyxxQHdqWH4godNAl0GN2pvqdMVGc+wES3SS4IX6bi eQvliVU0ESxaSvg72lf/Te4kJOfYPRwM9ZzugmIE0kvTGOJZrfPFWUllbvgA5yYbOk4Q o2DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=C+nZExor; 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 v24si270980pjt.74.2021.01.11.11.20.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:31 -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=C+nZExor; 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 9134D89F75; Mon, 11 Jan 2021 19:20:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9D34A89E9E for ; Mon, 11 Jan 2021 19:20:09 +0000 (UTC) Received: by mail-wm1-x32c.google.com with SMTP id e25so309743wme.0 for ; Mon, 11 Jan 2021 11:20:09 -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=8eYMdRCMF+3FNGq6eZbp0x04185LsgzRCKOynhg9nzo=; b=C+nZExorvyjCiEDV7F+Ck6vDw8Cnx2nsYOugOkYMybb5uNKepwFSqnvU6qbAmnTJPv DvJ2FyeF/MEiL5r4Y3eR1ZXdMiH/jeQtGUYi/K3G0BoTe+L0wbl7K0ZATfuarAw8Zavw AYzcVIFeqIQ0w1bLMa9dKhp9/ZOkwRQzV/8q6/cKRFlZ3IS7U+JsKu/7OZ+zjsh4Xngd jh73bAowkgMX7o+MtPyjCdHxU9m2J1TCRID0AZT7Ork/eYb+snkm5p2rRRlC1sEGAnNV 4ZzOmxVLnHn0gmpuMWePbl90sT+IT9cD/0aCry95sdCjrH0pRuW/hLwxkVTGmq7U6ui+ ArUg== 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=8eYMdRCMF+3FNGq6eZbp0x04185LsgzRCKOynhg9nzo=; b=FXKPiSOi402hOrQ3iIxzAkfgYl2J2TPsSS92nngsmppna9PkTTtCaKstZy+5st89yZ ByuIeVI4U1ckCrme+nLhWOnB4ufKG1XqYopc9E+8EwUxdHUOZ0ddTmY6SDgf1TxrYZ2k lB+DRaGUL2+hm5SIHacryc7vorwBH79QFCIM0HBpJ0hyEPDmKZzJqF9qY9kXwNcj6quZ rKPfZDl15DCDBoqxtOpAMvhdbvUL3jMhRoj02X/+dZXA6sSIq8dVaHL+gaLWxOtymioF UnR2q5RX0KXTAZOebt4k3Po9ljCZbgaWJJRIL2v6A0zEJHMAsR/WC6w0IUi9lqQLq8yW EHKA== X-Gm-Message-State: AOAM531tJSUTDn8mnjbRveje5DyfPCZj9XMBaGr9zcOnJbQIZp48QlxD 6NWLcZ6sCIN9/q3ZzHPvhswQqg== X-Received: by 2002:a1c:61c3:: with SMTP id v186mr284286wmb.146.1610392808141; Mon, 11 Jan 2021 11:20:08 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:07 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 29/40] drm/amd/display/dc/dce112/dce112_resource: Make local functions and ones called by reference static Date: Mon, 11 Jan 2021 19:19:15 +0000 Message-Id: <20210111191926.3688443-30-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210111191926.3688443-1-lee.jones@linaro.org> References: <20210111191926.3688443-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 , Anthony Koo , 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/dce112/dce112_resource.c:620:22: warning: no previous prototype for ‘dce112_link_encoder_create’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:674:32: warning: no previous prototype for ‘dce112_opp_create’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:689:17: warning: no previous prototype for ‘dce112_aux_engine_create’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:727:20: warning: no previous prototype for ‘dce112_i2c_hw_create’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:742:22: warning: no previous prototype for ‘dce112_clock_source_create’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:766:6: warning: no previous prototype for ‘dce112_clock_source_destroy’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:1027:16: warning: no previous prototype for ‘dce112_validate_global’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:1205:29: warning: no previous prototype for ‘dce112_resource_cap’ [-Wmissing-prototypes] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Anthony Koo Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../drm/amd/display/dc/dce112/dce112_resource.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c b/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c index f99b1c0845908..c68e576a21990 100644 --- a/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c @@ -617,7 +617,7 @@ static const struct encoder_feature_support link_enc_feature = { .flags.bits.IS_TPS4_CAPABLE = true }; -struct link_encoder *dce112_link_encoder_create( +static struct link_encoder *dce112_link_encoder_create( const struct encoder_init_data *enc_init_data) { struct dce110_link_encoder *enc110 = @@ -671,7 +671,7 @@ static struct input_pixel_processor *dce112_ipp_create( return &ipp->base; } -struct output_pixel_processor *dce112_opp_create( +static struct output_pixel_processor *dce112_opp_create( struct dc_context *ctx, uint32_t inst) { @@ -686,7 +686,7 @@ struct output_pixel_processor *dce112_opp_create( return &opp->base; } -struct dce_aux *dce112_aux_engine_create( +static struct dce_aux *dce112_aux_engine_create( struct dc_context *ctx, uint32_t inst) { @@ -724,7 +724,7 @@ static const struct dce_i2c_mask i2c_masks = { I2C_COMMON_MASK_SH_LIST_DCE110(_MASK) }; -struct dce_i2c_hw *dce112_i2c_hw_create( +static struct dce_i2c_hw *dce112_i2c_hw_create( struct dc_context *ctx, uint32_t inst) { @@ -739,7 +739,7 @@ struct dce_i2c_hw *dce112_i2c_hw_create( return dce_i2c_hw; } -struct clock_source *dce112_clock_source_create( +static struct clock_source *dce112_clock_source_create( struct dc_context *ctx, struct dc_bios *bios, enum clock_source_id id, @@ -763,7 +763,7 @@ struct clock_source *dce112_clock_source_create( return NULL; } -void dce112_clock_source_destroy(struct clock_source **clk_src) +static void dce112_clock_source_destroy(struct clock_source **clk_src) { kfree(TO_DCE110_CLK_SRC(*clk_src)); *clk_src = NULL; @@ -1024,7 +1024,7 @@ enum dc_status dce112_add_stream_to_ctx( return result; } -enum dc_status dce112_validate_global( +static enum dc_status dce112_validate_global( struct dc *dc, struct dc_state *context) { @@ -1202,7 +1202,7 @@ static void bw_calcs_data_update_from_pplib(struct dc *dc) dm_pp_notify_wm_clock_changes(dc->ctx, &clk_ranges); } -const struct resource_caps *dce112_resource_cap( +static const struct resource_caps *dce112_resource_cap( struct hw_asic_id *asic_id) { if (ASIC_REV_IS_POLARIS11_M(asic_id->hw_internal_rev) ||