On 27/11/2019 22:44, Stefano Stabellini wrote:
> Hi all,
>
> GCC 9 introduced a new warning: address-of-packed-member. It warns when
> a pointer points to a member of a packed struct, leading to a build
> failure in Xen (cross compiling Xen on Arm with GCC 9.2):
>
>   556 trace.c: In function '__trace_hypercall':
>   557 trace.c:826:19: error: taking address of packed member of 'struct 
> <anonymous>' may result in an unaligned pointer value
> [-Werror=address-of-packed-member]
>   558   826 |     uint32_t *a = d.args;
>
> Looking at the code, I cannot see anything wrong with what we are doing.
> At least on Arm, it looks OK? Anything I am missing?

c/s 3fd3b266d4 at a guess.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to