Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp174257pxb; Wed, 13 Jan 2021 00:13:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhezBOX7hhqczDy6Fnql2gmezU1B0mHVgbvdeX3aTlyXjAhwdOD0duwdTndzDkhtCmlmUZ X-Received: by 2002:a17:906:5912:: with SMTP id h18mr689903ejq.261.1610525615820; Wed, 13 Jan 2021 00:13:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525615; cv=none; d=google.com; s=arc-20160816; b=JghE5X1yzrGqefMhP4XZzxslT2hv9IBlMfjFVUd9OhXNf8YZp17mdLlvVvIFYldky5 eixiOomJoyyxJK17k83wiUO1GJD1hpxxmBsfHcdJwsjuI0Yn5aDVMso3MtROJJFqr4KV E/gnR1CpYV5FIlkV3PgCXzBDlt7H3ArilvvXs+AmiXnCo4eQEr5gi+TQC2p0ViOmLL3g L8bLEoL6dsDVjiviAPlO9kFIYtxfgd1n5FPphqp0Vuclse+DBEcCjMBoy2zMmjsed0zZ SOw/N/XQ1H0ZSLoYl6IxUSjJnoH/0Wp/HBpYJ/XUbucQMz/NxIVfimiZiPvsYuZE+TFF 74hw== 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=ZrAn4+wDZmlfBR1rfJlysK73SQhLsoiqGo2tEfZCQmE=; b=Sr0nbEML63nqxnO4NnXm76OxtbouXzSwM0m47blg38cH1bh8ehoX3G3T46JQrupvRQ S7gF9m8Txxfp5PNWbzSwNlD4uHVDICfbejrGP/52yoU/d/1cg5OekuxZW4CddFO/3pRs ghkxLjK64FUqq5zujbcAB+fOrhAFtct6v7EhTBuspRbS9d4i/OjdV1UflEvNiQ33Vd6y eH3h6wOHn30KlsSYwV5cQTKaVgOGp3S7qTp16zZKmB5iTFqWjKTSaPHrKoofRQg9to/q md2DaykjqGaN9y7dhecWwsNf1zsfdZQS+RmHsnkmzif24m7xe64lRksZY0h6PuWZB3FK 6Bvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fo+5d2Qn; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd14si622024edb.478.2021.01.13.00.13.12; Wed, 13 Jan 2021 00:13:35 -0800 (PST) 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=@linaro.org header.s=google header.b=Fo+5d2Qn; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726855AbhAMIJU (ORCPT + 99 others); Wed, 13 Jan 2021 03:09:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbhAMIJS (ORCPT ); Wed, 13 Jan 2021 03:09:18 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF046C0617A4 for ; Wed, 13 Jan 2021 00:08:04 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id y17so1048568wrr.10 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=f4MTqCZouTz34JNuP/jnXWZyt3XIgOC+nyphwgvl0nMdiakg9dPz8t9skRqOZvMSvo coqN8e5I7ad2nUB7ilPr7k+3LkNFlmqUzu4nulDIpsLcMEesTYuAZYCwAINI5kRF+pCJ TJu8Kdg4EVU2+N9HgyTGPTQnjkPem7yWcDkXa8gac3YlD72oWR+0EPFwPf0tZK0OLMMn nhaCnGX6+w8C6sa7az3ODutrd7pdwo7eZtvuizA5/aAEETEqbYHgdeZKZePRXel9khRu Rvcw5Siqn0GPNTWRCNc8CeG9PTquOS5N7sAiNiYaiv71PfmHCnyBDvgQmAv5peT2d7hE FIwQ== X-Gm-Message-State: AOAM530uGBLJkfZy6B7YbL602Ab6MrDfSrFdVKPkv5M384fPGzHsYCHK /LqW97NI8E9eDapsx218E9q2hQ== 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 Cc: linux-kernel@vger.kernel.org, Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.25.1