Re: [PATCH] dm: verity-loadpin: Drop use of dm_table_get_num_targets()

From: Doug Anderson
Date: Thu Jul 28 2022 - 12:35:37 EST


Hi,

On Thu, Jul 28, 2022 at 8:54 AM Matthias Kaehlcke <mka@xxxxxxxxxxxx> wrote:
>
> Commit 2aec377a2925 ("dm table: remove dm_table_get_num_targets()
> wrapper") in linux-dm/for-next removed the function
> dm_table_get_num_targets() which is used by verity-loadpin. Access
> table->num_targets directly instead of using the defunct wrapper.
>
> Fixes: b6c1c5745ccc ("dm: Add verity helpers for LoadPin")
> Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Signed-off-by: Matthias Kaehlcke <mka@xxxxxxxxxxxx>
> ---
>
> drivers/md/dm-verity-loadpin.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)

FWIW:

Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>