Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2411886rwo; Thu, 3 Aug 2023 09:01:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlFuF5F0AfZ+D/h1sCCU2q278zUsLB2E6pzj+dFZAbOpb0b0mJEMsP/oBtHUxFsK9VQ3c49C X-Received: by 2002:a2e:9257:0:b0:2b6:da1e:d063 with SMTP id v23-20020a2e9257000000b002b6da1ed063mr7690489ljg.45.1691078503024; Thu, 03 Aug 2023 09:01:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691078502; cv=none; d=google.com; s=arc-20160816; b=Yh7PrfEk13Afbc+fjn3I/Dw/xP0ynQnmHhkCouI7Yn+26FYgRX2Q110su3qK81XJV8 tqSxBMeBeN2dVi3EeCym6bxTfyBQE3BuVO1SuoUvQys2yU6utmHwQQoBxLH1hFVzvA3W VqFbgujNzoOngvmY0Z3y/dIJ5mupVOWmqTS1In5LpBFXR1xnSHB8sTzqPFGPw29OYXCZ VL4smfWeSCsgShK1rlZfIaIdQPPhGR7mt+nMV2pD9Q2aZEnyjjQHxYXRwph4z1PX6OCO 2sPhNVPNallwxANxE1cY3cV9NClgzXZk3gobg2OJEiWPifoWP6tHVB7a6k8h+2RXeAW+ 0Fgw== 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=sCzZTDDawK2H+K71NjnrPbYa7eSYQm+v6YR0kImOmxE=; fh=8RBEEnUJqETVlM/0czRsDnWtLonNCTdbcdeFb9/nRKc=; b=Sdnf/niIEqcg3120n3+9VdNsS2KD+WqoD2NGatRldvjsQlw7tx577fzMlNPS1J6AgY Ygl7nETJR5EvSci759yv3Os+5w8KQGO9dS7Zz9MNxLlZI+cLG1ZdAQbmr5QbExJg4mvq Znb+2rj9kOUwkL75IulEgbjb89DSt1tGlQajqfbrJT8Tg9tu/bZZjAeHoa/11N2ANssx A3xN+sdG0/WDi2x3jZs7Vb6nVplJh5w6UClmcksFoUDMJyCHuUAozf3c0oCzy+MhTgkh KHvSpXvxSj4munpu+EkmkmZJfa33kIxb9gjNqTp1vJlSOQ69PqYTgT4f+HwJegNOpVkJ YP9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rh87W65x; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z23-20020a1709063ad700b009889b69c1edsi6533ejd.697.2023.08.03.09.01.09; Thu, 03 Aug 2023 09:01:42 -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=rh87W65x; 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 S236676AbjHCOgE (ORCPT + 99 others); Thu, 3 Aug 2023 10:36:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235233AbjHCOfq (ORCPT ); Thu, 3 Aug 2023 10:35:46 -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 456CD1BF9 for ; Thu, 3 Aug 2023 07:34:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 59CD061BF4 for ; Thu, 3 Aug 2023 14:34:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01B67C433C8; Thu, 3 Aug 2023 14:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691073277; bh=0DpbPzG9n23TZQeqpKKQPbDUpRX8JjTwBICXpo5IiuE=; h=From:To:Cc:Subject:Date:From; b=rh87W65xGsDgaEj+p3vHUxCrL38a2Z8HUDTO7uEoRnRDJA1oBiKC5WEQ1n0cNmlIy M9CBQi7dfHpjtWngHcTYTmR1hCsbbytl4YpaudAAytGg/GwbmBfLT68qa82xBSdOpo lhATEu/FizKT3Py0aCK8wy+/ZmZ1LMh2sqPKM3eszeLGtjDeKQt5l6jybIFTVHU0Si SuAikNmL3ou9Bqrj21w/+/DAHFvC0Hksk5Aah6kSVVe5ajgnwuHFNDPRPy9HNFCyoN pF6KaViF/Aj2WhmhgsdfuIR37iD62/2x68Oo3IGhAggWg9RjsOotKjyEA45F6gZ/Dj QlsDvYfMJa1BQ== 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] [RESEND] drm/nouveau: remove unused tu102_gr_load() function Date: Thu, 3 Aug 2023 16:33:48 +0200 Message-Id: <20230803143358.13563-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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' Another patch was sent in the meantime to mark the function static but that would just cause a different warning about an unused function. Fixes: 1cd97b5490c8 ("drm/nouveau/gr/tu102-: use sw_veid_bundle_init from firmware") Link: https://lore.kernel.org/all/CACO55tuaNOYphHyB9+ygi9AnXVuF49etsW7x2X5K5iEtFNAAyw@mail.gmail.com/ Link: https://lore.kernel.org/all/20230417210310.2443152-1-arnd@kernel.org/ Signed-off-by: Arnd Bergmann --- I send this one back in April, and Lee Jones sent a similar patch in May. Please apply so we can enable the warning by default. --- 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.39.2