X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.0-rupdated Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id n08IiWvp021263 for ; Thu, 8 Jan 2009 12:44:32 -0600 X-ASG-Debug-ID: 1231440272-4d2000480000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from bombadil.infradead.org (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 78925715AA for ; Thu, 8 Jan 2009 10:44:32 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by cuda.sgi.com with ESMTP id xz4oPlJoBkEuyJn7 for ; Thu, 08 Jan 2009 10:44:32 -0800 (PST) X-ASG-Whitelist: Client Received: from hch by bombadil.infradead.org with local (Exim 4.68 #1 (Red Hat Linux)) id 1LKzrr-00062d-1i for xfs@oss.sgi.com; Thu, 08 Jan 2009 18:44:31 +0000 Message-Id: <20090108184430.967925000@bombadil.infradead.org> References: <20090108184222.244013000@bombadil.infradead.org> User-Agent: quilt/0.46-1 Date: Thu, 08 Jan 2009 13:42:25 -0500 From: Christoph Hellwig To: xfs@oss.sgi.com X-ASG-Orig-Subj: [PATCH 3/3] xfs: make xfs_ino_t an unsigned long long Subject: [PATCH 3/3] xfs: make xfs_ino_t an unsigned long long Content-Disposition: inline; filename=xfs-ino-printing-fixes X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html X-Barracuda-Connect: bombadil.infradead.org[18.85.46.34] X-Barracuda-Start-Time: 1231440272 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Virus-Scanned: ClamAV 0.91.2/8845/Thu Jan 8 10:52:13 2009 on oss.sgi.com X-Virus-Status: Clean Currently xfs_ino_t is defined as a u64 which can either be an unsigned long long or on some 64 bit platforms and unsigned long. Just making it and unsigned long long mean's it's still always 64 bits wide, but we don't need to resort to cases to print it. Fixes a warning regression on 64 bit powerpc in current git. Signed-off-by: Christoph Hellwig Index: xfs/fs/xfs/xfs_types.h =================================================================== --- xfs.orig/fs/xfs/xfs_types.h 2009-01-01 11:53:17.321546620 +0100 +++ xfs/fs/xfs/xfs_types.h 2009-01-05 20:30:04.794549213 +0100 @@ -45,7 +45,7 @@ typedef __uint32_t prid_t; /* project typedef __uint32_t inst_t; /* an instruction */ typedef __s64 xfs_off_t; /* type */ -typedef __u64 xfs_ino_t; /* type */ +typedef unsigned long long xfs_ino_t; /* type */ typedef __s64 xfs_daddr_t; /* type */ typedef char * xfs_caddr_t; /* type */ typedef __u32 xfs_dev_t; --