]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfs/blocklayout: Fix compilation error (`make W=1`) in bl_write_pagelist()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 4 Feb 2026 20:21:49 +0000 (21:21 +0100)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Mar 2026 01:25:09 +0000 (21:25 -0400)
commitf83c8dda456ce4863f346aa26d88efa276eda35d
treec7921605565627376c00f7e1b4dfe8d5fedf4318
parent45cd458b57feeec639af3d7da05ce8c290d0179b
nfs/blocklayout: Fix compilation error (`make W=1`) in bl_write_pagelist()

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 <anna.schumkaer@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfs/blocklayout/blocklayout.c