Re: [PATCH v1 1/1] dm table: Fix W=1 build warning when mempool_needs_integrity is unused
From: Andy Shevchenko
Date: Mon Apr 14 2025 - 06:06:43 EST
On Mon, Apr 07, 2025 at 10:21:26AM +0300, Andy Shevchenko wrote:
> The mempool_needs_integrity is unused. This, in particular, prevents
> kernel builds with Clang, `make W=1` and CONFIG_WERROR=y:
>
> drivers/md/dm-table.c:1052:7: error: variable 'mempool_needs_integrity' set but not used [-Werror,-Wunused-but-set-variable]
> 1052 | bool mempool_needs_integrity = t->integrity_supported;
> | ^
>
> Fix this by removing the leftover.
This issue is still present in v6.15-rc1.
--
With Best Regards,
Andy Shevchenko