Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp65493pxa; Mon, 3 Aug 2020 23:02:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKT8g0MrDd2ztP2YdyY2gpt0Fc9ZQK8l7XYMO7HwrcX6GuBlwWHdBGBs7ZfsqbWmyc0/HU X-Received: by 2002:a50:d80f:: with SMTP id o15mr19154796edj.156.1596520944459; Mon, 03 Aug 2020 23:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596520944; cv=none; d=google.com; s=arc-20160816; b=nBtpVcOSJf9f6dbWxGaOppIDi46g372hCRrrOi+f1IbF6JIpRXFouyg2MSqAk/YhAo 2yI+kCMDZrwPL+8+x99kAgu6eU5UZVjtrXhWqQ7apzmxXh2bBi9rlYWiDVAJPuFrPK3R WpkRcJnk5CYmWCo+QpmHu9Z/2qFPwIZ0/MU3+nmaV9ZUxfcsJ6AJMkjD/tdPDk+IXcmp HluRnvblJSZTHtFoDLS9/+R/BgS83wmCyd+64UZuNu2RByREkq5M3gKd+pwWx6P4B41Q ZGJtX3G8amiJiXLeayvtOWQK2P2zD/4vOlUuo7Ub0y/Ime4lmCNtTJOlxd8yDzN4Q11h tE+w== 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=iCL1Xp60PBWuivH0HthdQ2JVXbrP96B1PBURhwN7M+g=; b=k/phd/Zv1pPpd+5jnxcVLKd3tsxr0FsfnA9kKbIsQAzreedA1mLsFXI6eI8GZdS59f H79/5VnUC+sHWKatxejmwGBFS4S2VSe6i6H+5AhqmB4oyqjxx4130s+fm2m1xl82fdmg RtPwybnneUWVuK9FrJ2s2fSjtHMGgWbTbq2OF9SEm7rl91NHBLgMiMHM4nJigebKebdl q8hhJDyGIILsPw0t32klU9eCQlP8+cL+/gAYSr8N2diTD23pIc7fQYUOoF87860bc7v0 TkdoKr8JJGRCoMVOR6sh+dp6faASdQoMGYb4rh7Z1gZmJu0xfcPw61O+knNlwuWIDSkc dJpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b9sx0BoX; 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 v13si11453339edr.516.2020.08.03.23.01.59; Mon, 03 Aug 2020 23:02:24 -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=b9sx0BoX; 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 S1728440AbgHDGBw (ORCPT + 99 others); Tue, 4 Aug 2020 02:01:52 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:39338 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727862AbgHDGBv (ORCPT ); Tue, 4 Aug 2020 02:01:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596520910; 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=iCL1Xp60PBWuivH0HthdQ2JVXbrP96B1PBURhwN7M+g=; b=b9sx0BoXVLm3f3teaFERPFvxVfEQnJETcSIRcVdEr0aPcYkNU8mm/kKpFM26YNnAZxkDR4 pKq4M658NMV9gaCZN/UKeRnwkZLYVlQx4Ke594xyUaNr5gvH1TKPVxTCjQsTge/3IPLkox PhwLxojIIJhuAOF4Jpnp5hHPpO2A+Rg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-445-Mt-GLynOPTW0Da43TrKIng-1; Tue, 04 Aug 2020 02:01:46 -0400 X-MC-Unique: Mt-GLynOPTW0Da43TrKIng-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DC42C100A8C0; Tue, 4 Aug 2020 06:01:45 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-115-89.ams2.redhat.com [10.36.115.89]) by smtp.corp.redhat.com (Postfix) with ESMTP id B80B45C1BD; Tue, 4 Aug 2020 06:01:42 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id A2D4311AB5; Tue, 4 Aug 2020 08:01:41 +0200 (CEST) Date: Tue, 4 Aug 2020 08:01:41 +0200 From: Gerd Hoffmann To: "Michael S. Tsirkin" Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Jason Wang Subject: Re: [PATCH v2 11/24] virtio_input: correct tags for config space fields Message-ID: <20200804060141.nhxsxs57oi576mzw@sirius.home.kraxel.org> References: <20200803205814.540410-1-mst@redhat.com> <20200803205814.540410-12-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200803205814.540410-12-mst@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 03, 2020 at 04:59:23PM -0400, Michael S. Tsirkin wrote: > 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 Reviewed-by: Gerd Hoffmann