* [Ocfs2-devel] [PATCH 01/14] ocfs2: fix -Wformat warnings when building UML on x86-64
@ 2006-02-21 16:57 Jeff Mahoney
2006-02-21 18:37 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Mahoney @ 2006-02-21 16:57 UTC (permalink / raw)
To: ocfs2-devel
The check to determine which format string is appopriate for u64 and
friends works in most cases, but UML on x86_64 doesn't define CONFIG_X86_64,
so it results in screen fulls of compile-time warnings.
This patch fixes it to handle that case.
fs/ocfs2/cluster/masklog.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
diff -ruNpX ../dontdiff linux-2.6.16-rc4.ocfs2-staging1/fs/ocfs2/cluster/masklog.h linux-2.6.16-rc4.ocfs2-staging2/fs/ocfs2/cluster/masklog.h
--- linux-2.6.16-rc4.ocfs2-staging1/fs/ocfs2/cluster/masklog.h 2006-02-21 11:41:25.000000000 -0500
+++ linux-2.6.16-rc4.ocfs2-staging2/fs/ocfs2/cluster/masklog.h 2006-02-21 11:44:25.000000000 -0500
@@ -255,7 +255,7 @@ extern struct mlog_bits mlog_and_bits, m
} \
} while (0)
-#if (BITS_PER_LONG == 32) || defined(CONFIG_X86_64)
+#if (BITS_PER_LONG == 32) || defined(CONFIG_X86_64) || (defined(CONFIG_UML_X86) && defined(CONFIG_64BIT))
#define MLFi64 "lld"
#define MLFu64 "llu"
#define MLFx64 "llx"
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Ocfs2-devel] [PATCH 01/14] ocfs2: fix -Wformat warnings when building UML on x86-64
2006-02-21 16:57 [Ocfs2-devel] [PATCH 01/14] ocfs2: fix -Wformat warnings when building UML on x86-64 Jeff Mahoney
@ 2006-02-21 18:37 ` Christoph Hellwig
2006-02-21 21:41 ` Mark Fasheh
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2006-02-21 18:37 UTC (permalink / raw)
To: ocfs2-devel
On Tue, Feb 21, 2006 at 11:57:30AM -0500, Jeff Mahoney wrote:
>
> The check to determine which format string is appopriate for u64 and
> friends works in most cases, but UML on x86_64 doesn't define CONFIG_X86_64,
> so it results in screen fulls of compile-time warnings.
>
> This patch fixes it to handle that case.
>
> fs/ocfs2/cluster/masklog.h | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
>
> Signed-off-by: Jeff Mahoney <jeffm@suse.com>
>
> diff -ruNpX ../dontdiff linux-2.6.16-rc4.ocfs2-staging1/fs/ocfs2/cluster/masklog.h linux-2.6.16-rc4.ocfs2-staging2/fs/ocfs2/cluster/masklog.h
> --- linux-2.6.16-rc4.ocfs2-staging1/fs/ocfs2/cluster/masklog.h 2006-02-21 11:41:25.000000000 -0500
> +++ linux-2.6.16-rc4.ocfs2-staging2/fs/ocfs2/cluster/masklog.h 2006-02-21 11:44:25.000000000 -0500
> @@ -255,7 +255,7 @@ extern struct mlog_bits mlog_and_bits, m
> } \
> } while (0)
>
> -#if (BITS_PER_LONG == 32) || defined(CONFIG_X86_64)
> +#if (BITS_PER_LONG == 32) || defined(CONFIG_X86_64) || (defined(CONFIG_UML_X86) && defined(CONFIG_64BIT))
> #define MLFi64 "lld"
> #define MLFu64 "llu"
> #define MLFx64 "llx"
Please just rip out this crap instead and use the normal
(long long) or (unsigned long long) casts used everywhere else in the
kernel.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Ocfs2-devel] [PATCH 01/14] ocfs2: fix -Wformat warnings when building UML on x86-64
2006-02-21 18:37 ` Christoph Hellwig
@ 2006-02-21 21:41 ` Mark Fasheh
0 siblings, 0 replies; 3+ messages in thread
From: Mark Fasheh @ 2006-02-21 21:41 UTC (permalink / raw)
To: ocfs2-devel
On Tue, Feb 21, 2006 at 07:37:41PM +0100, Christoph Hellwig wrote:
> Please just rip out this crap instead and use the normal
> (long long) or (unsigned long long) casts used everywhere else in the
> kernel.
Well, it helps us avoid a ton of those casts, which I guess us wacky OCFS2
folks thought were more ugly.
Unless you have a patch, I'll put removal of ML*64 on my todo list, but in
the meantime lets silence things for Jeff.
--Mark
--
Mark Fasheh
Senior Software Developer, Oracle
mark.fasheh at oracle.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-21 21:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-21 16:57 [Ocfs2-devel] [PATCH 01/14] ocfs2: fix -Wformat warnings when building UML on x86-64 Jeff Mahoney
2006-02-21 18:37 ` Christoph Hellwig
2006-02-21 21:41 ` Mark Fasheh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.