From patchwork Fri Jan 8 20:14:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 359061 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp856064jai; Fri, 8 Jan 2021 12:16:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0Q/CNRymd0L7oYcFxsUC1FrMgelUPfWN6KzdYgX4fwrArgZBUcQQwl3k4K/7HfxVAn7yu X-Received: by 2002:a17:902:c193:b029:da:ea4f:af79 with SMTP id d19-20020a170902c193b02900daea4faf79mr8757415pld.14.1610136964572; Fri, 08 Jan 2021 12:16:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610136964; cv=none; d=google.com; s=arc-20160816; b=uanvDZJhOj3pUhyaX/YOYyr/p1X3uk9bJS81XaprgjhZC6elngsXXS1Pb/RIj+zDp8 7395qNMQng4YjYh8tpyYqvcGjgU62fxDi9zOV1+A4hEaFgAy2JhyNcaX28KtxJ02C3qL IFHlP1LSwOBA58V8H0UwSutZZ+7wCyk3EiD+flZnOrKUWfUKAJKxXrerkF37bK+hxkE4 TT2MtdM5Ctb4siUGnBZdzm0IgvhU9H2rIJuV+BligPm+VmQolH+S4bhnXAqXMakUGHN+ gxLorw4UJub3kq6cPeySOsT4hY3Z6s3g9tGw5WwY1Sm3rTY7wH9JNnwPAnEmMiDZYsJQ Tx6A== 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=HVxQuFzSG4w+oquQzJPibjTL+pnk5Ivuz2FsxRPoVzI=; b=w29glzeeYTxyrEnB1OpiLn/xj0Ux3GAXv9FQxXTvj2WL24mkDV9chhTtsLyq0Lx2cF NmrMulDiGsqi5OwD9ON50fHcSyPLwSqsT4Vy7CO98Ay1l0Wsy4fKZvXxsd6uRnYkPAIr zGZFZWjUNLydabhbcZYp3ZHeLnnfSQdRLrM+ZnbMZk04E62YRY2RxOTE3o5bh9vcbTuB 6N1BTv/Mx+KDEyuvwn2SzaYwnwPWQBjtBQErXz4dP5Om+MQiuGC4jxExLbo19muJMKh3 AgabNF5JffpuIfFQcpzeCsbQlBoM9KcONlucj5e9tT21tNByFgmdrP7g4Y8TmRQ/ilFQ MRNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=xw+bWeaE; 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 k5si10276726pgl.494.2021.01.08.12.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:16:04 -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=xw+bWeaE; 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 C5C296E8CC; Fri, 8 Jan 2021 20:15:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by gabe.freedesktop.org (Postfix) with ESMTPS id C0A066E8C9 for ; Fri, 8 Jan 2021 20:15:57 +0000 (UTC) Received: by mail-wr1-x435.google.com with SMTP id t16so10169438wra.3 for ; Fri, 08 Jan 2021 12:15:57 -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=tI0M520Tgf6Y/taglfeuNx5F4TLLe4OwvIOR0TyXZnU=; b=xw+bWeaEAWYrLVo8JxLnuBuwmxbi1iNsGy74mXZlvGNQ6Azts3YZMI9w5upfCOF1Tv ueejiFcYOTXV6jCZekcU8peSlcaVLVQR40i6N5WOK9qCJDOKgh6i5k+Ga3zjF4FmDOh7 YJT9ZbCtfyjv1dNcHC3TxSyqBmoN65o2gglwSmZAUODShuenX/YQTTDETct5ct6hQf2h 5YqNt9G1X9GUf8AmiY5eYEEW2GiZcPuiwUDJFHVOS6tCpZoWjAOOOHanmL9q2j2LyUGD R/vhENw9F8tYjeE7VhfKmnFgFBaK1ft6esGzXdO3uvtaj2eBjk6SEYx4KZc3erYgr6nd c4vg== 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=tI0M520Tgf6Y/taglfeuNx5F4TLLe4OwvIOR0TyXZnU=; b=kr4mN2IHMMRAfuS+9gMqPaQfYVjABLKZ72sIkAiCJo2YnECfrJMG1hgTINn5ng8xl6 9oZ5MRit29Svu4sD3Req1NObCz9uXsbX+X16YJoYmL86hu8ywgKy9bDE6L75rCVATEgp SBStBkOzMmxvmSQhmIeYiJxPUsb4LtFfEzDsT4Ozl/0dF3gtRyQTWTunGoJ823+s7g2k vFCpCoB4seTDajGv4NrQADu0SmFNoziHW6voX9xMb97UV1o5owZp9/mH4NQ2WOhGbbvT +PWjr/P5/gff7c/5TdMh69Zgrp8T9LK2evtmePvE5EQFYTuahlut74KvqrcxOlczFttS I9Zg== X-Gm-Message-State: AOAM530S0zxbPMrXlv+ZyBG0TCKdDQZel/B7ypnxutE9q1Ik/lF6OeCT WOEZKNR7PJr0b7S+//hE3GD0EA== X-Received: by 2002:adf:e590:: with SMTP id l16mr5282481wrm.294.1610136956461; Fri, 08 Jan 2021 12:15:56 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:55 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 36/40] drm/amd/display/dc/dce/dce_i2c_hw: Make functions called by reference static Date: Fri, 8 Jan 2021 20:14:53 +0000 Message-Id: <20210108201457.3078600-37-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: Lewis Huang , 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_hw.c:438:35: warning: no previous prototype for ‘dce_i2c_hw_engine_wait_on_operation_result’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_hw.c:505:6: warning: no previous prototype for ‘dce_i2c_hw_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: Lewis Huang 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_hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c b/drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c index 7fbd92fbc63a9..a524f471e0d75 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c @@ -435,7 +435,7 @@ struct dce_i2c_hw *acquire_i2c_hw_engine( return dce_i2c_hw; } -enum i2c_channel_operation_result dce_i2c_hw_engine_wait_on_operation_result( +static enum i2c_channel_operation_result dce_i2c_hw_engine_wait_on_operation_result( struct dce_i2c_hw *dce_i2c_hw, uint32_t timeout, enum i2c_channel_operation_result expected_result) @@ -502,7 +502,7 @@ static uint32_t get_transaction_timeout_hw( return period_timeout * num_of_clock_stretches; } -bool dce_i2c_hw_engine_submit_payload( +static bool dce_i2c_hw_engine_submit_payload( struct dce_i2c_hw *dce_i2c_hw, struct i2c_payload *payload, bool middle_of_transaction,