From: Michael S. Tsirkin Date: Fri, 24 Oct 2014 08:49:27 +0000 (+0300) Subject: vhost/net: force len for TX to host endian X-Git-Tag: omap-for-v3.19/fixes-rc1~129^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf995734969c3ca9de9e00138151201eab4cbb01;p=pandora-kernel.git vhost/net: force len for TX to host endian vhost/net keeps a copy of the used ring in host memory but (ab)uses the length field for internal house-keeping. This works because the length in the used ring for tx is always 0. In order to suppress sparse warnings, we force native endianness here. Note that these values are never exposed to guests. Signed-off-by: Michael S. Tsirkin Reviewed-by: Jason Wang --- Reading git-diff-tree failed