Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2347879pxa; Mon, 3 Aug 2020 14:00:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXsx8vEvw8glt1oLGZugazPoW//YczcElTYqxo2EOfImBFPKejLzl6R77H13lnNYwJfdQG X-Received: by 2002:a17:906:1911:: with SMTP id a17mr17399634eje.431.1596488446284; Mon, 03 Aug 2020 14:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596488446; cv=none; d=google.com; s=arc-20160816; b=p8SNGG0Ppynqafj9dvlNawUMHmGIr8X1BxpzMglk1ND3/f1f1wRWz6ABiXO96gfHCe F8PTi/gVi5xRyvqDAu7InPXsZA52GRsLJWXa33Jf3kqf1Z8J5Ve1h0yI2b2v9AXOqnkt EsXrOMImQ+2rhe/V27n2KIVVhFYb4V6h/RCQTSHxNemv92OK42q/HUGt6Yr7jX8fm0t5 kobCUyfkvNyWRLvPq7l/khRH5WnF1HUgdJRa8C2q1Rq0WdhgWKfVBHOyodoaHOn+jYTm Pxv8RQ/a+LopivKbU/yu0bAEb0noz4t1+sBJES0ESCgcoorQ4PWMNRU+1urXlMsB5zzK 0LdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Ab6nlp2Jw2w+JsB2kWgOwMJeURtEG/pcTlw1+Idrc0w=; b=lKk/pgD6+H+7Vfp0AyH4DRujS0krjEO/bOYh1MLSDqWgnf6Cio8M5R4/tnrVnX7TkD Ta0734A/LzDycdmDGPRfplHTWXrbmfrSwEe4c2NW/7lRcl68z8VAAWV9UU1Aoj/KEAw9 JRIQK9Ehg3bLonc2nxtwsnqYBNUVXB8sTIlC2AyPCDYvj477oqVYzS9ZeoHuJjkUVHzo fWCK6Kj9OHckYDWOrEAcNQIHko1qw5nzsBo36NBnYPKSfNcMNcczyxcGbVcfaDR7b3SA yQl3cZA3zhQW+LTEq8Ey+TS18wH7Xp528aavBIQjCE2/SO/c4uakvBA7XhWiig+RtZJE xqlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Xfk6ByDA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cn16si1014953edb.505.2020.08.03.14.00.23; Mon, 03 Aug 2020 14:00:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Xfk6ByDA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729104AbgHCU7b (ORCPT + 99 others); Mon, 3 Aug 2020 16:59:31 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:47866 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729079AbgHCU7b (ORCPT ); Mon, 3 Aug 2020 16:59:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596488369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ab6nlp2Jw2w+JsB2kWgOwMJeURtEG/pcTlw1+Idrc0w=; b=Xfk6ByDARDnH4VHd4O9qqSeykAwQjQFULdvf6ALai383GfkYPK6A9bfhdVurOhczH74vos 2+Cg/j2+iCXiASRwMVjY2dxnBaxVpYAkRpPGxHz9AaU9mtx7wL4pddjJDbIHLE+CVfZU33 LMrlfgawdtrSJEkF4+7E9I9ZNjvKXrU= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-3-H_vfbk0ENtOJRs8o9nUGLg-1; Mon, 03 Aug 2020 16:59:28 -0400 X-MC-Unique: H_vfbk0ENtOJRs8o9nUGLg-1 Received: by mail-qv1-f69.google.com with SMTP id k17so13049991qvj.12 for ; Mon, 03 Aug 2020 13:59:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Ab6nlp2Jw2w+JsB2kWgOwMJeURtEG/pcTlw1+Idrc0w=; b=mKstZgOQbTik8yXZ/qg1NSdz/i6fE6uRIZqz3EZ/DTKDKUQmnABSaOd4FUl5eqZo/E pMrjOIew+T3C7WH+3IsoIrBQ/C/+Z5p5L2fps/AcoMf20TN4E0Bcocv02xPt9WIlKxK4 aT8t66c+pQTmM1HzFL3iRGmrlrebolEgeOCRIbEv340q3ZWXmnRxLT36G6uSzM1KVpp5 s+9hqzZFiLl3H1wYlwvPr4TNqCVGK7p4WtFt9PxDP/bv9r11KaqTJGjiDTj+qEg4OQsE iW5UbmnPACFCRSrRUNscJAtxmzzgkKGoxKUNBPKfDJN8tRflMEz6zfcXesM998O6hRBy PZTQ== X-Gm-Message-State: AOAM533Jzce07l8f/LdeeKXXgtXWKTuXZ7Lt+APUKgrJFbo28g04jPmL VJxN8+vlAB31ADBug+9t5cSk/xTKVlimePICTeuS+EwztauF6lp2gSyGJgZh10XR8hZH07fc1Mq 6r/8H5yCrtA5o5vlYpqnNS5NZ X-Received: by 2002:a05:620a:208f:: with SMTP id e15mr17956954qka.473.1596488367587; Mon, 03 Aug 2020 13:59:27 -0700 (PDT) X-Received: by 2002:a05:620a:208f:: with SMTP id e15mr17956941qka.473.1596488367357; Mon, 03 Aug 2020 13:59:27 -0700 (PDT) Received: from redhat.com (bzq-79-177-102-128.red.bezeqint.net. [79.177.102.128]) by smtp.gmail.com with ESMTPSA id i20sm19809053qka.17.2020.08.03.13.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 13:59:26 -0700 (PDT) Date: Mon, 3 Aug 2020 16:59:23 -0400 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Cc: virtualization@lists.linux-foundation.org, Jason Wang , Gerd Hoffmann Subject: [PATCH v2 11/24] virtio_input: correct tags for config space fields Message-ID: <20200803205814.540410-12-mst@redhat.com> References: <20200803205814.540410-1-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200803205814.540410-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since this is a modern-only device, tag config space fields as having little endian-ness. Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/virtio_input.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/uapi/linux/virtio_input.h b/include/uapi/linux/virtio_input.h index a7fe5c8fb135..52084b1fb965 100644 --- a/include/uapi/linux/virtio_input.h +++ b/include/uapi/linux/virtio_input.h @@ -40,18 +40,18 @@ enum virtio_input_config_select { }; struct virtio_input_absinfo { - __u32 min; - __u32 max; - __u32 fuzz; - __u32 flat; - __u32 res; + __le32 min; + __le32 max; + __le32 fuzz; + __le32 flat; + __le32 res; }; struct virtio_input_devids { - __u16 bustype; - __u16 vendor; - __u16 product; - __u16 version; + __le16 bustype; + __le16 vendor; + __le16 product; + __le16 version; }; struct virtio_input_config { -- MST