[PATCH] bus/vmbus: remove unnecessary packed attribute

Stephen Hemminger stephen at networkplumber.org
Tue Oct 22 04:37:28 CEST 2024


The VMBus ring structure was marked packed which will cause
warnings if the no-address-of-packed is enabled. The structure
is all 32 bit values and the packed attribute has no impact
on the code layout; remove it.

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 drivers/bus/vmbus/rte_vmbus_reg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/vmbus/rte_vmbus_reg.h b/drivers/bus/vmbus/rte_vmbus_reg.h
index e3299aa871..c4f2fa4c7e 100644
--- a/drivers/bus/vmbus/rte_vmbus_reg.h
+++ b/drivers/bus/vmbus/rte_vmbus_reg.h
@@ -108,7 +108,7 @@ struct vmbus_bufring {
 	 * !!! DO NOT place any fields below this !!!
 	 */
 	uint8_t data[];
-} __rte_packed;
+};
 
 /*
  * Channel packets
-- 
2.45.2



More information about the dev mailing list