]> git.baikalelectronics.ru Git - kernel.git/commit
s390/virtio: change virtio_feature_desc:features type to __le32
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 9 May 2017 10:50:53 +0000 (12:50 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 15 May 2017 10:20:54 +0000 (12:20 +0200)
commit12b7f9dc414d2c115be815e37e6bc5e19eefd76a
treea7b0ecb0afa7650e2c66706c9f6ec492d671442e
parent3a0fa3edeb7c060105fb1cecdfb2d955d71db56a
s390/virtio: change virtio_feature_desc:features type to __le32

The feature member of virtio_feature_desc contains little endian
values, given that it contents will be converted with
le32_to_cpu(). The "wrong" __u32 type leads to the sparse warnings
below.
In order to avoid them, use the correct __le32 type instead.

drivers/s390/virtio/virtio_ccw.c:749:14: warning: cast to restricted __le32
drivers/s390/virtio/virtio_ccw.c:762:28: warning: cast to restricted __le32

Acked-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/virtio/virtio_ccw.c