sfc: Introduce and use MCDI_DECLARE_BUF macro
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 14 Sep 2012 16:30:10 +0000 (17:30 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Wed, 21 Aug 2013 15:35:21 +0000 (16:35 +0100)
commit59cfc479b2c8ba344c8497d5c913b6cba2ce3755
tree77ed4c951751fee608d73ef9d0c081199ba77372
parentab0115fc7dc429300fc6b728ab04ee832fbb945d
sfc: Introduce and use MCDI_DECLARE_BUF macro

MCDI_DECLARE_BUF declares a variable as an MCDI buffer of the
requested length, adding any necessary padding.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/mcdi.h
drivers/net/ethernet/sfc/mcdi_mac.c
drivers/net/ethernet/sfc/mcdi_mon.c
drivers/net/ethernet/sfc/mcdi_phy.c
drivers/net/ethernet/sfc/ptp.c
drivers/net/ethernet/sfc/siena_sriov.c