Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio_9p: correct tags for config space fields

Tag config space fields as having virtio endian-ness.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>

+2 -2
+2 -2
include/uapi/linux/virtio_9p.h
··· 25 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 27 * SUCH DAMAGE. */ 28 - #include <linux/types.h> 28 + #include <linux/virtio_types.h> 29 29 #include <linux/virtio_ids.h> 30 30 #include <linux/virtio_config.h> 31 31 ··· 36 36 37 37 struct virtio_9p_config { 38 38 /* length of the tag name */ 39 - __u16 tag_len; 39 + __virtio16 tag_len; 40 40 /* non-NULL terminated tag name */ 41 41 __u8 tag[0]; 42 42 } __attribute__((packed));