Message ID | 20180108180231.21122-2-f4bug@amsat.org |
---|---|
State | New |
Headers | show |
Series | use QEMU_PACKED and QEMU_ALIGNED macros | expand |
On 01/08/2018 10:02 AM, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> > --- > include/net/net.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/net/net.h b/include/net/net.h > index 4afac1a9dd..70f5bb3419 100644 > --- a/include/net/net.h > +++ b/include/net/net.h > @@ -23,7 +23,7 @@ > > struct MACAddr { > uint8_t a[6]; > -}; > +} QEMU_PACKED; I suppose the arm32 abi does pad structs to a multiple of 4. Does this actually affect anything else? Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/include/net/net.h b/include/net/net.h index 4afac1a9dd..70f5bb3419 100644 --- a/include/net/net.h +++ b/include/net/net.h @@ -23,7 +23,7 @@ struct MACAddr { uint8_t a[6]; -}; +} QEMU_PACKED; /* qdev nic properties */
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- include/net/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)