From patchwork Wed Jan 13 08:07:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362044 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp296820jap; Wed, 13 Jan 2021 00:08:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRS6NYH92JiySUqoVaCSq5KahzQgEPjob7PvnyRjDmuRNDvc8ek/BG4FhR1MPHqFVe07bv X-Received: by 2002:a63:6344:: with SMTP id x65mr1027486pgb.172.1610525303125; Wed, 13 Jan 2021 00:08:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525303; cv=none; d=google.com; s=arc-20160816; b=mFgmGlXYvEAjl66eHcgnbxMBJtvORBXIfjSM/PW+bNCzGVfgGJMaWhSYnzGoqwIb7w MGFoyEz7a38sDz8LTUSCxueGzTZEEFyM1evYY35hARGypND0j10MYfwvUGk7Xcsuy3yv JBHq4Y5VzqUg4M9wXfQKRHzVZiap29gU81KHlDc6DZcqaZfKMgVcHa/oTtn7ZNr0ImZy In7JcXbVS3LxLGRZDdkhNapCKeooeREWEoLy1HgZ7xhTyGHTGQzBjw3Mucq6zxAfwXp3 3/4f3rk008yANxpZjcPVSvdpYdchcLqTou5XIEim8F4WIBRC1lwx0Nmi93GU6OjxgHfL RBAA== 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=SFM0Wo5DhWXeH1Ize30TTDcWbB7NKcfNgA4ddP57W4Q=; b=vgzyXkyDLM/ziDEfaJ8fBeNdTIjXkPRLzRq4e+63d7CPBik+Tl/kwq5kvxn2DPJMT2 6I43UjHEU/aU6cEpbXE7k0dv0/lANPEx5jwEQHJA1vz13vzG1AtjWWHuHCkWQ0UXkYds GRTFB8tmiB/7tlGDAq+z1VE8JWzE4fclaJSuIgEBij81JzrMJPpdj9klC0GkPKFeQ9IU ZqXubnfdTz81oXeQEMMjqBwsfmQgrsY5sd/s/cugasnNH6jM6tf2/rhKBMdT6f40EOoj 1o1PikqgYhPIVpT1QX9Jo7b1H6T/DHKqq0Jq+i/bssHD8xfnUbtb9SOAD6C4tZBTEDtj gnTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="RlPHM1p/"; 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 s185si1403926pfs.330.2021.01.13.00.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:23 -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="RlPHM1p/"; 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 429BC89FF6; Wed, 13 Jan 2021 08:08:13 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by gabe.freedesktop.org (Postfix) with ESMTPS id E15A489FDE for ; Wed, 13 Jan 2021 08:08:09 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id d13so1039335wrc.13 for ; Wed, 13 Jan 2021 00:08: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=QtOB/mkCBg/7k2V+Yul5Q3zrw4uvSu6D+ZDw375QQ1c=; b=RlPHM1p/vG4SiuUwAw1bbIS+KMHFtNuIJRaOGSj+2QN2Xv9MYmpXiHybJdI3JFPrx9 rcHTpY4z2TUTAfTT1I4Oj+dYy1Hoq9VB4U7/nMWz8M3OeGbsigW+GAcdlv43iq+PGUqc N/cHJxQw7WOtopw0GWdLqfI59hhkzZnOcSo7/WDLBGdj/umo2fYaYvciEXE+O4JwVn7J 7nL1q7H638KJMQx/i6LfIKD5pmJ7JhBscMqHmPRL/AUL5ZZQHYmHOg0fVC6TrZFE2wX5 RiRcZAQbYaxDh/JmbM+g5OXeOQUIqAjF2kPGe8QidqmB+v8VvhcXal041dC+f32wFYfy OUMQ== 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=QtOB/mkCBg/7k2V+Yul5Q3zrw4uvSu6D+ZDw375QQ1c=; b=Xj00Hol3sLLstvwrKVysvWLabkq3vupr3RvugpRTY9CGaAItxYq0Xoasa6ctJGdpTG 24P+QFLQr6wRqGlwzJR26Bpl6djuSyC1wvULFWbUe94KtMoLxjrAuwZ//P2rPNzwwCRf D/z/NJ4O/4fDA/NanGTfbXIwal312wDxha2ixF5rNeceFUXU7Hjg0ym/KQl+YgUTXpuh OFSGCWyw8bONOfB/ze0Tazoco/81ognNdJ91P1/IUqw2ChtbFY8cO/iHk76uMR+8rvj7 o+7I1iLJbQ3P8j5FQVJ5JOjjjOJIaa51FT0/4zi9s62erEbeh/ndEgCu2rarvzg6wLaN EP2A== X-Gm-Message-State: AOAM530EhbdFqgTbslfUZrqAmaNVnkusOSQXY5o0YkBZ11dy1LDqKwN3 ESPtDwpoIPJU0M+2jGv0WRyOmg== X-Received: by 2002:a5d:4112:: with SMTP id l18mr1191436wrp.116.1610525288602; Wed, 13 Jan 2021 00:08:08 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id r20sm1642486wmh.15.2021.01.13.00.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:07 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/30] drm/amd/display/dc/core/dc: Staticise local function 'apply_ctx_interdependent_lock' Date: Wed, 13 Jan 2021 08:07:32 +0000 Message-Id: <20210113080752.1003793-11-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.c:806:6: warning: no previous prototype for ‘apply_ctx_interdependent_lock’ [-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.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 8f1cadb823c71..0a07e608485ff 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -803,7 +803,8 @@ static void disable_all_writeback_pipes_for_stream( stream->writeback_info[i].wb_enabled = false; } -void apply_ctx_interdependent_lock(struct dc *dc, struct dc_state *context, struct dc_stream_state *stream, bool lock) +static void apply_ctx_interdependent_lock(struct dc *dc, struct dc_state *context, + struct dc_stream_state *stream, bool lock) { int i = 0;