From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BD1133E36A; Sat, 30 May 2026 17:18:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780161506; cv=none; b=jJbgyRJcVAYhN5NttRtY548a4+naIM1l2ZShHLfhX0W+FGTrqdoXW0q41VsNgJqlL7UwKK8YyYMmmoBBW5XMWO1PndmaKFW2mvNp3yubyXBA0AC5Qw4a2/TtpPYDf+a8v1+XZ7T1IdjOoQGXHnRr0ydYK9du5dlcp4LfaSEQP6Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780161506; c=relaxed/simple; bh=9sRBue1XkH9LNyncE2LGmTznjlKX0URu2uy1M65z+WQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=stwwu5vLDA0DzYts7Gwh5t8B786Dh4zHEhQ5PtbtCJgoEdq/d0fzdbWEqeN0R1z5OphsbAuuqs/uM4OqiSmZUmUqvRNHNdgyV2s4iQJmzHif2nLm2l4nwhp86P0qcBBnSFrtjR8/E8DzcgET7wArieuu7tZSJBpKIGyQdBGWUsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K7kRmIRe; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="K7kRmIRe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 937E91F00893; Sat, 30 May 2026 17:18:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780161505; bh=2v9ArV/RHxragM/dVbR8RUqLNjmGehvWxiO5DPS3aO8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=K7kRmIRep1R3dQ4m/rgVPUClZT6wW1u00bkkgWHSxUFRtecQ8NSMJoBDm6ctHB/6O ppMTGyrYVkiX4ZXZs0q9n+PRnIQXN13UCPCOVUarIsgtlQ1pjII5R3P6ITq23zU3Gk FrZPxXlxWDZRW9QBHlnSojmZojBy7xx6OfPWhii0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Anna Schumaker , Jeff Layton , Andy Shevchenko , Chuck Lever , Sasha Levin Subject: [PATCH 6.1 644/969] nfs/blocklayout: Fix compilation error (`make W=1`) in bl_write_pagelist() Date: Sat, 30 May 2026 18:02:48 +0200 Message-ID: <20260530160318.241540543@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160300.485627683@linuxfoundation.org> References: <20260530160300.485627683@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Shevchenko [ Upstream commit f83c8dda456ce4863f346aa26d88efa276eda35d ] Clang compiler is not happy about set but unused variable (when dprintk() is no-op): .../blocklayout/blocklayout.c:384:9: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable] Remove a leftover from the previous cleanup. Fixes: 3a6fd1f004fc ("pnfs/blocklayout: remove read-modify-write handling in bl_write_pagelist") Acked-by: Anna Schumaker Reviewed-by: Jeff Layton Signed-off-by: Andy Shevchenko Signed-off-by: Chuck Lever Signed-off-by: Sasha Levin --- fs/nfs/blocklayout/blocklayout.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/nfs/blocklayout/blocklayout.c b/fs/nfs/blocklayout/blocklayout.c index e498aade8c479..15f66d949adda 100644 --- a/fs/nfs/blocklayout/blocklayout.c +++ b/fs/nfs/blocklayout/blocklayout.c @@ -381,14 +381,13 @@ bl_write_pagelist(struct nfs_pgio_header *header, int sync) sector_t isect, extent_length = 0; struct parallel_io *par = NULL; loff_t offset = header->args.offset; - size_t count = header->args.count; struct page **pages = header->args.pages; int pg_index = header->args.pgbase >> PAGE_SHIFT; unsigned int pg_len; struct blk_plug plug; int i; - dprintk("%s enter, %zu@%lld\n", __func__, count, offset); + dprintk("%s enter, %u@%lld\n", __func__, header->args.count, offset); /* At this point, header->page_aray is a (sequential) list of nfs_pages. * We want to write each, and if there is an error set pnfs_error @@ -429,7 +428,6 @@ bl_write_pagelist(struct nfs_pgio_header *header, int sync) } offset += pg_len; - count -= pg_len; isect += (pg_len >> SECTOR_SHIFT); extent_length -= (pg_len >> SECTOR_SHIFT); } -- 2.53.0