Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp678166pxa; Wed, 5 Aug 2020 10:08:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHmtUqdPxQgBaqe+WkYLRMiaPMSu3I69ZF1cbD7l1WyilQbHTb/JIU2geG8FwLmCI+wOl3 X-Received: by 2002:a17:906:15c7:: with SMTP id l7mr265334ejd.208.1596647300067; Wed, 05 Aug 2020 10:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596647300; cv=none; d=google.com; s=arc-20160816; b=J7OKXyzdvL24fpTQY7U+665e39DxYHPl9JWeRADPvF74Ii9w2miWaaQFGArVRKAziA AiZcRgs6b4g4CyUKqnOFOqEFdsjr0vEBF5iR+NGmONhauhOldLp2cdEE3l5VizC0iDMg A/aza/RFc7J/J9D1fSYkR9qcxUpxOGMX0RYb9gcq8pyFGS2BmghsFw/Q35+BSXy40fXQ 0wO5osMVEXAAK6VGFzndAmaN1Fg7lqEiXdzGjfJzf0WyB58aZ7ILVAU6JQHEkfFMuUse NwTAd4MrKbFRCVbe2prSKsFPhhICOoldiFGdmdrQDdkumE5XZrYj8o/Q7ulEWdm1qDn4 LWAw== 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=ZlNXGeTfp4AaGj7FagUROXadawxdtFtkc3vB/EgDPDU=; b=odmgkReEoQkSu/tBA7Qr5le1sV0KEmHbBV+j1ON69u0eZXiJNBf1CjgQeBJy8gIkiA oJP4FpjjyblI6h0OxzOWXrx4FeOnoz/g3y6AQd7soLFzQkhlZuPd8Ir6uzyqg7aFmldc uy6Rx+DoWx+DdxEFla0GI1mz9+uqRqVpsmPUo+eMmez6J0G8memKv7s8zXfAItU3d4Et ciw0YyiyAQ7GZdlRYxXEGvhy9h9fkj26HQcaiId5NMHINFndecI1rNt+5oiMrgZmjtf7 mM4yIQK6kZbYh29IBZz4u83Q+h6prl/+GMkLS6eXUcSrrvs0493/ta3UpIbZZJrbEjqQ zMjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fnqUZyJw; 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 dn20si2495832ejc.409.2020.08.05.10.07.36; Wed, 05 Aug 2020 10:08:20 -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=fnqUZyJw; 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 S1726996AbgHERDc (ORCPT + 99 others); Wed, 5 Aug 2020 13:03:32 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:25185 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728078AbgHERBT (ORCPT ); Wed, 5 Aug 2020 13:01:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596646856; 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=ZlNXGeTfp4AaGj7FagUROXadawxdtFtkc3vB/EgDPDU=; b=fnqUZyJwBTcglKwRnzavTbc2N9y2EQnUhd3PDLCm5pQeqEPV0W1YEMHS4Y7kgadX6vphRE hDzPEnxNOq4DY0db1I8MgajPq2+l14uWlVyzHxG2Mtdi5uDSnkdiugyd15xCv0jDZyX6GF AtMQk7tTf6unWHXsNs3t8VJBSWTu9lQ= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-390-coVgblsjPW66gkJld0A0fg-1; Wed, 05 Aug 2020 09:29:19 -0400 X-MC-Unique: coVgblsjPW66gkJld0A0fg-1 Received: by mail-wm1-f70.google.com with SMTP id t26so2726561wmn.4 for ; Wed, 05 Aug 2020 06:29:19 -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=ZlNXGeTfp4AaGj7FagUROXadawxdtFtkc3vB/EgDPDU=; b=oW83QJa+mnHRQZDioUUanU5yI5XKBbFXR3HySoPrhmP3hGplEW2+iu6CcbTZ9twggD okyVbx4j5RPMOv242Ak9NJdLMg+4ihI5gfKZzR2repymWk8Rnp6yqNA7Q2/9h1IVbB/K 9/P3yd3YRW6qE0DU6ud7GLND94h/Ey4Vya5YnsL7lmYTioaZq3cNZfw1RCecrvZZ3Yqn xO1mET/wiLD0KhEa8AZ98ByM3LipJptEZnu2ctgyirQnb+/SR80n3pjAOG3I4HQF5JCT SNtnTUks78t3Ior+D5dVnyEggdRQfbA5nUvHxgVfO5gro9uJOANZz4NdhpqZi8mz7RSg Aclw== X-Gm-Message-State: AOAM530HnWliDpHKYv6yuBzKAldbN57WIEDLNsps6AoGsQlcqodWGZkW LZoa4g7TN29w3hJ4fwRUyG40+JO4XwRl2F5f1C4zVIBG9ZasqoNVTNyvUbCGfA5lYOMHUr2BvM0 dx2hKPymWIz4tuT4zi0SkX/XO X-Received: by 2002:a1c:2dc6:: with SMTP id t189mr3492803wmt.26.1596634158283; Wed, 05 Aug 2020 06:29:18 -0700 (PDT) X-Received: by 2002:a1c:2dc6:: with SMTP id t189mr3492788wmt.26.1596634158107; Wed, 05 Aug 2020 06:29:18 -0700 (PDT) Received: from redhat.com ([192.117.173.58]) by smtp.gmail.com with ESMTPSA id d14sm2806981wre.44.2020.08.05.06.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 06:29:17 -0700 (PDT) Date: Wed, 5 Aug 2020 09:29:12 -0400 From: "Michael S. Tsirkin" To: Cornelia Huck Cc: linux-kernel@vger.kernel.org, Vadim Pasternak , platform-driver-x86@vger.kernel.org, Darren Hart , virtualization@lists.linux-foundation.org, Andy Shevchenko Subject: Re: [PATCH v2 18/24] mlxbf-tmfifo: sparse tags for config access Message-ID: <20200805092904-mutt-send-email-mst@kernel.org> References: <20200803205814.540410-1-mst@redhat.com> <20200803205814.540410-19-mst@redhat.com> <20200804165634.4df11c6b.cohuck@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200804165634.4df11c6b.cohuck@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 04, 2020 at 04:56:34PM +0200, Cornelia Huck wrote: > On Mon, 3 Aug 2020 17:00:01 -0400 > "Michael S. Tsirkin" wrote: > > > mlxbf-tmfifo accesses config space using native types - > > which works for it since the legacy virtio native types. > > > > This will break if it ever needs to support modern virtio, > > so with new tags previously introduced for virtio net config, > > sparse now warns for this in drivers. > > > > Since this is a legacy only device, fix it up using > > virtio_legacy_is_little_endian for now. > > I'm wondering if the driver should make this more explicit? Not sure how though. > No issues with the patch, though. > > > > > No functional changes. > > > > Signed-off-by: Michael S. Tsirkin > > --- > > drivers/platform/mellanox/mlxbf-tmfifo.c | 13 ++++++++++--- > > 1 file changed, 10 insertions(+), 3 deletions(-) > > Acked-by: Cornelia Huck