Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp251226rdb; Thu, 24 Aug 2023 05:22:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEsFwhCUyRxEYNIZYYXJuXaPN0zwFITzyPo8WSuwSIKNqMtSY+IIMJ6ogA1vuGKVFcpxOZx X-Received: by 2002:a17:902:e842:b0:1b9:d2fc:ba9f with SMTP id t2-20020a170902e84200b001b9d2fcba9fmr11522194plg.11.1692879723825; Thu, 24 Aug 2023 05:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692879723; cv=none; d=google.com; s=arc-20160816; b=VnElEYQnhXpwaX5VLqf1/NJ8Rnavw9V6vlyc+Ues9utQ9FownHdYa6KmJlaGBPshGF rexdrJFBdyNrqXbIm+1sMmHbqSbD7vXPTH1wYHFiXz75ehqMhFiGuGuyxO+Fmpyy0bKz hAYR6UKwa0ajNZ6PIorU32U6hWkPbQY9XUjIY51P7IXFFDjr1SYZzDVJF7mDVulzLMFw fMEV8dfMOwcaVQARnoohSLHP1hMFuOlONLI1aVRGG5ujBtYO4e6ACqasqFaweSk0mOrP g96ZwKzF8/uJHw9N6tDJYu/xge+nwQ67wjStGzGbrnbrwWLyjzphbLgL5GDKMai2MEW7 qBnA== 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 :dkim-signature; bh=ufNnOs0ZLr1L4r670+0m6oXCfXJhy9JPaZjLSOVPLaY=; fh=qM7ahnNT6ax8nTtV+d2lgR1WzVR/hzDcCPZAG7QPyr0=; b=kwWHe8wZdoWwD3iNXjDO1xCRyKMh27aT1fk6rZXfXmvLqa3WruFki8L2Lu8B6ZIrLC 4BSB7TIE7s3dqB2jaFln8iD9bXeM2EF4BhJw2tsXdtTHVXn1gHsot/ngqZMfHI4a96Wc f3TfKFz1M3Tg6eNzMMOGZPw8ChvcFNjyknjjT13kiMEDFLbX2EaBe56W+m87b84AJueW yJBCXpXfwh0rzU72/mdbtvBm138SPc6TF7NS4cUWxzb24Vtu63TgOWL881o/I0n3ObNU 3QqWmmPnJ9hvu2rpmrTGA8r8kCdfQz8/NjeQkc7A0Xq3/exzQyNUQFHi/G6365+wUwjD k+1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RivULTOG; 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 t6-20020a170902bc4600b001bf095dfb7asi12948292plz.231.2023.08.24.05.21.50; Thu, 24 Aug 2023 05:22:03 -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=RivULTOG; 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 S237138AbjHXHiO (ORCPT + 99 others); Thu, 24 Aug 2023 03:38:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234842AbjHXHhn (ORCPT ); Thu, 24 Aug 2023 03:37:43 -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 3B05B171A for ; Thu, 24 Aug 2023 00:37:33 -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 C2ACE63563 for ; Thu, 24 Aug 2023 07:37:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98710C433C8; Thu, 24 Aug 2023 07:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692862652; bh=ULoT4xiGDsZ/49nzjhaZ4WlyHHbCZpDKQ/kYHF8Vd1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RivULTOGOMhM1DQ1x0DZUUPJ19A+e6tvQdz1LzH+MYLGfUuL29SUEZHNT5QwwEpN0 T6PW3M94RVzsv927M65+YN4TrSgMq9lJT7utxwQR5yEgqm0IgMgoOQa9sV3ethH6KU xclueLZFf4h9rDqsmFZGE6ATbYiU+E2LBlWhDBioWXV3vQ3WGPn1ON8AaYO5zgaJ1A S2qjwiLpUQC94SL7BAGYM5pKBz+xdI6SfSnEQ6Opr+SfgKJ8z0Di0ik3eF4pt8cf3N pOkY2BOy6V5lRLIsqDLusCGckDB9KisLWWQ4dUY4Cfkp2jp9iyrtO3ZtsOvXV88466 J5ziVj2eqqWng== From: Lee Jones To: lee@kernel.org Cc: linux-kernel@vger.kernel.org, Ben Skeggs , Karol Herbst , Lyude Paul , David Airlie , Daniel Vetter , Gourav Samaiya , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org Subject: [PATCH 02/20] drm/nouveau/nvkm/subdev/acr/lsfw: Remove unused variable 'loc' Date: Thu, 24 Aug 2023 08:36:47 +0100 Message-ID: <20230824073710.2677348-3-lee@kernel.org> X-Mailer: git-send-email 2.42.0.rc1.204.g551eb34607-goog In-Reply-To: <20230824073710.2677348-1-lee@kernel.org> References: <20230824073710.2677348-1-lee@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 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 Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c: In function ‘nvkm_acr_lsfw_load_sig_image_desc_v2’: drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c:221:21: warning: variable ‘loc’ set but not used [-Wunused-but-set-variable] Signed-off-by: Lee Jones --- Cc: Ben Skeggs Cc: Karol Herbst Cc: Lyude Paul Cc: David Airlie Cc: Daniel Vetter Cc: Gourav Samaiya Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org --- drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c b/drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c index f36a359d4531c..bd104a030243a 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c @@ -218,7 +218,7 @@ nvkm_acr_lsfw_load_sig_image_desc_v2(struct nvkm_subdev *subdev, const struct firmware *hsbl; const struct nvfw_ls_hsbl_bin_hdr *hdr; const struct nvfw_ls_hsbl_hdr *hshdr; - u32 loc, sig, cnt, *meta; + u32 sig, cnt, *meta; ret = nvkm_firmware_load_name(subdev, path, "hs_bl_sig", ver, &hsbl); if (ret) @@ -227,7 +227,6 @@ nvkm_acr_lsfw_load_sig_image_desc_v2(struct nvkm_subdev *subdev, hdr = nvfw_ls_hsbl_bin_hdr(subdev, hsbl->data); hshdr = nvfw_ls_hsbl_hdr(subdev, hsbl->data + hdr->header_offset); meta = (u32 *)(hsbl->data + hshdr->meta_data_offset); - loc = *(u32 *)(hsbl->data + hshdr->patch_loc); sig = *(u32 *)(hsbl->data + hshdr->patch_sig); cnt = *(u32 *)(hsbl->data + hshdr->num_sig); -- 2.42.0.rc1.204.g551eb34607-goog