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

Jarkko Sakkinen jarkko at kernel.org
Wed Oct 12 08:53:37 UTC 2022


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



More information about the Linux-security-module-archive mailing list