Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1888717rwb; Fri, 11 Nov 2022 01:45:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ZLYE3lg+Tei2tyUfMb4GWNbk8MCfqNMfynem8SpRAC336nklzwx4HH0NHHjJ7ntfKClrf X-Received: by 2002:a17:906:315a:b0:7ae:c0b:a25e with SMTP id e26-20020a170906315a00b007ae0c0ba25emr1127598eje.603.1668159918486; Fri, 11 Nov 2022 01:45:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668159918; cv=none; d=google.com; s=arc-20160816; b=RtS7B34NqMlme3wsL5JxWrWh5ZSTKAO1PKB/+SzgDY4fwGBQpguEJ8yaOqJplZx4dO 8TNa2UFix0OgxW5qUDmr5DITSah3vQwKIzaZ4WTc6cfhKJ3OEnUScR87vR9lNG2T6fRB H4dNn2apVX/GdDmnIDns8F6Ln7CIBREumrA3nwp2ftYFKt8ItiKuMPh4h5sFVJAypsPN viiVV23Ztrahc10NU8I0oVFGj2ZAKmqbOwHKe3O50QfYz4H49+s77y1zm3MnP6FNlZG4 je6q9Kcw6qAge35bn5ZxnzaDMqr3dPDMuX5A+BuXR/mbcLzXIg46meGeBKzus72R/RED F8hg== 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; bh=o5DKZHmSWyaZ5t5NUaGCN7UeDBXC2faEJ6EPk15uHXs=; b=ppeWhqV6CTTO+T4htiBYCbFmhihpL9iVB7BscDyH4PjFDsNVegTac0rYAjdKlLvpW9 y9sVDeGp/Myh9XwIFJa7Nj8BHCYDrapk5bgYSLImaiHYs6BMFmhMAKOod8HxywdcLapm 4TFbmYxF2UQGK/Wf954tBk1l/+IjHz1vdq0ZKkjEKbdq4xjxXl+tFr56fNrjYmldpApv fXww2e8i8GvPD9ti+1epf+7utdKz2PMj2+6oM6Gl/KlWSF5ZygGx4WpSgV2bHXAP1Fam cuUp5vlCHfZySJ1o/6Nw0tXnNvibf/n9khxqKUtwiAKAtIc5/CIriXhe8xEo+Z0A3yPH hs0Q== 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 kf23-20020a17090776d700b0079dccbbf0c0si1281674ejc.146.2022.11.11.01.44.55; Fri, 11 Nov 2022 01:45:18 -0800 (PST) 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 S233379AbiKKJMJ (ORCPT + 92 others); Fri, 11 Nov 2022 04:12:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233614AbiKKJMB (ORCPT ); Fri, 11 Nov 2022 04:12:01 -0500 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B4DE43861 for ; Fri, 11 Nov 2022 01:12:00 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R271e4;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_---0VUWiU45_1668157914; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VUWiU45_1668157914) by smtp.aliyun-inc.com; Fri, 11 Nov 2022 17:11:58 +0800 From: Jiapeng Chong To: bskeggs@redhat.com Cc: kherbst@redhat.com, lyude@redhat.com, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 5/5] drm/nouveau/gr/tu102: Remove the unused function tu102_gr_load() Date: Fri, 11 Nov 2022 17:11:30 +0800 Message-Id: <20221111091130.57178-5-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20221111091130.57178-1-jiapeng.chong@linux.alibaba.com> References: <20221111091130.57178-1-jiapeng.chong@linux.alibaba.com> 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,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,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 The function tu102_gr_load() is defined in the tu102.c file, but not called elsewhere, so remove this unused function. drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c:210:1: warning: no previous prototype for ‘tu102_gr_load’. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3020 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c index 3b6c8100a242..a7775aa18541 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c @@ -206,19 +206,6 @@ tu102_gr_av_to_init_veid(struct nvkm_blob *blob, struct gf100_gr_pack **ppack) return gk20a_gr_av_to_init_(blob, 64, 0x00100000, ppack); } -int -tu102_gr_load(struct gf100_gr *gr, int ver, const struct gf100_gr_fwif *fwif) -{ - int ret; - - ret = gm200_gr_load(gr, ver, fwif); - if (ret) - return ret; - - return gk20a_gr_load_net(gr, "gr/", "sw_veid_bundle_init", ver, tu102_gr_av_to_init_veid, - &gr->bundle_veid); -} - static const struct gf100_gr_fwif tu102_gr_fwif[] = { { 0, gm200_gr_load, &tu102_gr, &gp108_gr_fecs_acr, &gp108_gr_gpccs_acr }, -- 2.20.1.7.g153144c