linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* asm-offsets.c
@ 2008-02-07  4:43 Sean MacLennan
  2008-02-07  4:51 ` asm-offsets.c Christoph Hellwig
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Sean MacLennan @ 2008-02-07  4:43 UTC (permalink / raw)
  To: linuxppc-dev

I just did a git pull of Josh's tree, and 
arch/powerpc/kernel/asm-offsets.c does not compile. I have only been 
glossing over the linuxppc-dev emails, so forgive me if this already 
came up.

It looks like, at least for the Warp, CLOCK_REALTIME_RES is not defined 
so asm-offsets.c gets an error. The following patch fixes it.... but I 
am not sure it is right since I don't know if CLOCK_REALTIME_RES should 
be defined.

Cheers,
  Sean

diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets
.c
index e6e4928..c1568aa 100644
--- a/arch/powerpc/kernel/asm-offsets.c
+++ b/arch/powerpc/kernel/asm-offsets.c
@@ -313,7 +313,9 @@ int main(void)
        DEFINE(CLOCK_REALTIME, CLOCK_REALTIME);
        DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC);
        DEFINE(NSEC_PER_SEC, NSEC_PER_SEC);
+#ifdef CLOCK_REALTIME_RES
        DEFINE(CLOCK_REALTIME_RES, (KTIME_MONOTONIC_RES).tv64);
+#endif
 
 #ifdef CONFIG_BUG
        DEFINE(BUG_ENTRY_SIZE, sizeof(struct bug_entry));

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-02-07 20:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-07  4:43 asm-offsets.c Sean MacLennan
2008-02-07  4:51 ` asm-offsets.c Christoph Hellwig
2008-02-07  6:49   ` asm-offsets.c Nathan Lynch
2008-02-07  6:55     ` asm-offsets.c Christoph Hellwig
2008-02-07  7:02       ` asm-offsets.c Sean MacLennan
2008-02-07  7:16         ` asm-offsets.c Nathan Lynch
2008-02-07  7:26           ` asm-offsets.c Sean MacLennan
2008-02-07  5:07 ` asm-offsets.c Tony Breeds
2008-02-07  5:13   ` asm-offsets.c Sean MacLennan
2008-02-07  8:44 ` asm-offsets.c Benjamin Herrenschmidt
2008-02-07 20:24   ` asm-offsets.c Sean MacLennan
2008-02-07 19:01 ` asm-offsets.c Christoph Hellwig

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).