Skip to content

Commit

Permalink
[XFS] Include linux/random.h in all builds, not just debug.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Chinner authored and Linus Torvalds committed Apr 30, 2008
1 parent 957d33f commit 64275ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions fs/xfs/linux-2.6/xfs_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions fs/xfs/support/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__))

Expand Down

0 comments on commit 64275ea

Please sign in to comment.