Browse Source

ipc: gpr-lite: Modify payload of gpr_pkt
Use DECLARE_FLEX_ARRAY to modularize payload of gpr_pkt struct.

Change-Id: I45f173148c0f36896d52f88b77d3d815a4c321fb
Signed-off-by: Sam Rainey <[email protected]>

Sam Rainey 2 years ago
parent
commit
f7dc8de214
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/ipc/gpr-lite.h

+ 1 - 1
include/ipc/gpr-lite.h

@@ -228,7 +228,7 @@ struct gpr_hdr {
 
 struct gpr_pkt {
        struct gpr_hdr hdr;
-       uint8_t payload[0];
+       DECLARE_FLEX_ARRAY(uint8_t, payload);
 };
 
 #define GPR_IBASIC_RSP_RESULT 0x02001005