summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuniel Mahesh <sunil.m@techveda.org>2017-10-05 11:32:00 +0530
committerJaehoon Chung <jh80.chung@samsung.com>2018-01-12 18:11:03 +0900
commit18e7c8f6aa5fe3893b85830abf2458559087b42e (patch)
tree99ef38b3c357f8fa1098a62a1132972f5ae24bb9
parentf3dd87e0b98999a78e500e8c6d2b063ebadf535a (diff)
downloadu-boot-18e7c8f6aa5fe3893b85830abf2458559087b42e.tar.gz
u-boot-18e7c8f6aa5fe3893b85830abf2458559087b42e.tar.bz2
u-boot-18e7c8f6aa5fe3893b85830abf2458559087b42e.zip
drivers: mmc: Change buffer type in ALLOC_CACHE_ALIGN_BUFFER macro
__be32_to_cpu() accepts argument of type __be32. This patch changes type of the buffer in ALLOC_CACHE_ALIGN_BUFFER macro to __be32, which is then passed to __be32_to_cpu(). This prevents sparse build warnings. drivers/mmc/mmc.c: warning: cast to restricted __be32 Signed-off-by: Suniel Mahesh <sunil.m@techveda.org> Signed-off-by: Karthik Tummala <karthik@techveda.org>
-rw-r--r--drivers/mmc/mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 38d2e07dd5..8716ac7308 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -882,8 +882,8 @@ static int sd_change_freq(struct mmc *mmc)
{
int err;
struct mmc_cmd cmd;
- ALLOC_CACHE_ALIGN_BUFFER(uint, scr, 2);
- ALLOC_CACHE_ALIGN_BUFFER(uint, switch_status, 16);
+ ALLOC_CACHE_ALIGN_BUFFER(__be32, scr, 2);
+ ALLOC_CACHE_ALIGN_BUFFER(__be32, switch_status, 16);
struct mmc_data data;
int timeout;