From patchwork Mon May 22 11:50:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 97330 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1386421vqo; Mon, 22 May 2023 04:52:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5JfKxdyfoBKDSGZflO55uNe1E0GbFVyiC10HSuksF9Y0j8ddhnBTnLyTz7DOSAKvH1Jyeh X-Received: by 2002:a17:902:c944:b0:19f:3d59:e0ac with SMTP id i4-20020a170902c94400b0019f3d59e0acmr14412496pla.44.1684756368468; Mon, 22 May 2023 04:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684756368; cv=none; d=google.com; s=arc-20160816; b=Ls30z6/veYiS4COTODTnzqL6g5uY8TJMTUlQ+XUlGa1rMLv7iqvacELcZC5rUDtMnc OV6YRcknu+hkQMVpKAUUAcLmzgFtb/7a71Kcwe1FRYTyQmK1r6+JiPKrW/QCPZTgkNn+ hz/KzOpasFKfsktpGWyygGIZgwW2F5qJ8Gt/p139ayS0sfwT8txAsl/ofx18JpYIlbzP gX+6LpslF8SCVyg8jh+BBkny0msjVio2uPIHkuCyMC/YrYqtyE/SN9k+C1BZVDIxzfsq 0nvOrPLbjRSdGDM8sk3lM/EY5iZEkFKwZ+Mpr9WOXXfOHfefl8F+Nx1Y06IKecMPwPPp avvw== 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=mbTBLNeEdR195q/kgNEGQFCvMASk6VyJQDVeNZXhINc=; b=SWLq3KW2OQ+AZgkXg1N8zzGYfsejMUS3mQyMTp7uesIWL88q16/DduTuwht+4myCgm 7GyFX2Si7Qdvl7yC9h5yWDkWAm+Xk1sYHzrdk2i5a7TnQihsJKgrGThL80IADd3n9aRu 9QAThP0Az1GC4QPRAEKT2qZ8PYTNK9zc3t4iyFBQpEGk/8gfuYgusmEth9tz0mvqGyBS 02vwDzOtYk1h7bz3ul/JJ5i/4d2+RkkYcaJKCdDH2cfSjVdxffC+45ITARbo8tn0NDcP 8hiWSpLXYe1IImuOJRSVuvRI+pChu0F5xX7dRHcFX1rMITLbqCXgzhQvDEoDZYdX1gpL cnsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lEMTC6/q"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a170902b7c500b001a6ade4c8c2si4398681plz.142.2023.05.22.04.52.33; Mon, 22 May 2023 04:52:48 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lEMTC6/q"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233468AbjEVLvy (ORCPT + 99 others); Mon, 22 May 2023 07:51:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233475AbjEVLvf (ORCPT ); Mon, 22 May 2023 07:51:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11B1F10EF for ; Mon, 22 May 2023 04:51:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6A93161EBF for ; Mon, 22 May 2023 11:51:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5771C4339B; Mon, 22 May 2023 11:51:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684756272; bh=vmhEzOLeII1TRyTAiOXHuCyCtcRxvOwz/9R88nNsAis=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lEMTC6/qCBThkgoM0qf41k3j+222+sxSxyGkBTkUBedmRUg0xmdQLAmGy2jm0TkrI YBLq2FIRjJT/5qy/uPk2+Ujy+TclJCbCFagxEXTO0yaACD2jSIi/gHCqwe6ZLo1hnK 83oXgaDSS0vX1T4IBK/6Mze5tCJtM/gznXkPKfjCKsFKY/FglTrmT3yVhzieeJb2xQ rgBio60K+EU3zmkRCEazMPVWTnzMZa9bFT7r8TXGHKBFStDeryTLJp4VMW61a7QU9W YlyHRszkkNLJgH+QPxPPXDOjRLYA93lX9JGmdr4f0jAr6oSJKIKs9RT6dZT2TtGxDN BcvRuOLn0jMpg== From: Arnd Bergmann To: Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Lijo Lazar , James Zhu , Hawking Zhang Cc: Arnd Bergmann , Le Ma , Philip Yang , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] drm/amdgpu:mark aqua_vanjaram_reg_init.c function as static Date: Mon, 22 May 2023 13:50:30 +0200 Message-Id: <20230522115047.1169839-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230522115047.1169839-1-arnd@kernel.org> References: <20230522115047.1169839-1-arnd@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1766595094058624636?= X-GMAIL-MSGID: =?utf-8?q?1766595094058624636?= From: Arnd Bergmann A few newly added global functions have no prototype, which causes warnings: drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c:169:5: error: no previous prototype for 'aqua_vanjaram_select_scheds' [-Werror=missing-prototypes] drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c:310:5: error: no previous prototype for '__aqua_vanjaram_get_xcc_per_xcp' [-Werror=missing-prototypes] drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c:337:5: error: no previous prototype for '__aqua_vanjaram_get_xcp_ip_info' [-Werror=missing-prototypes] drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c:593:5: error: no previous prototype for 'aqua_vanjaram_get_xcp_ip_details' [-Werror=missing-prototypes] There are no callers from other files, so just mark them as 'static'. Fixes: 5f9f80485953 ("drm/amdgpu: add partition schedule for GC(9, 4, 3)") Fixes: 27614f589fc0 ("drm/amdgpu: Add SOC partition funcs for GC v9.4.3") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c b/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c index 68d1a0fc5f5d..a595bb958215 100644 --- a/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c +++ b/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c @@ -166,7 +166,7 @@ static int aqua_vanjaram_update_partition_sched_list(struct amdgpu_device *adev) return aqua_vanjaram_xcp_sched_list_update(adev); } -int aqua_vanjaram_select_scheds( +static int aqua_vanjaram_select_scheds( struct amdgpu_device *adev, u32 hw_ip, u32 hw_prio, @@ -307,7 +307,7 @@ static int aqua_vanjaram_query_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr) return mode; } -int __aqua_vanjaram_get_xcc_per_xcp(struct amdgpu_xcp_mgr *xcp_mgr, int mode) +static int __aqua_vanjaram_get_xcc_per_xcp(struct amdgpu_xcp_mgr *xcp_mgr, int mode) { int num_xcc, num_xcc_per_xcp = 0; @@ -334,7 +334,7 @@ int __aqua_vanjaram_get_xcc_per_xcp(struct amdgpu_xcp_mgr *xcp_mgr, int mode) return num_xcc_per_xcp; } -int __aqua_vanjaram_get_xcp_ip_info(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id, +static int __aqua_vanjaram_get_xcp_ip_info(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id, enum AMDGPU_XCP_IP_BLOCK ip_id, struct amdgpu_xcp_ip *ip) { @@ -590,7 +590,7 @@ static int aqua_vanjaram_get_xcp_mem_id(struct amdgpu_xcp_mgr *xcp_mgr, return r; } -int aqua_vanjaram_get_xcp_ip_details(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id, +static int aqua_vanjaram_get_xcp_ip_details(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id, enum AMDGPU_XCP_IP_BLOCK ip_id, struct amdgpu_xcp_ip *ip) {