From patchwork Mon Jan 11 19:19:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 360570 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3141065jai; Mon, 11 Jan 2021 11:22:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLWqAEE/22GB0mF7G/Rs8alWAbbdDjTKUjTvOd4W4uG6Dahlo7n7GXDEuqf1orGdgRkLhW X-Received: by 2002:a17:90a:f00f:: with SMTP id bt15mr339596pjb.209.1610392837041; Mon, 11 Jan 2021 11:20:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392837; cv=none; d=google.com; s=arc-20160816; b=mKDTnm83TFUNQXq/IP3i1WIfbUUv/kfgTELEFN+mRMqf/ncZApyYpVVw7vDpnsIsy/ lEtT9bRrzAN3KXfw4VQ3TjCdU3P50UEFSvc9272Iyqw5SxFFr+BZYdq+61xhXPp8jzrW mBi1V/GcaROblWUzzU3d8PA7xVQ1KqemE6sK1KNFitJPPZTLCblzrSEQk9ZJal7j1drO BRkywSD7oLtQfHG6A0QBLZ/U1eEUYzi0gU8n6fb7LNYWsz0Gzm/g0Np61X6xpv1XAPoy BJwb1XryZDJUYPx3NvMSiS2iLMDK3RvoT3E/dygifVWg7FmAymSKeVBaKU/7Xrzqyh6l jkxA== 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=LEAsi58vqhP5zmVb8Kw58FBcqByr5sJPiqnpvwcay0A=; b=p2Hs4ut9PkVLmIfrEGyNiDyJuNzrtaQShWjZzsiJcw79vUgSuE6qjzpR8/KLK3G/k3 zl77EJG2q7JFSe86B4d7KZfoY8ueziJHfr3ilLde8WEXCzC94A1LCLZgvWdql2ftbRhB c3J3Rbt9EDHB0ecL3xijphcPiEpQI9qO9Lz5g9ijd46zo2PazAt6x/IbJYUvKAPTPTKm 7qQhQPl2SwcnX6VNbO2G+eLroGwYZ85aZUvb05ZSEsykHsoJV/7M9IiVcHgCb5mta+gC 4IOMCK4nEArilr2b1+Dq852JXEo1GmKamQC8WRldbiwQOx3JP6YY2E61nb5mVA4o2XOx PXzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="mv3K2/TJ"; 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 m6si424819pgg.237.2021.01.11.11.20.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:37 -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="mv3K2/TJ"; 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 3A2FF89FAC; Mon, 11 Jan 2021 19:20:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2665C89FAC for ; Mon, 11 Jan 2021 19:20:21 +0000 (UTC) Received: by mail-wr1-x42c.google.com with SMTP id t30so974419wrb.0 for ; Mon, 11 Jan 2021 11:20:21 -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=A9NZM9JfmH/69BBG6xFGdeZ0kAvlEjIVBJUiVqT8fRA=; b=mv3K2/TJiylT6ujFE4500vFgjQr5CLx5qm684HMvkPqQ6kcKChxRdcX/N2vCGNHRKd aNxxn2ZC+VZoQkkHH/aNthsbVwqGvGIoV3YSua1ScuKp1iXJ7gOyFmOT4VCCx/RS/HGK O+Y5n+A9P91xFrKl/WGaMiIBusn7qONgANPVdQZsvJW/GKL7OTKsIx9k6eDmtJxAQtcY qFKykvCmHIF2ceG3s//XPyyJFbagLA2uqaQ7Gcpdfv9a17WZg7pOHC4K5napVvCt+gUR lOXz2V9K0irpznW/nCLGh61foRzcsP8cjqhzo15xEIVxCZpu8G7mG63gjg5KRChy+olB DMtA== 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=A9NZM9JfmH/69BBG6xFGdeZ0kAvlEjIVBJUiVqT8fRA=; b=KzLVeZ0tbQWp6zZwxdNdeOHliXmq1rPjhiKID9CqT7ZJcxS7MoFCI0tiDpYevDn4qI X4ECOtUIrXryrWYbDALu11qPBjvASR0Ii+hHmS51ytn/U1EaJI7anbDgQ1iIYHNY6Nto mBdJZzmv2HDz1attwrSeV6pTj4eQNjVbWRPfuwojVb1RWXiQiPkrO3txsvLZoMB6rR7d GSM/qJF2xpK9AJJ1Zpj5BvfFoRW+51M+4oSDxVWAIyMJKZa+6fjT0ME+pCi4cqDLFzah 2tFPnvMroE5wP2Hhz8209sbxpOWZaVtde97v0YUZXm4vxS8BZdoto/BJpYrMP1VPuy66 k5aQ== X-Gm-Message-State: AOAM5312JSkoXxeyrzh/f/CJX3xkBPI40tjtXJ8cLzfDCWGc+EYO/v9I Ixvg4B9keRCAw7o9lfti+xDQdw== X-Received: by 2002:adf:f60b:: with SMTP id t11mr570904wrp.401.1610392819806; Mon, 11 Jan 2021 11:20:19 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.20.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:19 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 38/40] drm/amd/display/dc/dce80/dce80_resource: Make local functions static Date: Mon, 11 Jan 2021 19:19:24 +0000 Message-Id: <20210111191926.3688443-39-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/dce80/dce80_resource.c:527:17: warning: no previous prototype for ‘dce80_aux_engine_create’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_resource.c:565:20: warning: no previous prototype for ‘dce80_i2c_hw_create’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_resource.c:581:20: warning: no previous prototype for ‘dce80_i2c_sw_create’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_resource.c:715:22: warning: no previous prototype for ‘dce80_link_encoder_create’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_resource.c:754:22: warning: no previous prototype for ‘dce80_clock_source_create’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_resource.c:778:6: warning: no previous prototype for ‘dce80_clock_source_destroy’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_resource.c:868:6: warning: no previous prototype for ‘dce80_validate_bandwidth’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_resource.c:913:16: warning: no previous prototype for ‘dce80_validate_global’ [-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/dce80/dce80_resource.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c b/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c index 26fe25caa2813..fe5d716084363 100644 --- a/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c @@ -524,7 +524,7 @@ static struct output_pixel_processor *dce80_opp_create( return &opp->base; } -struct dce_aux *dce80_aux_engine_create( +static struct dce_aux *dce80_aux_engine_create( struct dc_context *ctx, uint32_t inst) { @@ -562,7 +562,7 @@ static const struct dce_i2c_mask i2c_masks = { I2C_COMMON_MASK_SH_LIST_DCE_COMMON_BASE(_MASK) }; -struct dce_i2c_hw *dce80_i2c_hw_create( +static struct dce_i2c_hw *dce80_i2c_hw_create( struct dc_context *ctx, uint32_t inst) { @@ -578,7 +578,7 @@ struct dce_i2c_hw *dce80_i2c_hw_create( return dce_i2c_hw; } -struct dce_i2c_sw *dce80_i2c_sw_create( +static struct dce_i2c_sw *dce80_i2c_sw_create( struct dc_context *ctx) { struct dce_i2c_sw *dce_i2c_sw = @@ -712,7 +712,7 @@ static const struct encoder_feature_support link_enc_feature = { .flags.bits.IS_TPS3_CAPABLE = true }; -struct link_encoder *dce80_link_encoder_create( +static struct link_encoder *dce80_link_encoder_create( const struct encoder_init_data *enc_init_data) { struct dce110_link_encoder *enc110 = @@ -751,7 +751,7 @@ static struct panel_cntl *dce80_panel_cntl_create(const struct panel_cntl_init_d return &panel_cntl->base; } -struct clock_source *dce80_clock_source_create( +static struct clock_source *dce80_clock_source_create( struct dc_context *ctx, struct dc_bios *bios, enum clock_source_id id, @@ -775,7 +775,7 @@ struct clock_source *dce80_clock_source_create( return NULL; } -void dce80_clock_source_destroy(struct clock_source **clk_src) +static void dce80_clock_source_destroy(struct clock_source **clk_src) { kfree(TO_DCE110_CLK_SRC(*clk_src)); *clk_src = NULL; @@ -865,7 +865,7 @@ static void dce80_resource_destruct(struct dce110_resource_pool *pool) } } -bool dce80_validate_bandwidth( +static bool dce80_validate_bandwidth( struct dc *dc, struct dc_state *context, bool fast_validate) @@ -910,7 +910,7 @@ static bool dce80_validate_surface_sets( return true; } -enum dc_status dce80_validate_global( +static enum dc_status dce80_validate_global( struct dc *dc, struct dc_state *context) {