From mboxrd@z Thu Jan 1 00:00:00 1970 From: akpm@linux-foundation.org Subject: + make-u64-long-long-on-all-architectures.patch added to -mm tree Date: Tue, 22 Jul 2008 03:02:26 -0700 Message-ID: <200807221002.m6MA2Qrs022237@imap1.linux-foundation.org> Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:58722 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753566AbYGVKC2 (ORCPT ); Tue, 22 Jul 2008 06:02:28 -0400 Sender: linux-arch-owner@vger.kernel.org List-ID: To: mm-commits@vger.kernel.org Cc: matthew@wil.cx, linux-arch@vger.kernel.org, willy@linux.intel.com 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 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 Cc: Signed-off-by: Andrew Morton --- 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