* + make-u64-long-long-on-all-architectures.patch added to -mm tree
@ 2008-07-22 10:02 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2008-07-22 10:02 UTC (permalink / raw)
To: mm-commits; +Cc: matthew, linux-arch, willy
The patch titled
Make u64 long long on all architectures
has been added to the -mm tree. Its filename is
make-u64-long-long-on-all-architectures.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: Make u64 long long on all architectures
From: Matthew Wilcox <matthew@wil.cx>
It is currently awkward to print a u64 type. Some architectures use
unsigned long while others use unsigned long long. Since unsigned long
long is 64-bit for all existing Linux architectures, change those that
use long to use long long. Note that this applies only within the
kernel. If u64 is being used in a C++ method definition, the symbol
mangling would change.
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/asm-generic/int-l64.h | 5 +++++
1 file changed, 5 insertions(+)
diff -puN include/asm-generic/int-l64.h~make-u64-long-long-on-all-architectures include/asm-generic/int-l64.h
--- a/include/asm-generic/int-l64.h~make-u64-long-long-on-all-architectures
+++ a/include/asm-generic/int-l64.h
@@ -23,8 +23,13 @@ typedef unsigned short __u16;
typedef __signed__ int __s32;
typedef unsigned int __u32;
+#ifdef __KERNEL__
+typedef __signed__ long long __s64;
+typedef unsigned long long __u64;
+#else
typedef __signed__ long __s64;
typedef unsigned long __u64;
+#endif
#endif /* __ASSEMBLY__ */
_
Patches currently in -mm which might be from matthew@wil.cx are
origin.patch
linux-next.patch
parisc-fix-incomplete-header-guard.patch
list-debugging-use-warn_on-instead-of-bug.patch
reiserfs-convert-j_lock-to-mutex.patch
reiserfs-convert-j_flush_sem-to-mutex.patch
reiserfs-convert-j_commit_lock-to-mutex.patch
reiserfs-convert-j_commit_lock-to-mutex-checkpatch-fixes.patch
ptrace-give-more-respect-to-sigkill.patch
lockd-dont-return-eagain-for-a-permanent-error.patch
locks-add-special-return-value-for-asynchronous-locks.patch
locks-cleanup-code-duplication.patch
locks-allow-lock-to-return-file_lock_deferred.patch
fuse-nfs-export-special-lookups.patch
fuse-lockd-support.patch
make-u64-long-long-on-all-architectures.patch
make-sure-nobodys-leaking-resources.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-22 10:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22 10:02 + make-u64-long-long-on-all-architectures.patch added to -mm tree akpm
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).