]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Annotate cmd_hdr as __le32
authorJiri Slaby <jslaby@suse.cz>
Mon, 3 Oct 2016 08:58:28 +0000 (10:58 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Oct 2016 12:14:49 +0000 (14:14 +0200)
commitad209cc8e307fd1ae2b3d29a63ed0dfec7b609e3
treec4c6c995923fee952d7d075c46664cce63e4bcb4
parentb9a519d61cdc5367c4be03e625ea7d3f47c9d857
mmc: core: Annotate cmd_hdr as __le32

Commit d2f3dc3796c1 (mmc: block: fix packed command header endianness)
correctly fixed endianness handling of packed_cmd_hdr in
mmc_blk_packed_hdr_wrq_prep.

But now, sparse complains about incorrect types:
drivers/mmc/card/block.c:1613:27: sparse: incorrect type in assignment (different base types)
drivers/mmc/card/block.c:1613:27:    expected unsigned int [unsigned] [usertype] <noident>
drivers/mmc/card/block.c:1613:27:    got restricted __le32 [usertype] <noident>
...

So annotate cmd_hdr properly using __le32 to make everyone happy.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Fixes: d2f3dc3796c1 (mmc: block: fix packed command header endianness)
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/block.c
drivers/mmc/card/queue.h