On 2/14/24 08:05, Tyler Retzlaff wrote:
* Move __rte_aligned from the end of {struct,union} definitions to
   be between {struct,union} and tag.

   The placement between {struct,union} and the tag allows the desired
   alignment to be imparted on the type regardless of the toolchain being
   used for all of GCC, LLVM, MSVC compilers building both C and C++.

* Replace use of __rte_aligned(a) on variables/fields with alignas(a).

Signed-off-by: Tyler Retzlaff <roret...@linux.microsoft.com>
---
  lib/vhost/vhost.h        | 8 ++++----
  lib/vhost/vhost_crypto.c | 4 ++--
  2 files changed, 6 insertions(+), 6 deletions(-)


Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>

Thanks,
Maxime

Reply via email to