mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/4] ratp: Mark struct ratp_bb as packed
@ 2019-09-07 23:54 Andrey Smirnov
  2019-09-07 23:54 ` [PATCH 2/4] net: Adjust net_copy_uint32's signature Andrey Smirnov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andrey Smirnov @ 2019-09-07 23:54 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov

Mark struct ratp_bb as packed to make sure that it has the same
alignment as struct ratp_bb_md_response and struct ratp_bb_mw_response
where it's used. GCC9 catches this mismatch and generates a
-Waddress-of-packed-member warning

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 include/ratp_bb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/ratp_bb.h b/include/ratp_bb.h
index b6699979b6..9162e7cbe5 100644
--- a/include/ratp_bb.h
+++ b/include/ratp_bb.h
@@ -32,7 +32,7 @@ struct ratp_bb {
 	uint16_t type;
 	uint16_t flags;
 	uint8_t data[];
-};
+} __packed;
 
 struct ratp_bb_pkt {
 	unsigned int len;
-- 
2.21.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-09-12  6:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-07 23:54 [PATCH 1/4] ratp: Mark struct ratp_bb as packed Andrey Smirnov
2019-09-07 23:54 ` [PATCH 2/4] net: Adjust net_copy_uint32's signature Andrey Smirnov
2019-09-07 23:54 ` [PATCH 3/4] mtd: ubi: Compile fastmap.c with -Wno-address-of-packed-member Andrey Smirnov
2019-09-09 10:23   ` Sascha Hauer
2019-09-10  4:28     ` Andrey Smirnov
2019-09-12  6:55       ` Sascha Hauer
2019-09-07 23:54 ` [PATCH 4/4] USB: gadget: Compile composite.c " Andrey Smirnov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox