Whamcloud - gitweb
LU-16518 osc: fix unused-but-set-variable warnings 82/58182/2
authorTimothy Day <timday@amazon.com>
Mon, 24 Feb 2025 06:18:11 +0000 (01:18 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Mar 2025 08:08:52 +0000 (08:08 +0000)
commit08ccf5e4ec6fa5461435d8cc89369f6fa81ecacd
tree6563bff4d3f4ed1cfad95e1e2fdb4b3ded5faf84
parent0831670f2bb195dea61b79345702c7c657452411
LU-16518 osc: fix unused-but-set-variable warnings

When CONFIG_CRC_T10DIF=n and osc_checksum_bulk_t10pi() is
a macro, Clang generates compiler warnings for some of the
arguments - since they are not used elsewhere. Silence this
by creating a proper function.

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I502dcf1764602711fcf2cf3553ad6d2f4fed3f14
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58182
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Max Wang <wamax@amazon.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osc/osc_request.c