summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/card/queue.h
diff options
context:
space:
mode:
authorJiri Slaby2016-10-03 10:58:28 +0200
committerUlf Hansson2016-10-10 14:14:49 +0200
commit3f2d26643595973e835e8356ea90c7c15cb1b0f1 (patch)
treec4c6c995923fee952d7d075c46664cce63e4bcb4 /drivers/mmc/card/queue.h
parentmmc: sdhci-of-arasan: add sdhci_arasan_voltage_switch for arasan, 5.1 (diff)
downloadkernel-qcow2-linux-3f2d26643595973e835e8356ea90c7c15cb1b0f1.tar.gz
kernel-qcow2-linux-3f2d26643595973e835e8356ea90c7c15cb1b0f1.tar.xz
kernel-qcow2-linux-3f2d26643595973e835e8356ea90c7c15cb1b0f1.zip
mmc: core: Annotate cmd_hdr as __le32
Commit f68381a70bb2 (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: f68381a70bb2 (mmc: block: fix packed command header endianness) Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/card/queue.h')
-rw-r--r--drivers/mmc/card/queue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/queue.h b/drivers/mmc/card/queue.h
index 3c15a75bae86..342f1e3f301e 100644
--- a/drivers/mmc/card/queue.h
+++ b/drivers/mmc/card/queue.h
@@ -31,7 +31,7 @@ enum mmc_packed_type {
struct mmc_packed {
struct list_head list;
- u32 cmd_hdr[1024];
+ __le32 cmd_hdr[1024];
unsigned int blocks;
u8 nr_entries;
u8 retries;