Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1756130rwd; Fri, 9 Jun 2023 01:27:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5tCXke8fU2JuQsSd29g0I8AOeW5lMdiVj3YttUCf1mRGWwcaKKzBUtH9Of4sbpUSl2g0lL X-Received: by 2002:a05:6a20:4291:b0:10c:37ed:3e94 with SMTP id o17-20020a056a20429100b0010c37ed3e94mr4931317pzj.28.1686299245000; Fri, 09 Jun 2023 01:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686299244; cv=none; d=google.com; s=arc-20160816; b=CP5vczIdAcTn0KUKOM3PLAQQNT9p5BSlYY+weB4lr1Ip2TchG9iEwr70LM3bCym4vD 5rwp+c3w+ENH5kiN8MHGZ97JepX/LlhNxw+PDVUThkzoIwnabQ5qd/MyBB7EyFcFuPjO vRZy0B6dOhb24plmEhUg7IiYRUqw6CWD6fNk7hJCwY3lom70hwRrX77x4YPdlskLl8ts 4JpSgZKY556Y9HZRNYMFEG3VLzIzhxq3vSjYd9kEokhslt/wkV6R6LK5jKQul4se5rt9 jfO2KZEDYsS2egEBA1usazOCcqBM19alH7B9f+0BKGzYcj7KSV7MRWhZKhmQREv6xq9l cx4w== 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=uPUVWut9femRvmBhnzpwruimcFx8q53h130cEwwAAfg=; b=cx0YMTTVS7dKQUJ/ZAruTtkdkRzNSl7lMf3V++lT2PiU8FjAKLUVq2JdBTP21PNAbm EPz5NlnroC2O62WJ67kqSy4AiADHBLGqxqLDhqFlgpkNb6rGvL+4agRaPL8Fi9W2XYql cHRt1WFl8My7YRmABBxBYIXqJLpfpfpeg39GAQkv2BgF1HOnNYMPKAhe4MUqllQEUI6g QI3aLGuq96uMTz6pfA37Vn0QpKH4lpt/XpucYAtL5tfKC+Cbvjjnw8UeiPm2aQgi8AXJ MExA3DNhDqTGkX7IpmCjqxiG4neyAmcF+WnNjtkm9hr37xlZAjIMxXE0xdyigfnr1SoT wJTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lrM08NU/"; 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 f13-20020a63754d000000b0051374678f95si2128156pgn.808.2023.06.09.01.27.12; Fri, 09 Jun 2023 01:27:24 -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="lrM08NU/"; 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 S240337AbjFIIUQ (ORCPT + 99 others); Fri, 9 Jun 2023 04:20:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240400AbjFIITm (ORCPT ); Fri, 9 Jun 2023 04:19:42 -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 7E3B64228 for ; Fri, 9 Jun 2023 01:18:23 -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 0FAC765476 for ; Fri, 9 Jun 2023 08:18:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D2E1C433EF; Fri, 9 Jun 2023 08:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686298679; bh=4OOUF/ysv6+g/EYobM5DFqzUmhksGsgNibALRCne10Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lrM08NU/TNcTOa4aa43rG6Ow5ypxWfYIfpqP3DKV10rSJC8k009h8xtD2bXajOV9s WvuDzj7pV4j28I0gl6bjmyuIHsXj9MomOpnWDHx9K3/mcBn2nFeJ1mi1ZE4SdBvnyI y0ggX15wASY/8gCJVPz11NlgZ+1/5svac5vlFUh7BNq0yyDjcLWP1KeqbWN5YaJ6At gehgITgO1vPHEAzIdT5bF1sGH7yxga+ng++spGWxtaKd+C1G8VRgiOmOgI78WC/tNQ oY4tHa1oyZbHcL4Pom7ebnUims/vZ3mNlMRIMhX09hb8g6kydCCLT2fVjTPRcPb9J1 Fe+Ewb/UapYng== 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: [RESEND 06/15] drm/nouveau/nvkm/subdev/acr/lsfw: Remove unused variable 'loc' Date: Fri, 9 Jun 2023 09:17:09 +0100 Message-ID: <20230609081732.3842341-7-lee@kernel.org> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog In-Reply-To: <20230609081732.3842341-1-lee@kernel.org> References: <20230609081732.3842341-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,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 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] 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 Signed-off-by: Lee Jones --- 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.41.0.162.gfafddb0af9-goog