Re: [PATCH v3 09/22] common/idpf: refactor size check macro

2024-06-14 Thread Burakov, Anatoly
On 6/12/2024 5:52 AM, Soumyadeep Hore wrote: Instead of using 'divide by 0' to check the struct length, use the static_assert macro Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/driver

[PATCH v3 09/22] common/idpf: refactor size check macro

2024-06-11 Thread Soumyadeep Hore
Instead of using 'divide by 0' to check the struct length, use the static_assert macro Signed-off-by: Soumyadeep Hore --- drivers/common/idpf/base/virtchnl2.h | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/common/idpf/base/virtchnl2.h b/drivers/common/