[XFS] Include linux/random.h in all builds, not just debug.
authorDavid Chinner <dgc@sgi.com>
Wed, 30 Apr 2008 07:11:16 +0000 (17:11 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 14:53:50 +0000 (07:53 -0700)
Noted-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Dave Chinner <dgc@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/xfs/linux-2.6/xfs_linux.h
fs/xfs/support/debug.h

index 1bc9f60..4edc469 100644 (file)
@@ -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 855da04..75845f9 100644 (file)
@@ -49,8 +49,6 @@ extern void assfail(char *expr, char *f, int l);
 
 #else /* DEBUG */
 
-#include <linux/random.h>
-
 #define ASSERT(expr)   \
        (unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))