From patchwork Mon Apr 17 21:03:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 84464 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2404272vqo; Mon, 17 Apr 2023 14:10:45 -0700 (PDT) X-Google-Smtp-Source: AKy350bBxxn/YXBK8QS1eeBk/H+jvVXJpPLO3fhlokt1Zhk99QOooC9ragqFrmmAYc5+BHs08uAP X-Received: by 2002:a17:90a:588c:b0:244:b000:d8e3 with SMTP id j12-20020a17090a588c00b00244b000d8e3mr15938593pji.45.1681765845388; Mon, 17 Apr 2023 14:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681765845; cv=none; d=google.com; s=arc-20160816; b=wNzxQoTRg8YVHLeWjYex90KvoE8RvYpHVhBKV1VwnGIIO5wTZONBIEoPXenkaW3NzA p0zt8AyWRWR2TFU+LVrnNh1NBM9wj3DA5NbKW9h+tnRBRm50eYyvUsRt/MpwtKMqgwHj YDRvPg3PZjbnKKOh+Lsf4TSKSLG+bnwrBX9ONw3g32NvovF5lcARfzlkHxtLsrVcgPaS a/mAWaJk6HJayW8b5UsNpaghws8NldO2vINAu9DqjHnGUnb8bn0XW9Z+Jd/rg3lfjTMg e5sV4Rzno4gJrNE1DVPFSEmXTWBUTuWutOTvPrkgwxvNzXwO+kkKi0BNlW0EZ50j7R4J vzzA== 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=bMEMl/mlkagAl6dR3cV/vrJ0PvbQTRDppOnO4w+X+Gk=; b=WE/Dm6hkuzzI/Z+3EnAWs2R7Y4Jqcxdp+hLblvKyVLgG8IT57ePNkdyRD0RKaWxOAE 6n0dEUfuLY8dj9yPu2KpFbSrOD9afE6h50wanGsutCLk+MUv8Qs+Oa0sJCM7FwcNTXu/ ZfDhJfrKalVcTNMx+2HsZ/xqUFyosMRbABcM9PV5GV6G640hfY4PTZguGXdLJrDmESjk KWN1MG6/MJhuI2bT1pjiQaD3u06UcdMT+8V0fWDjTw7GC92eImeoof/6tDrcY+4KWZ5z tJfaKypkDizzjnmrIuKgDudfquar2k7UeEo30oqkQvc3OK49Qho1CYdRVPgU8SryDdVs f09g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uYSogoOg; 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 f10-20020a63dc4a000000b004cc67cfc92bsi13538370pgj.97.2023.04.17.14.10.32; Mon, 17 Apr 2023 14:10:45 -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=uYSogoOg; 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 S229585AbjDQVDT (ORCPT + 99 others); Mon, 17 Apr 2023 17:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjDQVDR (ORCPT ); Mon, 17 Apr 2023 17:03:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3759137 for ; Mon, 17 Apr 2023 14:03:16 -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 0A875623E8 for ; Mon, 17 Apr 2023 21:03:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39E1AC433EF; Mon, 17 Apr 2023 21:03:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681765395; bh=6v5l4vPJTur+E1/6K1HeqdG2RoCvkceddg82nGQhHzo=; h=From:To:Cc:Subject:Date:From; b=uYSogoOgT3vkHqwAHouEmEcZ1WY9ayQbD/3q4D41z4V5W2bvOcpjGr+v+6RcS/ToR ksjBYY8BTb2gZZnZ0G17NgHokSTPCyuics1K/YIDbFQFwiCNJswJzMe8i7FW+6DPt9 52zM9KfWyr7b5MYhgF9JxykVPv/YC3pT2XZXAJje/5IFUzIT1evA79NODj8MbJHPOy Amxip8uDsZS2YSK4nY3QAUDOEEtTN/mY+2GR7t4gnHNpv3MuD+OktfnJchWFgFJ+zn uLpUN1SU8EpmkuHjdaPSKbZtvNshNng42Z2WkAmiA4ZETtmOX+uK9ncFHVzxrHIzq6 DHQ31NPo574MQ== From: Arnd Bergmann To: Ben Skeggs , Karol Herbst , Lyude Paul , David Airlie , Daniel Vetter Cc: Arnd Bergmann , Gourav Samaiya , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/nouveau: remove unused tu102_gr_load() function Date: Mon, 17 Apr 2023 23:03:04 +0200 Message-Id: <20230417210310.2443152-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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?1763459302712557581?= X-GMAIL-MSGID: =?utf-8?q?1763459302712557581?= From: Arnd Bergmann tu102_gr_load() is completely unused and can be removed to address this warning: drivers/gpu/drm/nouveau/dispnv50/disp.c:2517:1: error: no previous prototype for 'nv50_display_create' Fixes: 1cd97b5490c8 ("drm/nouveau/gr/tu102-: use sw_veid_bundle_init from firmware") Signed-off-by: Arnd Bergmann --- 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 },