From patchwork Wed Jan 13 08:07:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362040 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp296750jap; Wed, 13 Jan 2021 00:08:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwvO+IX82xpuule5p3rnBOW81Py6df/96QFBZ8/l4nmvRrvXANtYMzuJlYmnc1iSRkPrf7 X-Received: by 2002:a17:902:7592:b029:dc:3c87:1c63 with SMTP id j18-20020a1709027592b02900dc3c871c63mr952170pll.47.1610525296513; Wed, 13 Jan 2021 00:08:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525296; cv=none; d=google.com; s=arc-20160816; b=NC8gBMBIjJryfG5h+QZiaYXYpW+PTpv32x++T0tNV/m7fNBb+mtYLAeumlGEV4aRYk 0JTlcTeJEoKA8zSxKD1jr/fliJeV4wQLtwv8xQLGmx/lepyXjTW7eSaCyKNeyHTvw+Qc ON/JQfrl8PF/vopbFvXPLbDlGROu1+UkfxUVT2rDBy6L579+8AiO9bXn6UBrgTN0J/Ki FaZl55wARkZ/OMWM3xAxmXPtxdE6AGupFtmQLQIeompOwU4ADw0U7tI6mXK0ENbywEYo sQcF56UyivERZ+/ks0avUA7dfm6NQcOVffKtzD4eJvajQRSMBzgTEr+CmK2yyVWRCfZb ZJnQ== 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=dDYvHzCw3k1DpJmVsFj5E2p4Rpa0Oe0iwrhWCSK72VI=; b=cwM+U9+oJ00h7CqifSa9IYRm3cdnp/CIUf3PbxWcSOyILf4QxOf5uC7Yri0/Usu3b3 d6WFxjWdj8wOgFR+WQzktrKYirXWrwwaNLmHPCUHItss1uSd1dffipDV/abHrHycMvB1 gL/v6zrGfkAkew7sYklZM3dMQuj6ejVQYiUsfd/O07P9LN1RqEQRp27ikw2ZtejV2eJv uWGaDHi5uSuo2263mrLZwp2QKBMT+ZH0oeATdOLKVTxYKAD9L/sLrjInlRxewvpURXat L7jMEu5Muo8ZlhxkrclgYDLj1mICqPSkG72CyUJ0i92lTjCEQmWK4KzVJ0G/rIygGptq 8CJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Fo+5d2Qn; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 25si1593811pgq.439.2021.01.13.00.08.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Fo+5d2Qn; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 CCC8489F33; Wed, 13 Jan 2021 08:08:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id CE84289EA3 for ; Wed, 13 Jan 2021 08:08:04 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id d26so1043598wrb.12 for ; Wed, 13 Jan 2021 00:08:04 -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=ZrAn4+wDZmlfBR1rfJlysK73SQhLsoiqGo2tEfZCQmE=; b=Fo+5d2Qnx2ZvhIHxnePiJy2uCwG4UXEV5E/LYfLTG9faOdpCrAgX53+BN3qhjYq5Sl QoB3qT4vetWNija2BRSuV6oX/i34XcXmWM2HoW4GhBALPhJufGAJaSO/FnyqH4aEy/rF Z6vNyDetyvcM+d/27rEbP8ELQC/u9o83z332ZErtvVLwkO7g5/X7jAz8l7nXnswWLXqp kwG01D5PsS4Ynw043ZtAJPxL/7NC2Gx5c6xgx2g6EeBCi9g8xTmIRf2aXnyu7nVU58Ah r3v+to2Wgki43+IoH5+CD4s30vkAjvnZ/otXZ9piwHvfebS3bvaFp8JDos+MxPC4R7eD NROg== 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=ZrAn4+wDZmlfBR1rfJlysK73SQhLsoiqGo2tEfZCQmE=; b=Whg0SgC2jPhjCFL+E9yBdRe8JbalZaC5mCfq2+E+Z/aIlxMUmjYVuyzY4C5RmgSLIB +562+ITwGxXWHjebq9yh4iub7Ju7Xi2MU6whKl2g3wRxnm6A1aIZTqtTQdgFEKELO4Kj uMJhuX3ej0Kf8Atl1a65ybZ0PqRgkllFtzJSNqSU9Nd/XSN5+Wk23BcNYhTvpTDS+PAH LxdIP4MyEAKPaJ37/+InqeQqPwTrPd1gIc431NE0LiC6J5i4DRe4tj67U1gikDj7dDGi HmSsqrG9m6U1D61pkfvyFnek2hi1ikS1eR+kt3naKEdbD55UY9VqVUCrtPuO9wr90khF lTwg== X-Gm-Message-State: AOAM531nc5FGHC4eWpoSYoqIVvt7NAq4a92RvBkeApQvodfCaCMtcz96 dreTvhzeoXrO1FRCdUG7PtcuNA== X-Received: by 2002:a05:6000:1043:: with SMTP id c3mr1191861wrx.34.1610525283553; Wed, 13 Jan 2021 00:08:03 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id r20sm1642486wmh.15.2021.01.13.00.08.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:02 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 06/30] drm/amd/display/dc/core/dc_resource: Staticify local functions Date: Wed, 13 Jan 2021 08:07:28 +0000 Message-Id: <20210113080752.1003793-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113080752.1003793-1-lee.jones@linaro.org> References: <20210113080752.1003793-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 , 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/core/dc_resource.c:1120:5: warning: no previous prototype for ‘shift_border_left_to_dst’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1131:6: warning: no previous prototype for ‘restore_border_left_from_dst’ [-Wmissing-prototypes] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c index 07c22556480be..d423092c45dcd 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c @@ -1117,7 +1117,7 @@ static void calculate_inits_and_adj_vp(struct pipe_ctx *pipe_ctx) * We also need to make sure pipe_ctx->plane_res.scl_data.h_active uses the * original h_border_left value in its calculation. */ -int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx) +static int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx) { int store_h_border_left = pipe_ctx->stream->timing.h_border_left; @@ -1128,8 +1128,8 @@ int shift_border_left_to_dst(struct pipe_ctx *pipe_ctx) return store_h_border_left; } -void restore_border_left_from_dst(struct pipe_ctx *pipe_ctx, - int store_h_border_left) +static void restore_border_left_from_dst(struct pipe_ctx *pipe_ctx, + int store_h_border_left) { pipe_ctx->stream->dst.x -= store_h_border_left; pipe_ctx->stream->timing.h_border_left = store_h_border_left;