linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Behrens <sbehrens@giantdisaster.de>
To: Wang Shilong <wangshilong1991@gmail.com>
Cc: linux-btrfs@vger.kernel.org, wangsl-fnst@cn.fujitsu.com
Subject: Re: [PATCH RESEND] Btrfs-progs: fix compile warning in btrfs_free_block_groups()
Date: Wed, 03 Jul 2013 18:31:09 +0200	[thread overview]
Message-ID: <51D451CD.9090400@giantdisaster.de> (raw)
In-Reply-To: <1372868685-4973-1-git-send-email-wangshilong1991@gmail.com>

On Thu,  4 Jul 2013 00:24:45 +0800, Wang Shilong wrote:
> From: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
> 
> extent-tree.c: In function 'btrfs_free_block_groups':
> extent-tree.c:3189:12: warning: cast to pointer from
> integer of different size [-Wint-to-pointer-cast]
> 
> Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
> ---
>  extent-tree.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/extent-tree.c b/extent-tree.c
> index b0cfe0a..7561bbb 100644
> --- a/extent-tree.c
> +++ b/extent-tree.c
> @@ -3186,7 +3186,8 @@ int btrfs_free_block_groups(struct btrfs_fs_info *info)
>  			break;
>  		ret = get_state_private(&info->block_group_cache, start, &ptr);
>  		if (!ret) {
> -			cache = (struct btrfs_block_group_cache *)ptr;
> +			cache = (struct btrfs_block_group_cache *)
> +				(unsigned long)ptr;

Shouldn't this be "(uintptr_t)" instead of "(unsigned long)"?


      reply	other threads:[~2013-07-03 16:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03 16:24 [PATCH RESEND] Btrfs-progs: fix compile warning in btrfs_free_block_groups() Wang Shilong
2013-07-03 16:31 ` Stefan Behrens [this message]

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=51D451CD.9090400@giantdisaster.de \
    --to=sbehrens@giantdisaster.de \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=wangshilong1991@gmail.com \
    --cc=wangsl-fnst@cn.fujitsu.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).