From patchwork Fri Jan 8 20:14:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 359064 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp856118jai; Fri, 8 Jan 2021 12:16:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzX/0S2umy+OoKm7a4IaQpnrSfysCxmU1iXYHChMZnvB9Wc6xTrU1Y0kB84+8GhKlvesCiI X-Received: by 2002:aa7:95a4:0:b029:19e:abd2:4a88 with SMTP id a4-20020aa795a40000b029019eabd24a88mr8644186pfk.2.1610136969148; Fri, 08 Jan 2021 12:16:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610136969; cv=none; d=google.com; s=arc-20160816; b=m1BgNYE6eNUk6gT2eWjwIl8E4ZXazJftgVJMzSXN+aoboleEcukGnXwhV/+yelV7EJ cgbnM/Of7prl0rkF4WfiltM9rz1KHyzcECL02EetQQ8t22mQ8dNWEDDRc4cqH+dtjsZ5 pmTlsEXZlr8DmI8srvau3DaPpH+MFfTCv5nRsxE/AygVJZ6sM5xHjasq0sS4t94tuPFq ID+fLIiuEIwPd0wTNJjGBajICOnkxoyHV5CgEBd85d97VMa4LxNAdTd/BWZV4RFpOa0Z 7ONjxve+g9XJJ0vZiOi7LQ3aXnABS/inECXuzOaV3pVoRiG5wAm2KeEDdJR3WKO994Q2 MUiA== 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=WTW6rBnp+mYpCymZKaQrvR9JWbAnQBByZkrFOJzLiZI=; b=RLhUJbt2ure4Sul7ZB5HVdPE800BRNG8s8x1RyhaetKpm7mq/t3iZUOxwO8lCcXtPt gikFKtYHwFZ3yW2Iz83JQGxIkQrP4PLYWMf6KowUUm1AM9bYpa4bpGO5dF4O8eP9H8Ef 6j5qyPIq0NexHA5lsN/fPWz0vkYAHoVv3uDsJDcCfeVvd4BIQDIc30hN/ZzczL+jo0Z0 71Ws2kXCRj3FKXvRCfCM0OZedvwNnVen+oJ4mXaCIZfBF0ysiGIoirLtTH8qo1TpuKmS Psp6ZJQN3lrTVKcRFxr6+WkVUMRKcYVqHZZtIydGwEX116RYUre3oNR8vwLY/ADWTuLi JI6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ii7134gA; 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 t18si6975168pjw.24.2021.01.08.12.16.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:16:09 -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=ii7134gA; 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 ED6526E8EC; Fri, 8 Jan 2021 20:16:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1CC126E8CC for ; Fri, 8 Jan 2021 20:15:59 +0000 (UTC) Received: by mail-wr1-x42d.google.com with SMTP id 91so10154470wrj.7 for ; Fri, 08 Jan 2021 12:15:59 -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=Q0Y2D14a+N1/DuGk1xLenDRRTJldnnwxnydDJYRlWZ0=; b=ii7134gA7Vw7PgBW2x9F5/fqdzcg9nwOHhEMgmTAPmloKouSet+Yv0Eh112bhn7tC8 TsDFdsCmlo+upGbISJMmApS5v1F75lRJVXN/zBKixEhYHpU1ypv6LYXY7uKFXgz4hepX 7MUTHY7finxZpnnkLpsLtHwGg3W4F5uah003asbdtFKBjR49ndtHUMOaGmzR7WKXkScz seeNxJKr3QNgQsJOsLOL+0eQb3NSDpD7LOfZuPb1p/pjFXQOSpGjFbk7/UM4Un6rAmPm bmL9pQ+p4ZIPy/wf00QO8fA+JT3rzOpDgjfbOGxNc09wvJJhZVLi7c67wJ80NU3LrqOC fqEQ== 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=Q0Y2D14a+N1/DuGk1xLenDRRTJldnnwxnydDJYRlWZ0=; b=N9cG3xJ+XfRCi1DMDws6V7EgHv1JlGhQbs8H0d+tPtSoGw7OEGtOv8npjbcNbtloEG Mmhg1JwCBgEjKvVJ7lfHTXU8d/VIlPdsX1rTJ2+w3EoQ9hNjli833H+oiJdy+70mgS7u yj9tsMHrEIV3Yyw1IdFTeYALvO27fFP/b8A+Rk6/UQqUXMv8nIgRuHl2pznCTMc+3PaE nHU6OPv0VoY7T2YzYY6tvJ5uDrK6njoR58chQxzqpzFprUArjmdmlixv+uB16UvFwxMA HakhSVbVSfWRxVujs3ChcB+GkvpiLsENAXRvFudB7yx991h8I0kZqoBfhL3wRHgu/dA2 af0w== X-Gm-Message-State: AOAM531BwkuJaF47zIJIhZLjuIMhDsQQ7B2A9Q4gidTBijnEEt9HefUX 6oVnPv+lhLgJ7xYBw8lMINCYXQ== X-Received: by 2002:adf:a3c1:: with SMTP id m1mr5461472wrb.28.1610136957815; Fri, 08 Jan 2021 12:15:57 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:57 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 37/40] drm/amd/display/dc/dce/dce_i2c_sw: Make a bunch of local functions static Date: Fri, 8 Jan 2021 20:14:54 +0000 Message-Id: <20210108201457.3078600-38-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108201457.3078600-1-lee.jones@linaro.org> References: <20210108201457.3078600-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/dce/dce_i2c_sw.c:342:6: warning: no previous prototype for ‘dce_i2c_sw_engine_set_speed’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:356:6: warning: no previous prototype for ‘dce_i2c_sw_engine_acquire_engine’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:400:6: warning: no previous prototype for ‘dce_i2c_sw_engine_submit_channel_request’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:443:6: warning: no previous prototype for ‘dce_i2c_sw_engine_submit_payload’ [-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/dce/dce_i2c_sw.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c b/drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c index 87d8428df6c46..6846afd83701b 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c @@ -339,7 +339,7 @@ static bool start_sync_sw( return false; } -void dce_i2c_sw_engine_set_speed( +static void dce_i2c_sw_engine_set_speed( struct dce_i2c_sw *engine, uint32_t speed) { @@ -353,7 +353,7 @@ void dce_i2c_sw_engine_set_speed( engine->clock_delay = 12; } -bool dce_i2c_sw_engine_acquire_engine( +static bool dce_i2c_sw_engine_acquire_engine( struct dce_i2c_sw *engine, struct ddc *ddc) { @@ -397,7 +397,7 @@ bool dce_i2c_engine_acquire_sw( -void dce_i2c_sw_engine_submit_channel_request( +static void dce_i2c_sw_engine_submit_channel_request( struct dce_i2c_sw *engine, struct i2c_request_transaction_data *req) { @@ -440,7 +440,8 @@ void dce_i2c_sw_engine_submit_channel_request( I2C_CHANNEL_OPERATION_SUCCEEDED : I2C_CHANNEL_OPERATION_FAILED; } -bool dce_i2c_sw_engine_submit_payload( + +static bool dce_i2c_sw_engine_submit_payload( struct dce_i2c_sw *engine, struct i2c_payload *payload, bool middle_of_transaction)