random: export add_disk_randomness
authorChristoph Hellwig <hch@infradead.org>
Fri, 25 Apr 2014 07:36:37 +0000 (00:36 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 28 Apr 2014 15:29:55 +0000 (09:29 -0600)
This will be needed for pending changes to the scsi midlayer that now
calls lower level block APIs, as well as any blk-mq driver that wants to
contribute to the random pool.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/char/random.c

index 6b75713d953a4e719cd33610f6034bec430c5d95..0a19d866a153f235363365dd221e162e1cdfa0ff 100644 (file)
@@ -902,6 +902,7 @@ void add_disk_randomness(struct gendisk *disk)
        add_timer_randomness(disk->random, 0x100 + disk_devt(disk));
        trace_add_disk_randomness(disk_devt(disk), ENTROPY_BITS(&input_pool));
 }
+EXPORT_SYMBOL_GPL(add_disk_randomness);
 #endif
 
 /*********************************************************************