Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp174368pxb; Wed, 13 Jan 2021 00:13:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyK6TRe279Ivi7Q0MVftYHBwULPXBn+NBszN9c4jZ5hK/gjYSQ8NSUm+HQrXSsJ+ipO6FMu X-Received: by 2002:a17:907:1b27:: with SMTP id mp39mr472549ejc.519.1610525630442; Wed, 13 Jan 2021 00:13:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525630; cv=none; d=google.com; s=arc-20160816; b=aJJX2EyCAYUo+3/ANriSA8pSScXSa/yQXvZbtNcxzam1NMp2I+fxipoK+H3SjB80xm RLPnGbiFT0ikwI6hJlVK1N8BThMgizFTNY9x/Z/hI0x8TcU5S5IN7Qv2HVoEqSV8gIjm f4M4SGD4VcuVTwK3hSvqKxqopdta2djCF3yWq3OmUx+nVRUcHGKZLaGWCDucjhvMGfE/ BE0b2EKgK8aYp6HGkGfdpqS03vE+2RswDMwTCatvDnVhpMQSbfJk6UhRJptEC1/FaGRQ ePGPjKJBy769lUaF8kwTfogyytnPIBjE9vkL1hOs6jv3Z+Vv4dMS+r7GfLs6T2RpWDTI vANg== 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=mCRcVC8RkZNOsTZmH5MrfFMxeQad14MXuEtj32uCB2s=; b=FpHKSUDUnKNuuB21h7PdGhsWiGCxyShub3sERtTBYry6doWa1n+LeNJmoPSt9cHBm6 tUDPIX42Z0rcEB6z2LmVv2SLfPKQ1/UwCGf/hyqfYOrFvSnWPsuVcEVokrZl0JdPUtns Tbo4CSyRd12HrY5OpSOgwipL6IoWQxb40XwbcRmSRz5f8hZqRf9KQkI7C4fgGcQ59owx vG45xW/o3fxc7SkpUzVI1Kf3K9w4Npae6uDRmtqfJ8SAZEcrkw668N+Uk5KVQBwblRtJ kjoVD57o+/puvyDR31QroKi2m3nSZkcacj+C3n+XFUb9PdObnyITSzw23UmsjQV/rhOm 3FAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="SpmtloZ/"; 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 b1si627188ejb.314.2021.01.13.00.13.26; Wed, 13 Jan 2021 00:13:50 -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="SpmtloZ/"; 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 S1726570AbhAMILf (ORCPT + 99 others); Wed, 13 Jan 2021 03:11:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbhAMIJS (ORCPT ); Wed, 13 Jan 2021 03:09:18 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F38DC0617A6 for ; Wed, 13 Jan 2021 00:08:07 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id y17so1048688wrr.10 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=s9O3+ZhzKdKFu/dIsF0C9A1BgRIQd1qSMaiXonaNVPJjC7dRN5xJtwlDS0L/Tixo2j s0y7a+MME9y4rfZxGZRTFyhqXu1Li51RdYDXfZ687y9EJWDk25Nc4Blh8yzxc6ZHvORm KS3/WmrxyTjAediodeQYSeIa+B92fGaM0Dj4tYBCCOtmqLR9QXEd0N9zxZJWng+29EaB s1DpZB6DvkwYs/RxNrKDaHVsdAGWOMoaDrha+Mikn+65aQ5WZikiEjuraqk/patJJAJm O1xem/AcfTn2Vjp1ZGgnAPP1IzV7IdE3CdSUoZP7algElU23xBhqzAzg+iLvJ0fBPQkd 3HMA== X-Gm-Message-State: AOAM533A333AG3iDBG1i1HF/Ca7YojwJin+nmcVPuGwBhbIsdEZP0S35 zpnhDqHjlXjfvFKoMIYrnxNKlQ== 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 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 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 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_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. -- 2.25.1