Re: [dpdk-dev] [PATCH v3 3/3] vhost: access VhostUsrMsg via packed struct

2017-05-25 Thread Yuanhan Liu
On Wed, May 24, 2017 at 01:12:07PM +, Stojaczyk, DariuszX wrote: > > This is for fixing compile warnings with new clang 4.0? > > > > http://dpdk.org/ml/archives/dev/2017-April/064089.html > > > > If so, please show the exact warning in the commit log. > > > > Everything compiles, but is

Re: [dpdk-dev] [PATCH v3 3/3] vhost: access VhostUsrMsg via packed struct

2017-05-24 Thread Stojaczyk, DariuszX
> This is for fixing compile warnings with new clang 4.0? > > http://dpdk.org/ml/archives/dev/2017-April/064089.html > > If so, please show the exact warning in the commit log. > Everything compiles, but is undefined behavior. Accessing packed struct's fields through pointers would have t

Re: [dpdk-dev] [PATCH v3 3/3] vhost: access VhostUsrMsg via packed struct

2017-05-22 Thread Yuanhan Liu
On Thu, May 11, 2017 at 04:33:12PM +0200, Dariusz Stojaczyk wrote: > From: Daniel Verkamp > > Fixes unaligned access to fields. This is for fixing compile warnings with new clang 4.0? http://dpdk.org/ml/archives/dev/2017-April/064089.html If so, please show the exact warning in the commit

[dpdk-dev] [PATCH v3 3/3] vhost: access VhostUsrMsg via packed struct

2017-05-11 Thread Dariusz Stojaczyk
From: Daniel Verkamp Fixes unaligned access to fields. Signed-off-by: Daniel Verkamp Signed-off-by: Dariusz Stojaczyk --- Fixed checkpatch warnings lib/librte_vhost/vhost_user.c | 60 +++ 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/l