Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2673564pxb; Mon, 6 Sep 2021 02:43:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBf9fsVKrblyReuyqlGIKjPw7A2NvWcHRZmoOeYHjAwNEAdrabFGqSaK+ytNw4feWwnMB3 X-Received: by 2002:a02:9542:: with SMTP id y60mr10031289jah.87.1630921425527; Mon, 06 Sep 2021 02:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630921425; cv=none; d=google.com; s=arc-20160816; b=OL9h5qvoP4dv/OhmCUJ4uxEgRBmExD2Y22BfpqIOj1SG1tLqAPRSdRSAopQ0cmv4Hq Wolo+peJAoyYhPD4H1kI7/HHkxG/gs5G0FqTWvBsS5yGCQ++jIRRYS4Lrc/FSWG1r5pH weOmS096Dkx04R9vDn74pA1JKi0sXDGcY6XoonY++VZ3LcnMSfaoOL5SCN01MC2V0Afm m1P2M9W6lQ9Xn06vMeOvLkD/3I8uurQyXajjPBTBnTmI9kTxUB4Y/lFh1MPG5KoGtYMf 4//ZSyyIUojxw2d2AQNvmLxEfRd+jIPRPtfefQx2VrtYXwLG6BGC8NTZcFDxyTSIiEFe iVTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=qq78YgZf+w0k2Z04DqvmS+zW9Cmm1pWvukyCy3PLRb4=; b=t/iMhexjLXIlzKA3dnl24ELcKTP8XRGmtBXRupIV7UmxqMo6oCvgtPYxYrkkr9hZc/ VDIMrWrjVoCPirUo4uklfXRca2s+5TG4wVLOVBqkSF66C6bIaZOWAdTsEYLO11IQH+Ir T22FtIrSQltF/RcsW1RrGi3u0qXeF/0FhZc6rsyGplt2fOHd1dAKfu0gaYgAE7N7cqy8 Gsy7Fmp4AMIEWEERQqIdZ3md9lp4tjyBLoZM0C1a95UU496ApdJeR59AFQiXfV4rqhv5 ob/mwvWp8zN4gyn1MdrTzOMQNKuMSfKTBLYRmKvV0Dd0CRY+Mf51KnxV+R3LH4GdAHu3 a9bA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si7098787ilc.155.2021.09.06.02.43.33; Mon, 06 Sep 2021 02:43:45 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241397AbhIFJny (ORCPT + 99 others); Mon, 6 Sep 2021 05:43:54 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:39607 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241297AbhIFJnx (ORCPT ); Mon, 6 Sep 2021 05:43:53 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UnPH424_1630921355; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UnPH424_1630921355) by smtp.aliyun-inc.com(127.0.0.1); Mon, 06 Sep 2021 17:42:47 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, chongjiapeng Subject: [PATCH] drm/amd/display: make configure_lttpr_mode_transparent and configure_lttpr_mode_non_transparent static Date: Mon, 6 Sep 2021 17:42:27 +0800 Message-Id: <1630921347-122646-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: chongjiapeng This symbols is not used outside of dc_link_dp.c, so marks it static. Fix the following sparse warning: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1766:16: warning: symbol 'configure_lttpr_mode_non_transparent' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1755:16: warning: symbol 'configure_lttpr_mode_transparent' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: chongjiapeng --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 a666401..4e2cf8f 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 @@ -1752,7 +1752,7 @@ uint8_t dp_convert_to_count(uint8_t lttpr_repeater_count) return 0; // invalid value } -enum dc_status configure_lttpr_mode_transparent(struct dc_link *link) +static enum dc_status configure_lttpr_mode_transparent(struct dc_link *link) { uint8_t repeater_mode = DP_PHY_REPEATER_MODE_TRANSPARENT; @@ -1763,7 +1763,7 @@ enum dc_status configure_lttpr_mode_transparent(struct dc_link *link) sizeof(repeater_mode)); } -enum dc_status configure_lttpr_mode_non_transparent( +static enum dc_status configure_lttpr_mode_non_transparent( struct dc_link *link, const struct link_training_settings *lt_settings) { -- 1.8.3.1