qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hw/usb: Use __attribute__((packed)) vs __packed
@ 2024-11-01 21:17 Roque Arcudia Hernandez
  2024-11-01 21:32 ` Pierrick Bouvier
  2024-11-04  7:37 ` Thomas Huth
  0 siblings, 2 replies; 6+ messages in thread
From: Roque Arcudia Hernandez @ 2024-11-01 21:17 UTC (permalink / raw)
  To: thuth, richard.henderson, jansene, mjt
  Cc: qemu-devel, Roque Arcudia Hernandez

__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>
---
 include/hw/usb/dwc2-regs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/hw/usb/dwc2-regs.h b/include/hw/usb/dwc2-regs.h
index 523b112c5e..b8b4266543 100644
--- a/include/hw/usb/dwc2-regs.h
+++ b/include/hw/usb/dwc2-regs.h
@@ -838,7 +838,7 @@
 struct dwc2_dma_desc {
         uint32_t status;
         uint32_t buf;
-} __packed;
+} QEMU_PACKED;
 
 /* Host Mode DMA descriptor status quadlet */
 
-- 
2.47.0.163.g1226f6d8fa-goog



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-21 11:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-01 21:17 [PATCH] hw/usb: Use __attribute__((packed)) vs __packed Roque Arcudia Hernandez
2024-11-01 21:32 ` Pierrick Bouvier
2024-11-04  7:37 ` Thomas Huth
2024-11-21 10:01   ` Michael Tokarev
2024-11-21 10:24     ` Thomas Huth
2024-11-21 11:23       ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).