From patchwork Wed Oct 26 07:01:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiapeng Chong X-Patchwork-Id: 11084 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp99517wru; Wed, 26 Oct 2022 00:06:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7sNDvTopBZ3ljjK+eBlvK4xOyLI27kUPuSeTH+lv2BSvelrf+s0WFPZwY457R8gHzojdu0 X-Received: by 2002:a17:907:3f94:b0:78d:9d2f:3002 with SMTP id hr20-20020a1709073f9400b0078d9d2f3002mr35731242ejc.40.1666768018506; Wed, 26 Oct 2022 00:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666768018; cv=none; d=google.com; s=arc-20160816; b=lPA/3HLktVAlxLVxPkfAtSXqElTiTzrD2KBdDeRK1DN2uf/IhvuY0eCPyB/IV57EJP YrjrkwtOJUlTJuPNaj8AGbYXh/sBXs6bWpnFd1AaJWY91RLPbOyuw88Y6f/pIS8o3lNq YJfb5fOQVsJzv1HzBOLbG7WagrHGBZMgrug2wCfL/JYg7dKODvUIPdElXQhf24zEXabv GnF6G//lrhFuuWn7644V/jKMlDvl4vwbytHvyoyzN6jszQzsxWC5ZMT9bqmKqUO0r4nQ qct363A1LJHNk0/GYmC1Hf9vq1WN8nzyY9RlBgXQf3hqljGJJAKLxioyjyecBoVSyPU7 Etpw== 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 :message-id:date:subject:cc:to:from; bh=4i1JVarGV0FWLMm6kiembRxDSXU+yqtS2twGFjRNj9I=; b=Vc+HauW30X+32SkBcvCexin5r77sYYjhrSPWADDsfRrQyoz3xY8Xl1g8BVZHZe5g0s mpB4copXVYfoZGLrqlH1InXlOAJklrZz0YwqRTLZmXwl8/CYJHdZriLK8SHdCqX2q240 FeySvGyW/GQmXxQhu3X8kpHnIRZk0CfNz5yFz7Lpt/7f5bGS3IWbW7OJtl7rj2/0/Awo 9WFqlO5IfL5Ui3c1mIFQeoD7LMNfzyPyZXc98b3OxXGOtUpTRhWXO1Q/8ENmTIvRmEJ4 xTo68ly6fSYEl/suynjQObbgOdcCIC0q6D536giUhNU8IZ3FlVV/NR1xJR0N8eJHVxqB WDfQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qq17-20020a17090720d100b007879bc7eacfsi4344028ejb.93.2022.10.26.00.06.33; Wed, 26 Oct 2022 00:06:58 -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 S233127AbiJZHBs (ORCPT + 99 others); Wed, 26 Oct 2022 03:01:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233040AbiJZHBp (ORCPT ); Wed, 26 Oct 2022 03:01:45 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA1BE33850 for ; Wed, 26 Oct 2022 00:01:38 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;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_---0VT6KDB4_1666767690; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VT6KDB4_1666767690) by smtp.aliyun-inc.com; Wed, 26 Oct 2022 15:01:35 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 1/2] drm/amd/display: make wake_up_aux_channel static Date: Wed, 26 Oct 2022 15:01:09 +0800 Message-Id: <20221026070110.35364-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747732942177109768?= X-GMAIL-MSGID: =?utf-8?q?1747732942177109768?= This symbol is not used outside of dc_link_dp.c, so marks it static. drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:5230:16: warning: no previous prototype for function 'wake_up_aux_channel'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2581 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- 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 420119efcf5f..e5ab751a5ca1 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 @@ -5227,7 +5227,7 @@ static void retrieve_cable_id(struct dc_link *link) &link->dpcd_caps.cable_id, &usbc_cable_id); } -enum dc_status wake_up_aux_channel(struct dc_link *link) +static enum dc_status wake_up_aux_channel(struct dc_link *link) { enum dc_status status = DC_ERROR_UNEXPECTED; uint32_t aux_channel_retry_cnt = 0;