diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-09-14 12:30:10 -0400 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-08-21 11:35:21 -0400 |
commit | 59cfc479b2c8ba344c8497d5c913b6cba2ce3755 (patch) | |
tree | 77ed4c951751fee608d73ef9d0c081199ba77372 /drivers/net/ethernet/sfc/siena_sriov.c | |
parent | ab0115fc7dc429300fc6b728ab04ee832fbb945d (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/siena_sriov.c')
-rw-r--r-- | drivers/net/ethernet/sfc/siena_sriov.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/siena_sriov.c b/drivers/net/ethernet/sfc/siena_sriov.c index 90f8d1604f5f..8e46fac65536 100644 --- a/drivers/net/ethernet/sfc/siena_sriov.c +++ b/drivers/net/ethernet/sfc/siena_sriov.c | |||
@@ -197,8 +197,8 @@ static unsigned abs_index(struct efx_vf *vf, unsigned index) | |||
197 | static int efx_sriov_cmd(struct efx_nic *efx, bool enable, | 197 | static int efx_sriov_cmd(struct efx_nic *efx, bool enable, |
198 | unsigned *vi_scale_out, unsigned *vf_total_out) | 198 | unsigned *vi_scale_out, unsigned *vf_total_out) |
199 | { | 199 | { |
200 | u8 inbuf[MC_CMD_SRIOV_IN_LEN]; | 200 | MCDI_DECLARE_BUF(inbuf, MC_CMD_SRIOV_IN_LEN); |
201 | u8 outbuf[MC_CMD_SRIOV_OUT_LEN]; | 201 | MCDI_DECLARE_BUF(outbuf, MC_CMD_SRIOV_OUT_LEN); |
202 | unsigned vi_scale, vf_total; | 202 | unsigned vi_scale, vf_total; |
203 | size_t outlen; | 203 | size_t outlen; |
204 | int rc; | 204 | int rc; |