Export get_random_int()
authorKent Overstreet <koverstreet@google.com>
Mon, 9 Apr 2012 04:39:00 +0000 (00:39 -0400)
committerKent Overstreet <koverstreet@google.com>
Sat, 23 Mar 2013 22:53:52 +0000 (15:53 -0700)
Needed for bcache - need a cheap source of random numbers for perturbing
IO sizes, for rate limiting IO to the SSD.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: "Theodore Ts'o" <tytso@mit.edu>
drivers/char/random.c

index 32a6c57..cd9a621 100644 (file)
@@ -1485,6 +1485,7 @@ unsigned int get_random_int(void)
 
        return ret;
 }
+EXPORT_SYMBOL(get_random_int);
 
 /*
  * randomize_range() returns a start address such that