From patchwork Mon Feb 25 14:03:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Shilong X-Patchwork-Id: 2181121 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3B92B3FCA4 for ; Mon, 25 Feb 2013 14:03:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759275Ab3BYODX (ORCPT ); Mon, 25 Feb 2013 09:03:23 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:50075 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751881Ab3BYODW (ORCPT ); Mon, 25 Feb 2013 09:03:22 -0500 Received: by mail-pa0-f44.google.com with SMTP id kp1so1774993pab.3 for ; Mon, 25 Feb 2013 06:03:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=Gw5SL/sR3GtFvN1OVXdseXKuLB1mm+bxCdmzAUaI8TE=; b=JYUjMA0CZYZ4ygTbGmGbVyxU49iDyoP8dxSlv2s4RD0y1VJL8lqEPdyGR3h0Oyknu3 SJapVC3VPmEbA6KMvk3fCVjBExXwxtbT5sjFM876Gjdd1bfptp4Smze0Yac037iez+5l ZD7dPQorBzkMaRchr4t51oirW2dRIJimWq+hFrKJS1A285T/lbV7O/xDw44/rod9uWfJ 74dBUeqApSR7eEH/fN8sr9VhCCEdcHbq+dtL2KU3dXl8eriqM4zcWmmvB9SVomPg+op3 P7Bsaz+jg/ulWl1YXt1iKBQcmuMEvDyzG6QL+RpWJKDwkKurceVgKc2Y3b5MgM0gaPtg Ic0A== X-Received: by 10.68.196.193 with SMTP id io1mr18002364pbc.196.1361801002195; Mon, 25 Feb 2013 06:03:22 -0800 (PST) Received: from localhost.localdomain ([112.4.45.37]) by mx.google.com with ESMTPS id 1sm12846999pbg.18.2013.02.25.06.03.20 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 25 Feb 2013 06:03:21 -0800 (PST) From: Wang Shilong To: linux-btrfs@vger.kernel.org Cc: wangshilong1991@gmail.com Subject: [PATCH 4/4] Btrfs-progs: fix complie warning in the function filter_by_parent Date: Mon, 25 Feb 2013 22:03:17 +0800 Message-Id: <1361800997-2040-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 From: Wang Shilong See the below warning info: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Signed-off-by: Wang Shilong --- btrfs-list.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/btrfs-list.c b/btrfs-list.c index d02d620..2eee4f6 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -1173,7 +1173,7 @@ static int filter_full_path(struct root_info *ri, u64 data) static int filter_by_parent(struct root_info *ri, u64 data) { - return !uuid_compare(ri->puuid, (u8 *)data); + return !uuid_compare(ri->puuid, (u8 *)(unsigned long)data); } static btrfs_list_filter_func all_filter_funcs[] = {