>From 20e29b6137edf8afafcb2fca0b31d6783bdab53e Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Wed, 5 Jan 2011 13:20:21 +0100 Subject: [PATCH 6/7] Fix inline asm code to work on 64 bit patforms --- fsys_xfs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fsys_xfs.c b/fsys_xfs.c index f022040..ef558dd 100644 --- a/fsys_xfs.c +++ b/fsys_xfs.c @@ -98,7 +98,7 @@ static inline __const__ xfs_uint16_t le16 (xfs_uint16_t x) { __asm__("xchgb %b0,%h0" \ - : "=q" (x) \ + : "=Q" (x) \ : "0" (x)); \ return x; } @@ -114,7 +114,7 @@ le32 (xfs_uint32_t x) __asm__("xchgb %b0, %h0" \ "\n\troll $16, %0" \ "\n\txchgb %b0, %h0" \ - : "=q" (x) : "0" (x)); + : "=Q" (x) : "0" (x)); #endif return x; } -- 1.7.2.3