* [PATCH] Fix non-debug build for random32() use
@ 2008-04-30 6:57 David Chinner
2008-04-30 7:13 ` Lachlan McIlroy
0 siblings, 1 reply; 2+ messages in thread
From: David Chinner @ 2008-04-30 6:57 UTC (permalink / raw)
To: xfs-dev; +Cc: xfs-oss
Include linux/random.h in all builds, not just debug.
Signed-off-by: Dave Chinner <dgc@sgi.com>
---
fs/xfs/linux-2.6/xfs_linux.h | 1 +
fs/xfs/support/debug.h | 2 --
2 files changed, 1 insertion(+), 2 deletions(-)
Index: 2.6.x-xfs-new/fs/xfs/linux-2.6/xfs_linux.h
===================================================================
--- 2.6.x-xfs-new.orig/fs/xfs/linux-2.6/xfs_linux.h 2008-04-22 15:06:11.000000000 +1000
+++ 2.6.x-xfs-new/fs/xfs/linux-2.6/xfs_linux.h 2008-04-30 16:38:38.754688626 +1000
@@ -75,6 +75,7 @@
#include <linux/delay.h>
#include <linux/log2.h>
#include <linux/spinlock.h>
+#include <linux/random.h>
#include <asm/page.h>
#include <asm/div64.h>
Index: 2.6.x-xfs-new/fs/xfs/support/debug.h
===================================================================
--- 2.6.x-xfs-new.orig/fs/xfs/support/debug.h 2007-08-02 22:13:10.000000000 +1000
+++ 2.6.x-xfs-new/fs/xfs/support/debug.h 2008-04-30 16:38:43.518080606 +1000
@@ -49,8 +49,6 @@ extern void assfail(char *expr, char *f,
#else /* DEBUG */
-#include <linux/random.h>
-
#define ASSERT(expr) \
(unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix non-debug build for random32() use
2008-04-30 6:57 [PATCH] Fix non-debug build for random32() use David Chinner
@ 2008-04-30 7:13 ` Lachlan McIlroy
0 siblings, 0 replies; 2+ messages in thread
From: Lachlan McIlroy @ 2008-04-30 7:13 UTC (permalink / raw)
To: David Chinner; +Cc: xfs-dev, xfs-oss
Looks good to me.
David Chinner wrote:
> Include linux/random.h in all builds, not just debug.
>
> Signed-off-by: Dave Chinner <dgc@sgi.com>
> ---
> fs/xfs/linux-2.6/xfs_linux.h | 1 +
> fs/xfs/support/debug.h | 2 --
> 2 files changed, 1 insertion(+), 2 deletions(-)
>
> Index: 2.6.x-xfs-new/fs/xfs/linux-2.6/xfs_linux.h
> ===================================================================
> --- 2.6.x-xfs-new.orig/fs/xfs/linux-2.6/xfs_linux.h 2008-04-22 15:06:11.000000000 +1000
> +++ 2.6.x-xfs-new/fs/xfs/linux-2.6/xfs_linux.h 2008-04-30 16:38:38.754688626 +1000
> @@ -75,6 +75,7 @@
> #include <linux/delay.h>
> #include <linux/log2.h>
> #include <linux/spinlock.h>
> +#include <linux/random.h>
>
> #include <asm/page.h>
> #include <asm/div64.h>
> Index: 2.6.x-xfs-new/fs/xfs/support/debug.h
> ===================================================================
> --- 2.6.x-xfs-new.orig/fs/xfs/support/debug.h 2007-08-02 22:13:10.000000000 +1000
> +++ 2.6.x-xfs-new/fs/xfs/support/debug.h 2008-04-30 16:38:43.518080606 +1000
> @@ -49,8 +49,6 @@ extern void assfail(char *expr, char *f,
>
> #else /* DEBUG */
>
> -#include <linux/random.h>
> -
> #define ASSERT(expr) \
> (unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-30 7:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-30 6:57 [PATCH] Fix non-debug build for random32() use David Chinner
2008-04-30 7:13 ` Lachlan McIlroy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox