msg->offset = sizeof(*msg);
msg->send_recv_id = src_dst_ids;
msg->size = sz;
- memcpy(msg + msg->offset, buf, sz);
+ memcpy((u8 *)msg + msg->offset, buf, sz);
/* flags = 0, sender VMID = 0 works for both physical/virtual NS */
invoke_ffa_fn((ffa_value_t){