From: Ben Hutchings Date: Fri, 14 Sep 2012 16:31:33 +0000 (+0100) Subject: sfc: Use proper macros to declare and access MCDI arrays X-Git-Tag: v3.12-rc1~132^2~190^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5bb0e9891ba1f7c871adc09d9ef727e1c0c1c1e;p=pandora-kernel.git sfc: Use proper macros to declare and access MCDI arrays A few functions are using heap buffers; change them to use stack buffers as we really don't need to resort to the heap for a 252 byte buffer in process context. MC_CMD_MEMCPY is quite weird in that it can use inline data placed in the request buffer after the array of records. Thus there are two variable-length arrays and we can't use the normal accessors for the second. So we have to use _MCDI_PTR() in efx_sriov_memcpy(). Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed