net/avp: fix 32-bit meson builds
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 3 Jul 2018 10:31:18 +0000 (11:31 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Jul 2018 10:29:07 +0000 (12:29 +0200)
commit8a70b112e6f019b8b2998767d536f797d935e2f8
tree56bfc2c136e9ae6f7e9467c55154ac4800262702
parent90406a3d49eee7ce4bddf54136906569a6fc73a7
net/avp: fix 32-bit meson builds

When compiling with meson, extra warnings are enabled about casting from
integers to different size pointers. This triggers an error in AVP as the
addition of the offset to the pointer address causes the result to be a
64-bit integer which doesn't fit a 32-bit pointer. The fix here is to
explicitly indicate that the offset is of type "uintptr_t" which prevents
any promotion which would cause errors.

Fixes: c0ad584222b5 ("net/avp: add device initialization")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Allain Legacy <allain.legacy@windriver.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/net/avp/avp_ethdev.c