]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/ethernet/sfc/siena_sriov.c
sfc: Introduce and use MCDI_DECLARE_BUF macro
[karo-tx-linux.git] / drivers / net / ethernet / sfc / siena_sriov.c
index 90f8d1604f5fbc8c6e7d1153169b99e97388e901..8e46fac65536148e9ee125ef4ebd752ef042c98d 100644 (file)
@@ -197,8 +197,8 @@ static unsigned abs_index(struct efx_vf *vf, unsigned index)
 static int efx_sriov_cmd(struct efx_nic *efx, bool enable,
                         unsigned *vi_scale_out, unsigned *vf_total_out)
 {
-       u8 inbuf[MC_CMD_SRIOV_IN_LEN];
-       u8 outbuf[MC_CMD_SRIOV_OUT_LEN];
+       MCDI_DECLARE_BUF(inbuf, MC_CMD_SRIOV_IN_LEN);
+       MCDI_DECLARE_BUF(outbuf, MC_CMD_SRIOV_OUT_LEN);
        unsigned vi_scale, vf_total;
        size_t outlen;
        int rc;