From patchwork Wed Jul 3 16:24:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Shilong X-Patchwork-Id: 2818021 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E7C08BF4A1 for ; Wed, 3 Jul 2013 16:25:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ADBE6201F9 for ; Wed, 3 Jul 2013 16:25:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4BA072018F for ; Wed, 3 Jul 2013 16:25:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932935Ab3GCQY6 (ORCPT ); Wed, 3 Jul 2013 12:24:58 -0400 Received: from mail-pb0-f48.google.com ([209.85.160.48]:45864 "EHLO mail-pb0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755924Ab3GCQY5 (ORCPT ); Wed, 3 Jul 2013 12:24:57 -0400 Received: by mail-pb0-f48.google.com with SMTP id ma3so282667pbc.7 for ; Wed, 03 Jul 2013 09:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=aUUchV//xb2+nK9lcTgVuM1+PkcA6NsCldxi+pAUG3s=; b=w/Z/y0KwFvah4m9HGdcBSYBq7r1EgTN8Bi5YN3N1APDA05llRR/RbPyF2RRYUqIHgY AlS/YE2FE1U5ZmKOjkUDCcoN29ProdBm2/fy15Xyft6hqDTeOj0ZYP9ogtwjY6ShzT87 qL8b0G9s3g2ApJjCfpGz6qz1PCe9MwajoHoGKb3PVo6fBNaz7JLWVuwiAcz1dJQvjh1+ FRJM68GBSDFldMW9iEtbrlWhq8Jx/tqwg3hYC3bf4xbzgr3YzjMRQt6kh8vJ/JHgWGbk 4dtTN4R1pxR1ya+gjAo5QXbjn0R5LWCtahiOflGRgs0Ap7K+cRBuC3kWc7fXMfPZioK4 ySjw== X-Received: by 10.66.184.203 with SMTP id ew11mr607437pac.178.1372868697275; Wed, 03 Jul 2013 09:24:57 -0700 (PDT) Received: from localhost.localdomain.localdomain ([112.2.81.93]) by mx.google.com with ESMTPSA id re16sm34358195pac.16.2013.07.03.09.24.55 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Jul 2013 09:24:56 -0700 (PDT) From: Wang Shilong To: linux-btrfs@vger.kernel.org Cc: wangsl-fnst@cn.fujitsu.com Subject: [PATCH RESEND] Btrfs-progs: fix compile warning in btrfs_free_block_groups() Date: Thu, 4 Jul 2013 00:24:45 +0800 Message-Id: <1372868685-4973-1-git-send-email-wangshilong1991@gmail.com> X-Mailer: git-send-email 1.7.11.7 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wang Shilong 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 --- 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; if (cache->free_space_ctl) { btrfs_remove_free_space_cache(cache); kfree(cache->free_space_ctl);