From patchwork Thu Apr 6 12:51:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 80226 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1000027vqo; Thu, 6 Apr 2023 05:52:51 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2Oc4lIq5VGbegnaIC/g8/PLbJ9U2O+kxCYDWgMi+he5cDiOY+OBUrRdT4UGKsPYOMUaPo X-Received: by 2002:a05:6a20:6a9b:b0:d7:87ce:671e with SMTP id bi27-20020a056a206a9b00b000d787ce671emr2516943pzb.52.1680785570813; Thu, 06 Apr 2023 05:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680785570; cv=none; d=google.com; s=arc-20160816; b=ekYOoV8xg/AA/pQli8vTMT7nP2kt0KHaSRNeMZHApHF/CH9qlqIRSWeF7KbytPnUqL iVMbCn5OapI9oRKXkJ07Jsf/ln8lYds9TPpZOmyj1UUPb31RmGtaq7k2zidJxB1Slbmw jPKE9jFRJbZtMxw/7Rm2OdghFftm9S0ZROfYuzNPwDD3Ckqg/ZlM8JMl+2g+NieqWp7e rd/imoFaC2CkQ7TS+kAZcv2xjPgzk6ZMZbS/GsZeXbaOQsz3lSaq1x5uOMKFKnLAp40g dqWn071lmmExwpy01t7Pz7AVTlIJ76Sl+VqwpSX9WHaKuWswWocX80WhBGOmPV1fnMBT H6rg== 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=a8vJf32VjBTqhSXC4UaNWwEC2++PydY9gb3nY7Y6vs4=; b=XcT+sZhLQDFUpC6xUeG+RjhlQv3qMXsqRIF70AeSsS8UU9FwQLtomEmYPFoAMZV5S/ GnR3M5DV+NTFbbIv5PX1blNd0zU/r63R2f8NqrY9YFqsBNJjRrhuO2KsEKyjbWqltjLM SgxKTLVKGg2esWAJ4/CSK3Clvxyth4oW7zipZBKOeJLBprV6BQxg7IXfa1hzEEPgdw3E DG1g3sIxDJslx27fl8G/+LvWXpoY5umLjE/HI2KJQsF4pzRzW3h6KTI9Cah0yCFCJPEW sa8ejgflZKzLX/ho+S8Kteh3MV6LvqE94Jx29uyc6dY/n3J8llMAhXeiyqpRJN3t6zuB MiCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b4sMLHzm; 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=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 38-20020a630c66000000b004a68aefb7b0si1240901pgm.173.2023.04.06.05.52.38; Thu, 06 Apr 2023 05:52:50 -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=@redhat.com header.s=mimecast20190719 header.b=b4sMLHzm; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235234AbjDFMvx (ORCPT + 99 others); Thu, 6 Apr 2023 08:51:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229989AbjDFMvv (ORCPT ); Thu, 6 Apr 2023 08:51:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BCD111C for ; Thu, 6 Apr 2023 05:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680785468; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=a8vJf32VjBTqhSXC4UaNWwEC2++PydY9gb3nY7Y6vs4=; b=b4sMLHzmMVK7g8LdIS6W1Z4HEMNgYIvsau1uGg1uYRF66/dBu49kwmltEWNF0N1dVfckwQ 0Mi+BelRPA8jKCaJzexNWGOdDTGgbf204Ghi33eflG6kPC1gbhzMKhpWj9JIb9ykOMp62i Fy87gqJWME9bQ9iSO6WegjspHre0JMg= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-177-IQjF4ksjNCWek6j9_AsWDw-1; Thu, 06 Apr 2023 08:51:07 -0400 X-MC-Unique: IQjF4ksjNCWek6j9_AsWDw-1 Received: by mail-qk1-f198.google.com with SMTP id p63-20020a374242000000b007468eaf866aso8199257qka.17 for ; Thu, 06 Apr 2023 05:51:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680785467; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=a8vJf32VjBTqhSXC4UaNWwEC2++PydY9gb3nY7Y6vs4=; b=pRuxH7PumLJ6QPobDT24/1R0JmtcBy4ofAS59KIQtyaEYoR9sXW6oF31EX1CGcDbPW La4ypLteYhkF08tkUfPq3VhvUA54Bv82ERDKFzNqLlRWx/CDgWp6dffxzMQsGTFGxpAW tAFE1Cv28hcFLCknh/pU6unYWLj7vMfE6AlIVEEJXteMbBG1veVPKBKE3nGsPa4ji4Qn vYtbZM4knvZWtnmQCD1HaqlBfo6t8qes0dqsrK3jRjM39wbE9UPx/hAL/jcLNJrOhNNd Z0hmhJKU3+YaZ1CECDbhTxbx0nanzZi2o3Vxhp5xpElexkK1Xxx/CSnhWTsJuvlAyEAr da7Q== X-Gm-Message-State: AAQBX9cze4BakS/c9c0RmePb2wFH25HuUB8hVbhpvj1vBfGweqFNeT48 lbIRU2gwyqNQ7DpaTq7IsuTV6xG3OaCix84BzSsCQi56w4YaCbR+n49CbrFOaxb4RzDSzrs1Mg/ b2cJoZk73a3go3i87PQ1XX6CHdw4vVnFz X-Received: by 2002:ad4:5ca6:0:b0:5df:450b:8002 with SMTP id q6-20020ad45ca6000000b005df450b8002mr4830661qvh.31.1680785467007; Thu, 06 Apr 2023 05:51:07 -0700 (PDT) X-Received: by 2002:ad4:5ca6:0:b0:5df:450b:8002 with SMTP id q6-20020ad45ca6000000b005df450b8002mr4830628qvh.31.1680785466773; Thu, 06 Apr 2023 05:51:06 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id de11-20020ad4584b000000b005dd8b93457csm489252qvb.20.2023.04.06.05.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 05:51:06 -0700 (PDT) From: Tom Rix To: bskeggs@redhat.com, kherbst@redhat.com, lyude@redhat.com, airlied@gmail.com, daniel@ffwll.ch, gsamaiya@nvidia.com Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] drm/nouveau/gr/tu102: remove unused tu102_gr_load function Date: Thu, 6 Apr 2023 08:51:02 -0400 Message-Id: <20230406125102.1952202-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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?1762431410252105186?= X-GMAIL-MSGID: =?utf-8?q?1762431410252105186?= smatch reports drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c:210:1: warning: symbol 'tu102_gr_load' was not declared. Should it be static? This function is not used so remove it. Signed-off-by: Tom Rix --- 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 },