net/sfc: fix power of 2 round up when align has smaller type
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 24 Jul 2019 13:16:32 +0000 (14:16 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 24 Jul 2019 19:01:11 +0000 (21:01 +0200)
commit441717b92c2a22021b7a38c43788897a09f23b6d
tree7ede8520a689ce74edb0bbda0124c9796e72ca26
parent9c04a5df3bfe9c139402e10e89ddbf5944a7c9ad
net/sfc: fix power of 2 round up when align has smaller type

Substitute driver-defined P2ROUNDUP() h with EFX_P2ROUNDUP()
defined in libefx.

Cast value and alignment to one specified type to guarantee result
correctness.

Fixes: e1b944598579 ("net/sfc: build libefx")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_impl.h
drivers/net/sfc/base/ef10_nvram.c
drivers/net/sfc/base/ef10_rx.c
drivers/net/sfc/base/efx.h
drivers/net/sfc/base/efx_mcdi.h
drivers/net/sfc/base/efx_tx.c
drivers/net/sfc/efsys.h
drivers/net/sfc/sfc_ethdev.c