From patchwork Thu Apr 20 08:47:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 85788 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp186915vqo; Thu, 20 Apr 2023 02:07:46 -0700 (PDT) X-Google-Smtp-Source: AKy350ZPpHxgFhXWS+jl/cPeJB49DlBXtehsJeleXAsv9x/bSu94anZcUcy4p5ux3sDG/Tkdo8E2 X-Received: by 2002:a17:903:124f:b0:1a5:2760:74ef with SMTP id u15-20020a170903124f00b001a5276074efmr1056982plh.25.1681981666406; Thu, 20 Apr 2023 02:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681981666; cv=none; d=google.com; s=arc-20160816; b=obMS4JWKY136apK+lJtp+OcJsg9qIerGDN9zFff7lSCTIHRzn7u/Zf6UaEsZVztAhs lZBdY+dnSEtuNVrh9F5CSUgFJYJ6n0VrPZiOfxWEU7M9exVmz6i3FeCLFN9exv5NTIdI bsNpcsDZNGmRFThSzIJpeZsSGFLRq/qwhJMcYLxX4WUUxka5zBGGJXWnHiiroBqk9bHT L8ekmunqZTTpmsOVFRtnBnCQzWzT3qGDzxngAsuHmQWuR1Xayi6WK85OqS6lKTW1/iGT MVDR1d/ZOozHSfegBwVoQ5YRLJ9OFuWfEsxZxeRWYFuQfzSY0BHqf2WiJhm3BkPt3KOv K3hA== 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:dkim-signature; bh=tDtwRfnxomnUgCZF+dlKLZwCAz0TN3pBdlYRd9hiQXI=; b=1LyCKw5VFTNirgAZTBWALNWetONqhY/jIgjM+xL6xRlQr7pvc+pQHBhL4JgRdz4f4z NTRBV1k+WNRaRr5FQBK7x+sO14RxYqo70ifdcSxIYiUXCCw42M83qfvGB4WgU4tgIks1 Jn55UxMeHhnttkD/khRH1kEWgVscY0yu7iDIEvN4jKIGrANQixh1v9XRdR3z8SMBjvT4 JH/GYGsorwWVA4rnuKZ7ClPxjTckG1igBKMBmCKJlqjIeze+06Tf7MD6FOX+AowgIMMC Db7Q2rBm156zzvn0laFuE/bXQTO8tro6wAa4fBx9pnRt0NSIwccjGlwmgw1QSqwssC1J Jhyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ViTEOfcP; 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 p9-20020a170902ebc900b001a922c7f51dsi1372877plg.172.2023.04.20.02.07.32; Thu, 20 Apr 2023 02:07:46 -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=ViTEOfcP; 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 S234510AbjDTIrb (ORCPT + 99 others); Thu, 20 Apr 2023 04:47:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234316AbjDTIrT (ORCPT ); Thu, 20 Apr 2023 04:47:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E30F19A9 for ; Thu, 20 Apr 2023 01:47:18 -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 E63EF64616 for ; Thu, 20 Apr 2023 08:47:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF976C433D2; Thu, 20 Apr 2023 08:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681980437; bh=uADxxtxxbjR1ZmBmGvPD7EU2EEluZLYB+5f1TqvzOxs=; h=From:To:Cc:Subject:Date:From; b=ViTEOfcPaOYEWW6eyaRDKjG09tmHwSLtnm4Cljj4u20xjKIKZpyXkQO27yc4pIrI4 tOSLhFA6R+2a7n9TDWtFgvtYuKFKX/PtfWkyV4+FspVRe5iNDXFqaWVE3arjpFO5Qh ETNPK3v2QOh3+Q4rCoxgk3HvJhYsMaHrTo5VhjN/3DPrQu+BTPbIabLzE2/55ssA8z q84IQU5rq3vBlW2TVlxKi/ax0nrc2ZkU7Izm8MPS4XxQ6PHfbyMxymCAGJ32e05yf8 1nxyYUou7XEYImRNo0SltMmngP+iGObZ+r2F6zA7UKmJ8nf9922LaTkpdtsPJwvFcP GK7HNXCZEtHFA== From: Arnd Bergmann To: Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Hawking Zhang , Le Ma Cc: Arnd Bergmann , Morris Zhang , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] drm/amdgpu: mark gfx_v9_4_3_disable_gpa_mode() static Date: Thu, 20 Apr 2023 10:47:00 +0200 Message-Id: <20230420084711.3063453-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 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?1763685608008770164?= X-GMAIL-MSGID: =?utf-8?q?1763685608008770164?= From: Arnd Bergmann This was left global by accident, the corresponding functions for other hardware types are already static: drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:1072:6: error: no previous prototype for function 'gfx_v9_4_3_disable_gpa_mode' [-Werror,-Wmissing-prototypes] Fixes: 86301129698b ("drm/amdgpu: split gc v9_4_3 functionality from gc v9_0") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c index baa10ee8ec69..5d3aafba1f8e 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c @@ -1069,7 +1069,7 @@ static void gfx_v9_4_3_init_pg(struct amdgpu_device *adev, int xcc_id) } } -void gfx_v9_4_3_disable_gpa_mode(struct amdgpu_device *adev, int xcc_id) +static void gfx_v9_4_3_disable_gpa_mode(struct amdgpu_device *adev, int xcc_id) { uint32_t data;