Skip to contentSkip to conversation

kdd: fix build again

PATCH In review Wei Liu 3 participants 3 messages Jul 3, 2020 – Jul 6, 2020

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 kdd: fix build again

Restore Tim's patch. The one that was committed was recreated by me because git didn't accept my saved copy. I made some mistakes while recreating that patch and here we are.

Fixes 3471cafbdda3 ("kdd: stop using [0] arrays to access packet contents")

---
Cc: Tim Deegan <[email protected]>
Cc: Paul Durrant <[email protected]>
Cc: Michael Young <[email protected]>

---
 tools/debugger/kdd/kdd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/debugger/kdd/kdd.c +2 -2
index 866532f0c770..a7d0976ea4a8 100644
@@ -79,11 +79,11 @@ typedef struct {
 /* State of the debugger stub */
 typedef struct {
     union {
-        uint8_t txb[sizeof (kdd_hdr)];           /* Marshalling area for tx */
+        uint8_t txb[sizeof (kdd_pkt)];           /* Marshalling area for tx */
         kdd_pkt txp;                 /* Also readable as a packet structure */
     };
     union {
-        uint8_t rxb[sizeof (kdd_hdr)];           /* Marshalling area for rx */
+        uint8_t rxb[sizeof (kdd_pkt)];           /* Marshalling area for rx */
         kdd_pkt rxp;                 /* Also readable as a packet structure */
     };
     unsigned int cur;       /* Offset into rx where we'll put the next byte */
Signature · 1 line
2.20.1
#2 lore raw
Quoted 17 lines

-----Original Message-----
From: Tim Deegan <[email protected]>
Sent: 03 July 2020 21:27
To: Wei Liu <[email protected]>
Cc: Xen Development List <[email protected]>; Michael Young <[email protected]>; Paul Durrant <[email protected]>; Ian Jackson <[email protected]>
Subject: Re: [PATCH for-4.14] kdd: fix build again

Quoted 7 lines · Wei Liu

Restore Tim's patch. The one that was committed was recreated by me because git didn't accept my saved copy. I made some mistakes while recreating that patch and here we are.

Fixes 3471cafbdda3 ("kdd: stop using [0] arrays to access packet contents")
Quoted 5 lines

Thanks!

Tim.