All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] drivers: mmc: Change buffer type in ALLOC_CACHE_ALIGN_BUFFER macro
Date: Mon, 17 Jul 2017 20:08:38 +0900	[thread overview]
Message-ID: <a91cd772-e654-bce7-50ed-6ae08d0aedb3@samsung.com> (raw)
In-Reply-To: <1497857598-19618-1-git-send-email-sunil.m@techveda.org>

On 06/19/2017 04:33 PM, sunil.m at techveda.org wrote:
> From: Suniel Mahesh <sunil.m@techveda.org>
> 
> __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>

Applied to u-boot-mmc.

Best Regards,
Jaehoon Chung

> ---
> Note:
> - Build was carried out with the above changes, no build errors
>   reported.
> ---
>  drivers/mmc/mmc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
> index 3cdf6a4..3d4da4c 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;
>  
> 

  reply	other threads:[~2017-07-17 11:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170619073335epcas5p3ce6ccc9ced473d12b1f6ba32183bb77e@epcas5p3.samsung.com>
2017-06-19  7:33 ` [U-Boot] [PATCH] drivers: mmc: Change buffer type in ALLOC_CACHE_ALIGN_BUFFER macro sunil.m at techveda.org
2017-07-17 11:08   ` Jaehoon Chung [this message]
2017-08-04  9:33     ` Suniel Mahesh
2017-08-18  7:30       ` Jaehoon Chung
2017-10-05  6:02         ` [U-Boot] [PATCH v2] " sunil.m at techveda.org
2017-10-20 11:45           ` Jaehoon Chung

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a91cd772-e654-bce7-50ed-6ae08d0aedb3@samsung.com \
    --to=jh80.chung@samsung.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.