Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2347022pxa; Mon, 3 Aug 2020 13:59:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiJPQkhjCO3QeHfLVUyo2iTpYZu1OhS/BtA3+DSEYlINXULH+TYqV5uNw159hmocuurBNQ X-Received: by 2002:aa7:da46:: with SMTP id w6mr14085928eds.7.1596488384305; Mon, 03 Aug 2020 13:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596488384; cv=none; d=google.com; s=arc-20160816; b=AwEDNFtr5oJinz9f84zaSFIyTzENlOa7Jm+DIRQ7DaG7RfYdkQQR2KJXuaywHjuJyG h/62DcM0bALXRUv6dIU/kpc1Pcr2JrGldt3D0PY3KYNdCa1k3Tfhl4y5J++KwPjifVBH 3DFZKO98jOdi4PTkSyNQ9J1eGF0otBC3kg3Et6u28IhPzZ3R2CQ4gqg+T/OHMAfiFqC5 LA52njX7UpZYQTNheApM+y8mMb/KySdjvzyr6/Cfs2P+i9X5lkvqZXYruPYdRpiGEW+5 AgP6cgJ607jcFfVKCQm+SgFCI37r97v3GubEIciUjTe+qIJuwBWpCDdS4QZXhrZFoy3H oN3A== 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=EgJGJjLXNDNxv1S9tFSxLl/zl31va0ARwAnPHhIniqo=; b=WBb9AorYmJMifKDlhESIwTELhy5haZFgyAEU4R7aS5D+az2V94uhVJskbrT+RZB14X U4cIR4eEGuqP5F+pB5aeIZMPIyxjQbEQFJdM+knBPeJHHA/kigV+xfly1XpkCLamPzte b/dkqaeLH/3u7NOY93Qf9d1YJNG4pDTbvGCCc6yJG9bbYkF5Cn4s5Ed+NCdgM6fiWN+1 BoWMjbkmSxSs7RgRY1OleG28Aeym6uk1SgmHykHzQXhqPtRbN+11rmQA15+JD8TujyBb FBo9BdqGheCqar36zS2l5AZawtpF/cIeVBU9xnCuQ/n3H0QnpEDZG5nmEjTiKWrKTW0w 4jBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LyRuZKxX; 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 u59si4584512edc.53.2020.08.03.13.59.20; Mon, 03 Aug 2020 13:59:44 -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=LyRuZKxX; 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 S1729031AbgHCU67 (ORCPT + 99 others); Mon, 3 Aug 2020 16:58:59 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:25934 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728605AbgHCU66 (ORCPT ); Mon, 3 Aug 2020 16:58:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596488337; 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=EgJGJjLXNDNxv1S9tFSxLl/zl31va0ARwAnPHhIniqo=; b=LyRuZKxX7eK2cmQZVOVIPasxC0CyFldaVZc9fkMcJQN+xUl8PoMmsfOQ9mICnre2gZr9Bk o5j+ja+bVCNbQWdi4Ot/HWJd2qMRUyUNPCiJdguiEFaXtGgAkIf07ORRtAtppE/0Oyat8p 7k3LPuQl3rQ6qnah0xnZM9U9sz0yHKE= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-365-8JRegVZQNbaU4iyw_V7xrg-1; Mon, 03 Aug 2020 16:58:56 -0400 X-MC-Unique: 8JRegVZQNbaU4iyw_V7xrg-1 Received: by mail-qk1-f198.google.com with SMTP id v16so27024212qka.18 for ; Mon, 03 Aug 2020 13:58:55 -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=EgJGJjLXNDNxv1S9tFSxLl/zl31va0ARwAnPHhIniqo=; b=Brlqxt+r3DMntwJEZwIYfOe31pWnxWC4oO/G5875LOhlt+DRO7U4LEDH0TKgZl139c 3WoEMmctDFL+k8NVh/kPbdaGr5lcf4dMT/dXAyHsQe+E3H4evwavL1RbW44odZeq93LJ 7v5c6ZTtq4iND8q9tQx9nGs2zRlx46XlHNs9jzEFBzcjox/HLygf2pG9/S6zntVXTCDF sHUacatv151153ultwRYMm20vTySvdVaC59kEIZ1RWCaP/t8DSBwrH00Ovx9/iBNNfdp 9C1CnRE6C008SQq/ms2tCPdxkCUaSGcJXSAme824WDpYWmBXaEVTuzTfxG2vDeOZwB1H H+AA== X-Gm-Message-State: AOAM532Vb27Z8zwzE7IijIg0hdtyUbh0g1pUMOts2K4DxKLKcJRC53fT ZwkKHQFO65HOdw5EM/zYH3eJzfTQcTm9CBGIZVY5XgQsW9jv9toI6KkXFmlp+WZbvgpOowPrtbR PapFHu/TTEMsZnZWib3oxgpRS X-Received: by 2002:ae9:e00b:: with SMTP id m11mr16520748qkk.341.1596488335098; Mon, 03 Aug 2020 13:58:55 -0700 (PDT) X-Received: by 2002:ae9:e00b:: with SMTP id m11mr16520707qkk.341.1596488334744; Mon, 03 Aug 2020 13:58:54 -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 n33sm22173580qtd.43.2020.08.03.13.58.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 13:58:54 -0700 (PDT) Date: Mon, 3 Aug 2020 16:58:50 -0400 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Cc: virtualization@lists.linux-foundation.org, Jason Wang , Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , v9fs-developer@lists.sourceforge.net Subject: [PATCH v2 04/24] virtio_9p: correct tags for config space fields Message-ID: <20200803205814.540410-5-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 Tag config space fields as having virtio endian-ness. Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/virtio_9p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/virtio_9p.h b/include/uapi/linux/virtio_9p.h index 277c4ad44e84..441047432258 100644 --- a/include/uapi/linux/virtio_9p.h +++ b/include/uapi/linux/virtio_9p.h @@ -25,7 +25,7 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -#include +#include #include #include @@ -36,7 +36,7 @@ struct virtio_9p_config { /* length of the tag name */ - __u16 tag_len; + __virtio16 tag_len; /* non-NULL terminated tag name */ __u8 tag[0]; } __attribute__((packed)); -- MST