Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2671958ioo; Tue, 24 May 2022 03:25:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlPSBMNxbBbUqWiF/29MiOQDjzrJvdnn5rjVeCKQgy5rPvwKzIfBKddS7DFJ6K6KMb+iJf X-Received: by 2002:a17:907:7ba9:b0:6fe:5636:1636 with SMTP id ne41-20020a1709077ba900b006fe56361636mr25062907ejc.463.1653387909536; Tue, 24 May 2022 03:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653387909; cv=none; d=google.com; s=arc-20160816; b=WD6Do4T3hKZmintmffgPWZ2/zga6jA5OmaggZn+R1CEZoDxDEJqGOlQ1CQIFmAmEC0 OLxhXjoMzykI0piTRAc72wxLtGTSDC+jLr1g0A0Gd3/7AMwdBAu67R4ADnudtomKtdFk ES2GzZK1HLQow+Y9oIz+QIdEn0BqIDlW7DJg1hIDwTlZeiq8sfZryy0BQ5dFM33TIqrM GL7KY6Npt2wzN/yZzAjcdNaCbXx5yXfIJOzL2/TccTzxz4gtLogCBHq7j12YSWDEUQJk 9K6ccmkC0qlZO7n2OdgQ1aUKMWmUizFjgHRWxAoTmuymNFPneiSncVVqZiNZs7x5Wwlp SPMw== 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=KB7Q/CvLCVXdqkd7xdjQxk51xRSOx1vRrSuZaaPia64=; b=rJGu83CZqxfvwGviaTcD4qVSKBf7XxP3EZxFchUfzTPGp7l0c77WjkGE+pKBSi1Y0S Pm0ihqQlDS9LhtDJJlmLXMeqQiruHcKdl3G+JLKnYkBPXXVw8sSYr2C4iLGSKYYFhLwl Iz3a8p32iiq5Grum5KXf2nagXnERw/eE4iNH+8EoKcd4D9IqMFSK4omVrlYq2stPCrbB jCyPQuSq4oHMbrIaWkWms1mHXq0XMMzZnuCC8AuoHpFBzoe3/3iOk/TdZqVcf2MoExh9 3EuO7Kc2S3IlySS5aCK7bGL4jUCRnTZnZfKbhkV7BzNk9iiuVB7KPCckF7YU+Kx8z8Zd Ui7g== 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 n21-20020a5099d5000000b0042839620d77si12124712edb.631.2022.05.24.03.24.42; Tue, 24 May 2022 03:25:09 -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 S231410AbiEXIMM (ORCPT + 99 others); Tue, 24 May 2022 04:12:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231481AbiEXIMK (ORCPT ); Tue, 24 May 2022 04:12:10 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E15562FFE5 for ; Tue, 24 May 2022 01:12:07 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R711e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0VEHD8XS_1653379916; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VEHD8XS_1653379916) by smtp.aliyun-inc.com(127.0.0.1); Tue, 24 May 2022 16:12:04 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, Likun.Gao@amd.com, flora.cui@amd.com, yifan1.zhang@amd.com, luben.tuikov@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm/amdgpu/discovery: make amdgpu_discovery_get_mall_info static Date: Tue, 24 May 2022 16:11:54 +0800 Message-Id: <20220524081154.35061-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 amdgpu_discovery.c, so marks it static. Fixes the following w1 warning: drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:1364:5: warning: no previous prototype for ‘amdgpu_discovery_get_mall_info’ [-Wmissing-prototypes]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c index 881570dced41..16cdfb30b013 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c @@ -1361,7 +1361,7 @@ union mall_info { struct mall_info_v1_0 v1; }; -int amdgpu_discovery_get_mall_info(struct amdgpu_device *adev) +static int amdgpu_discovery_get_mall_info(struct amdgpu_device *adev) { struct binary_header *bhdr; union mall_info *mall_info; -- 2.20.1.7.g153144c