]> git.baikalelectronics.ru Git - kernel.git/commit
mlxbf-tmfifo: sparse tags for config access
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 12 Jul 2020 14:56:34 +0000 (10:56 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 15:08:40 +0000 (11:08 -0400)
commit5429a01288a4010b9dfb1e0a9d7a50e154c86480
treeb99c02d51f1f3d50c35c4669ad4c0ff0a5fd246e
parentae47097391751807e532078166397daac1b7f0c0
mlxbf-tmfifo: sparse tags for config access

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.

No functional changes.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/platform/mellanox/mlxbf-tmfifo.c