Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3989462ioo; Wed, 25 May 2022 12:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSbSgd+zMBPhachO/jkhhDAhLCOXRq0Uqjb5wo18T9mXGnk5J83EEXNrWBIaspr1TY1o+t X-Received: by 2002:a63:d813:0:b0:3f5:f9d8:7cce with SMTP id b19-20020a63d813000000b003f5f9d87ccemr30162956pgh.585.1653506078614; Wed, 25 May 2022 12:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653506078; cv=none; d=google.com; s=arc-20160816; b=JLUaFmGbHuJtyIcFsBZLuwNsPM46JQandiQ8Pxe1+4Ds21cxsuYJSGOOTB4Pxf7yn+ PiIi0eu6nwki6gePznnAZXLZie0OFZOzY6ODvN/Q1TYFt+LAB7L/HdAGeFYW9mziqmTP 5zDRyIJQCY1CvN/BUNnuP8wX5vnopPvWCJsJgdnZ/2E8c+XsAucww15arjHE9g7S4pQj kroiPmsxho6WgRYMWvEKpoLfVXpnAvtZIAeg/UNg6vO4HC4SImoHdntPFyppoESq/9tE p/QcbV3i/LUo2z0P3B0TejjYTK7aFh8K+7Xp5u7o7K87TSUHvXCCI+GwNnCKRE08BtKb NVBQ== 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=5IDdVNABe7HmNrv72Z9tKPFwmwtml47vhObFhJlC4kc=; b=bUf+LRY8UMpvryWFlLinlCDHw532AlOfWU46WvmZY6YFhSmkhKq6BPRWvnAk6Zlpr0 LkOAwNvER7DasJovpzSJDLW60fJEZPpVK9GJFJ7Ap7LwzuStY0sITDH5iI4pbzIpHLcV OgpQrS8gGyfqA1IV425pS6Q+yqoqYxKn/heCeC/yrHk76YVEGpXRSyqGaY9ekzuzkeKi J32O9UfnlD8htC9cXDd7TgSDz292LpVWpcoz+hzLqsZR5d4oHajyCyPsATaAZk3hnoGF 0WzTwFPjHCj0xi82BQxE83RC93+TsBRlHOoX/nat4V7vJGULNdJ3BQrpBMx/iAhTLNwK D6Dw== 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 j8-20020a17090a588800b001dc40c6c7besi3640595pji.53.2022.05.25.12.14.00; Wed, 25 May 2022 12:14:38 -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 S236232AbiEYJhT (ORCPT + 99 others); Wed, 25 May 2022 05:37:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237722AbiEYJhM (ORCPT ); Wed, 25 May 2022 05:37:12 -0400 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0876EA454 for ; Wed, 25 May 2022 02:37:10 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R421e4;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=10;SR=0;TI=SMTPD_---0VEN0eTg_1653471423; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VEN0eTg_1653471423) by smtp.aliyun-inc.com(127.0.0.1); Wed, 25 May 2022 17:37:07 +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] drm/amdgpu: make program_imu_rlc_ram static Date: Wed, 25 May 2022 17:37:02 +0800 Message-Id: <20220525093702.57166-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c 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,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 This symbol is not used outside of imu_v11_0.c, so marks it static. Fixes the following w1 warning: drivers/gpu/drm/amd/amdgpu/imu_v11_0.c:302:6: warning: no previous prototype for ‘program_imu_rlc_ram’ [-Wmissing-prototypes]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/amdgpu/imu_v11_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c b/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c index 5d2dfeff8fe5..d63d3f2b8a16 100644 --- a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c @@ -299,7 +299,7 @@ static const struct imu_rlc_ram_golden imu_rlc_ram_golden_11_0_2[] = IMU_RLC_RAM_GOLDEN_VALUE(GC, 0, regCPG_PSP_DEBUG, CPG_PSP_DEBUG__GPA_OVERRIDE_MASK, 0) }; -void program_imu_rlc_ram(struct amdgpu_device *adev, +static void program_imu_rlc_ram(struct amdgpu_device *adev, const struct imu_rlc_ram_golden *regs, const u32 array_size) { -- 2.20.1.7.g153144c