Explorar o código

[XFS] Include linux/random.h in all builds, not just debug.

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>
David Chinner %!s(int64=17) %!d(string=hai) anos
pai
achega
64275ea4f3
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  1. 1 0
      fs/xfs/linux-2.6/xfs_linux.h
  2. 0 2
      fs/xfs/support/debug.h

+ 1 - 0
fs/xfs/linux-2.6/xfs_linux.h

@@ -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>

+ 0 - 2
fs/xfs/support/debug.h

@@ -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__))