From: Ben Hutchings Date: Mon, 30 Jan 2012 16:55:05 +0000 (+0000) Subject: sfc: Use a more sensible cast in efx_rx_buf_offset() X-Git-Tag: v3.4-rc1~177^2~445^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06e63c57acbb1df7c35ebe846ae416a8b88dfafa;p=pandora-kernel.git sfc: Use a more sensible cast in efx_rx_buf_offset() This function returns the page offset of the buffer, which can be calculated based on either its DMA address or its virtual address. It used to use the virtual address and we would cast that to unsigned long, as anything smaller would result in a compiler warning. Now that it's using the DMA address we should use unsigned int, matching the return type. It is also unnecessary to use __force. Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed