linux/drivers/mmc/card
Jiri Slaby 4a2ede59ea mmc: core: Annotate cmd_hdr as __le32
[ Upstream commit 3f2d266435 ]

Commit f68381a70b (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: f68381a70b (mmc: block: fix packed command header endianness)
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
History 2016-11-23 21:28:25 -05:00
..
block.c mmc: core: Annotate cmd_hdr as __le32 2016-11-23 21:28:25 -05:00
Kconfig tty: Added a CONFIG_TTY option to allow removal of TTY 2013-01-18 16:15:27 -08:00
Makefile mmc: Makefile: Fix EXTRA_CFLAGS assignment 2010-10-23 21:11:15 +08:00
mmc_test.c mmc: mmc_test: replace strict_strtol() with kstrtol_from_user() 2013-08-24 23:19:05 -04:00
queue.c mmc: card: Don't access RPMB partitions for normal read/write 2015-06-09 13:43:38 -04:00
queue.h mmc: core: Annotate cmd_hdr as __le32 2016-11-23 21:28:25 -05:00
sdio_uart.c mmc: Convert pr_warning to pr_warn 2014-09-24 10:13:09 +02:00