Re: [PATCH v0 1/8] hw-bound-key: introducing the generic structure

From: Jarkko Sakkinen
Date: Wed Oct 12 2022 - 04:55:45 EST


On Thu, Oct 06, 2022 at 06:38:30PM +0530, Pankaj Gupta wrote:
> +#define set_hbk_info(hbk_info, hw_flags, key_len) do {\
> + hbk_info->flags = hw_flags;\
> + hbk_info->key_sz = key_len;\
> +} while (0)

Also this:

1. Undocumented.
2. No idea why you want to use a macro instead of inline function.

BR, Jarkko