]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
libext2fs: Compile ext2fs_swab64() for all platforms
authorTheodore Ts'o <tytso@mit.edu>
Tue, 2 Sep 2008 12:49:10 +0000 (08:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 2 Sep 2008 12:49:10 +0000 (08:49 -0400)
Although nothing uses ext2fs_swab64() yet, debian's dpkg-gensymbols
picked up the fact that ext2fs_swab64() isn't getting defined on
non-x86 platforms.  Oops.  This patch moves the definition of
ext2fs_swab64() to a place where it will be compiled for all
architectures.

Addresses-Debian-Bug: #497515

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/bitops.h

index 9181567cc4ec3a1018c4dddbf7725e767d948b5a..1d825bbfb55c8f127898182e7b537d985049c52b 100644 (file)
@@ -241,12 +241,6 @@ _INLINE_ __u16 ext2fs_swab16(__u16 val)
                return val;
 }
 
-_INLINE_ __u64 ext2fs_swab64(__u64 val)
-{
-       return (ext2fs_swab32(val >> 32) |
-               (((__u64)ext2fs_swab32(val & 0xFFFFFFFFUL)) << 32));
-}
-
 #undef EXT2FS_ADDR
 
 #endif /* i386 */
@@ -304,6 +298,12 @@ _INLINE_ __u32 ext2fs_swab32(__u32 val)
 
 #endif /* !_EXT2_HAVE_ASM_SWAB */
 
+_INLINE_ __u64 ext2fs_swab64(__u64 val)
+{
+       return (ext2fs_swab32(val >> 32) |
+               (((__u64)ext2fs_swab32(val & 0xFFFFFFFFUL)) << 32));
+}
+
 _INLINE_ int ext2fs_mark_block_bitmap(ext2fs_block_bitmap bitmap,
                                       blk_t block)
 {