* Re: [e2fsprogs][1.42.9 to lastest]maybe a bug
[not found] <CAEazTgcqTQuSUCHJ7T4fYGuCydOGcFfTW2=kjTrpSxWZW61zoA@mail.gmail.com>
@ 2014-03-08 15:41 ` Theodore Ts'o
0 siblings, 0 replies; only message in thread
From: Theodore Ts'o @ 2014-03-08 15:41 UTC (permalink / raw)
To: Sela Selah; +Cc: linux-ext4
On Sat, Mar 08, 2014 at 10:46:03AM +0800, Sela Selah wrote:
> appear at version 1.42.9 to the lastest commit
> the if statements is *NOT* consisted with the comments, results a compile
> error on mips64el: the __u64/__s64 should unsigned/signed long but
> unsigned/signed long long.
What's the compile error which you are seeing with mips64el?
The change made to prefer [un]signed long long over [un]signed long
when both types are 64-bits was deliberate:
commit 3a941bef3b9036ca3db9d510c71bcae801ea4dd1
Author: Andreas Dilger <adilger@dilger.ca>
Date: Sun Dec 15 22:09:24 2013 -0500
build: use long long for __u64 by default
Don't print a verbose configure error in parse-types.h if
<asm/types.h> missing and __[SU]*_TYPEDEF is unset. This is
always the case for non-Linux builds.
The printf formatting strings all use "%llu" for printing 64-bit
values and this it produces a large number of warnings if __u64
is defined as "unsigned long". If __U64_TYPEDEF isn't set use
"unsigned long long" for __u64 in ext2-types.h and blkid-types.h
by default instead of using "unsigned long".
Fix a few places where "%d" or "%u" or "%Lu" were used to print a
64-bit value, by converting them to use "%lld" or "%llu" instead.
Fix a few places where "%lu" was used to print .tv_usec, by casting
the variable to "(long)" since .tv_usec is "int" on some systems.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Andreas didn't fix up the comments in the header file, but the change
made wasn't an accident.
Maybe there's some other way we can address the compile failure on
mips64el?
- Ted
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-08 15:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAEazTgcqTQuSUCHJ7T4fYGuCydOGcFfTW2=kjTrpSxWZW61zoA@mail.gmail.com>
2014-03-08 15:41 ` [e2fsprogs][1.42.9 to lastest]maybe a bug Theodore Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).