hw/usb: Use __attribute__((packed)) vs __packed
authorRoque Arcudia Hernandez <roqueh@google.com>
Fri, 1 Nov 2024 21:17:20 +0000 (21:17 +0000)
committerThomas Huth <thuth@redhat.com>
Mon, 18 Nov 2024 09:34:11 +0000 (10:34 +0100)
__packed is non standard and is not present in clang-cl.
__attribute__((packed)) has the same semantics.

Signed-off-by: Erwin Jansen <jansene@google.com>
Signed-off-by: Roque Arcudia Hernandez <roqueh@google.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20241101211720.3354111-1-roqueh@google.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
include/hw/usb/dwc2-regs.h

index 523b112c5e51872ae1c0e572283647fa4d18c729..b8b426654312f69bfe24d6652ccbe473bedc5b02 100644 (file)
 struct dwc2_dma_desc {
         uint32_t status;
         uint32_t buf;
-} __packed;
+} QEMU_PACKED;
 
 /* Host Mode DMA descriptor status quadlet */