Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6290170rwn; Tue, 13 Sep 2022 01:48:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR7hoouTfvqE4vKNqWWopkxjZOVeCh2tY5iCEX+E0e4aVSLMl8c4NYhmgWfNdkVVW9b2/z14 X-Received: by 2002:a17:907:94d4:b0:77f:d0c9:573f with SMTP id dn20-20020a17090794d400b0077fd0c9573fmr2091902ejc.98.1663058886870; Tue, 13 Sep 2022 01:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663058886; cv=none; d=google.com; s=arc-20160816; b=egG2iEMEq69b9HKq1hcwBxJl8h1y+L3N6zA24lSl9UpeyoWLZSWc8xC71hXdQVaKjF reqdb/oBzoZebiCA78LZAM1dLdo4/sQ9mzFrEV4uila0wMHSqL9s2u0hlmSJr6ACojng Bjtl4CQ537yPL2J9ZOpZPJKc7VBolwsoAPgRgh1Pl6i1wpZ4QjG2fIZLCKk/qZ8wXx66 l4HSs/Klz21LuF2eoX5XOXSU3va5CeceTh1BFztNZErhKxksQKb5NykvuJsaYmfNqb0N Qhn8S+OyfKH7exgddjq4U8jhdd7riUUg8AT2NrojYEfnD8fVkgbl4RKss/sngNpf7kH/ Mxlg== 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; bh=h64AuzQ8UquNei/0AvWXHiIz3DZOOLpr0hebPY04Owk=; b=DpmDgwzYcrDKR4M/6iWs1+VK3RIHwWL7Ebp11S6akuYKJ/mkjqVXSOz+0vtQmvf2l1 gHb5R7ohJSSzbVmxlPbZZhfLTer+j3KJrTeM0R+c/SgzwRQTyrLyZrL2uUtDR5XtjQyP Wz9z92/f5g1nHEwtiHXJ6qUNB856Vfm+8/l8zBL2JNZVNnQGIAbmitD/Vp5Ql7+IADOD 6I4XV/pEPL93qltxUXmEg5uIKO2ieGmTi9xgzha43JheA448oqZk1bBqVH94IPv0/hAM TZ7LZHDKvwayT/RIPFSY4g031Y86esN6zstNahg+fF6wRsTbl8hncYB+mLwJNN5d4Kdb 2VHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o10-20020a170906600a00b00741990286a5si6398535ejj.768.2022.09.13.01.47.41; Tue, 13 Sep 2022 01:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231352AbiIMIio (ORCPT + 99 others); Tue, 13 Sep 2022 04:38:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231439AbiIMIih (ORCPT ); Tue, 13 Sep 2022 04:38:37 -0400 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 617E05AC73 for ; Tue, 13 Sep 2022 01:38:35 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VPem1l._1663058309; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VPem1l._1663058309) by smtp.aliyun-inc.com; Tue, 13 Sep 2022 16:38:31 +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, Jiapeng Chong , Abaci Robot Subject: [PATCH 3/5] drm/amd/display: make dcn32_link_encoder_is_in_alt_mode and dcn32_link_encoder_get_max_link_cap static Date: Tue, 13 Sep 2022 16:38:03 +0800 Message-Id: <20220913083805.22549-3-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20220913083805.22549-1-jiapeng.chong@linux.alibaba.com> References: <20220913083805.22549-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These two functions are not used outside the function dcn32_dio_link_encoder.c, so the modification is defined as static. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_dio_link_encoder.c:121:6: warning: no previous prototype for ‘dcn32_link_encoder_is_in_alt_mode’. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_dio_link_encoder.c:136:6: warning: no previous prototype for ‘dcn32_link_encoder_get_max_link_cap’. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2117 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_link_encoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_link_encoder.c index d6855d4f749b..fdae6aa89908 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_link_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_link_encoder.c @@ -118,7 +118,7 @@ void dcn32_link_encoder_enable_dp_output( } } -bool dcn32_link_encoder_is_in_alt_mode(struct link_encoder *enc) +static bool dcn32_link_encoder_is_in_alt_mode(struct link_encoder *enc) { struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); uint32_t dp_alt_mode_disable = 0; @@ -133,7 +133,7 @@ bool dcn32_link_encoder_is_in_alt_mode(struct link_encoder *enc) return is_usb_c_alt_mode; } -void dcn32_link_encoder_get_max_link_cap(struct link_encoder *enc, +static void dcn32_link_encoder_get_max_link_cap(struct link_encoder *enc, struct dc_link_settings *link_settings) { struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); -- 2.20.1.7.g153144c