From: Adrian Bunk Date: Tue, 4 Mar 2008 10:23:45 +0000 (+0100) Subject: proper prototype for blk_dev_init() X-Git-Tag: v2.6.25-rc4~98^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ff88972c850ced92b9c4c7f538d85829c741eeb0;p=linux-2.6-omap-h63xx.git proper prototype for blk_dev_init() This patch adds a proper prototye for blk_dev_init() in block/blk.h Signed-off-by: Adrian Bunk Signed-off-by: Jens Axboe --- diff --git a/block/blk.h b/block/blk.h index ec898dd0c65..ec9120fb789 100644 --- a/block/blk.h +++ b/block/blk.h @@ -32,6 +32,8 @@ void blk_recalc_rq_sectors(struct request *rq, int nsect); void blk_queue_congestion_threshold(struct request_queue *q); +int blk_dev_init(void); + /* * Return the threshold (number of used requests) at which the queue is * considered to be congested. It include a little hysteresis to keep the diff --git a/block/genhd.c b/block/genhd.c index 53f2238e69c..abc6feddc8c 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -17,6 +17,8 @@ #include #include +#include "blk.h" + static DEFINE_MUTEX(block_class_lock); #ifndef CONFIG_SYSFS_DEPRECATED struct kobject *block_depr; @@ -346,8 +348,6 @@ const struct seq_operations partitions_op = { #endif -extern int blk_dev_init(void); - static struct kobject *base_probe(dev_t devt, int *part, void *data) { if (request_module("block-major-%d-%d", MAJOR(devt), MINOR(devt)) > 0)