Skip to content

Commit

Permalink
[XFS] Include linux/random.h in all builds, not just debug builds.
Browse files Browse the repository at this point in the history
SGI-PV: 979416
SGI-Modid: xfs-linux-melb:xfs-kern:31008a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
  • Loading branch information
David Chinner authored and Lachlan McIlroy committed Apr 30, 2008
1 parent adaa693 commit a94477d
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 a94477d

Please sign in to comment.