From patchwork Wed Jan 13 08:07:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362047 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp296884jap; Wed, 13 Jan 2021 00:08:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOAaGklX4akg/qeI6CdHTPWrxRLxdbVYJE4qobjayM9AhiByv1JvLiCVhziKtJyBW8p0q0 X-Received: by 2002:a17:902:ee14:b029:de:19f0:91b4 with SMTP id z20-20020a170902ee14b02900de19f091b4mr981090plb.78.1610525308236; Wed, 13 Jan 2021 00:08:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525308; cv=none; d=google.com; s=arc-20160816; b=Ss/0xW9ISnPaOBGi0jwqiVcLxiFyGagYH3h0jC7YM+83+UnYhE0K+45POhzbu/vXXR HEOvlaOi+6mLkXln+p1xJJQbCup75n+FaYLq0zIiuYmy8f00XtR1RxDWaFbvR2zYigS6 o9MleVGCROc/x5K5/4JAdPL9ESKQyWIkFAYvsFHQw6oHpwDsdeHyKh+RCf1lVaBqn7g+ LejGS2mTOZD0E0FOmFRN/BfPYD5qqPjsJzv3RmBNq5hDzaWesBYAL7dMiONW0f+nKdnM BEo0/jlmGpqrQ526BPtqRYKEE2eZp1vve7GW4voNP80x1VmTnMXpiSzMxSeEVLQKlxFf of+w== 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=NZTZnk7bPvTfs9d9WOLmkA8Qa7/Ng1RbzfQIaVJ61q0=; b=R9r2MNnyeE5x2cJLG2O4ZrV2YFPe23mTLDeH8yErENDKvugdmcynXOirsojCyFB9XJ AytLch2YUP31yie7/U73rvpN3iJ0BlGz+wh72ZKTfWYvUzTdX8XUooy2Jy9o5wz+0dav r1ge1ht4e/ChbekpovXu1IPzVyGndyrxMpJMJeMpJsvyjNd57RYLIbpXwvALgblcUpe6 QSWjBfvgiMztPCRlp+dFr78y+nWhuAMOYbHxshJNy8I9aw021/kDRocTLXZ5esWzYizh NGKZXq3sAqiPZntXd81r89rEV5UbTa3k4EQy+ixTyRk3Z/2cdOOtlD1fC0/SD82wllCh P+Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="SpmtloZ/"; 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 k22si1477836pll.380.2021.01.13.00.08.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:28 -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="SpmtloZ/"; 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 66E966E071; Wed, 13 Jan 2021 08:08:16 +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 96E2E89F8E for ; Wed, 13 Jan 2021 08:08:07 +0000 (UTC) Received: by mail-wr1-x42d.google.com with SMTP id w5so1043024wrm.11 for ; Wed, 13 Jan 2021 00:08:07 -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=mCRcVC8RkZNOsTZmH5MrfFMxeQad14MXuEtj32uCB2s=; b=SpmtloZ/cSZhuSXJ9UQ5EJpwFNOKanG/Bh7X1ETpsmkC49Bq+w103SFSlgUo4pLIMH 2zKhjWxoUnAtjIDu+O6SHLaEgUkdKy4qCZEP7+tBNDWSP9CUt+1Z8x2nm0wSiq8uyq2M Ma/YOj18A45z0ky396eCJnoyUf0zmIrZyeR1V4/RYkslXirRP378ubPBXG5RuEKedpSe cFbrG8IQ3GYECv1TK7vuuUf8Jl9WAJCn7m9EbmGKl7ng+wYlDrsDlZkUx4y3zv9RdyA9 B4wot+hsMGmQQqtj9AgLGGvNVnO0BtwuAwu1ZvRizlL9o/HbLAFaiG7V+mY6GCF+NRQj YU8g== 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=mCRcVC8RkZNOsTZmH5MrfFMxeQad14MXuEtj32uCB2s=; b=D7uha2yB45lOl5Xg+aPusvxSD5aoOYPwQVI3WOOJWumo/Nxn3UiPsUqeJ+rR6W8oOz 4H2M0x9WtN8GQm48GWO6LV25iUkVrgMq9fwdnDVcM/umF+trJWQhzmrStecUb1otsPDi c3YW+upn2Fts9kqIhLkuTJoBL43m2gu8bUQooWpipVIU0igW4rkQrOmTBJUfsnhy+hG1 h/51bcejl0jcdbmIqNLPS5Qyl/xdYSDIel8pcsSoPvc5hJhE3gXLA0xwr5fCB9JaoafL SDb9ZzwxGTwkANaLZTlbKSkH41iBMUWMkU0ecSdJRxXL6E9a9Ybjh9pp4ntApIamG+eS CRvQ== X-Gm-Message-State: AOAM532g7KsUpxsCCb5cbciFk3TrxqcApfPdZuzSvlGubRsXy6YEsUKG KUzKsjq+bYEseuGZkXB0S6aWdw== X-Received: by 2002:a5d:558a:: with SMTP id i10mr1191325wrv.363.1610525286253; Wed, 13 Jan 2021 00:08:06 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id r20sm1642486wmh.15.2021.01.13.00.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:05 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 08/30] drm/amd/display/dc/core/dc_link_dp: Staticify local function 'linkRateInKHzToLinkRateMultiplier' Date: Wed, 13 Jan 2021 08:07:30 +0000 Message-Id: <20210113080752.1003793-9-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_link_dp.c:3710:19: warning: no previous prototype for ‘linkRateInKHzToLinkRateMultiplier’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c: In function ‘dpcd_set_source_specific_data’: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:4403:18: warning: variable ‘result_write_min_hblank’ set but not used [-Wunused-but-set-variable] 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_link_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 2fc12239b22cb..3c33b8fe218e5 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -3707,7 +3707,7 @@ bool detect_dp_sink_caps(struct dc_link *link) /* TODO save sink caps in link->sink */ } -enum dc_link_rate linkRateInKHzToLinkRateMultiplier(uint32_t link_rate_in_khz) +static enum dc_link_rate linkRateInKHzToLinkRateMultiplier(uint32_t link_rate_in_khz) { enum dc_link_rate link_rate; // LinkRate is normally stored as a multiplier of 0.27 Gbps per lane. Do the translation.