Commit ff88972c authored by Adrian Bunk's avatar Adrian Bunk Committed by Jens Axboe

proper prototype for blk_dev_init()

This patch adds a proper prototye for blk_dev_init() in block/blk.h
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 278caf01
...@@ -32,6 +32,8 @@ void blk_recalc_rq_sectors(struct request *rq, int nsect); ...@@ -32,6 +32,8 @@ void blk_recalc_rq_sectors(struct request *rq, int nsect);
void blk_queue_congestion_threshold(struct request_queue *q); 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 * Return the threshold (number of used requests) at which the queue is
* considered to be congested. It include a little hysteresis to keep the * considered to be congested. It include a little hysteresis to keep the
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <linux/buffer_head.h> #include <linux/buffer_head.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include "blk.h"
static DEFINE_MUTEX(block_class_lock); static DEFINE_MUTEX(block_class_lock);
#ifndef CONFIG_SYSFS_DEPRECATED #ifndef CONFIG_SYSFS_DEPRECATED
struct kobject *block_depr; struct kobject *block_depr;
...@@ -346,8 +348,6 @@ const struct seq_operations partitions_op = { ...@@ -346,8 +348,6 @@ const struct seq_operations partitions_op = {
#endif #endif
extern int blk_dev_init(void);
static struct kobject *base_probe(dev_t devt, int *part, void *data) static struct kobject *base_probe(dev_t devt, int *part, void *data)
{ {
if (request_module("block-major-%d-%d", MAJOR(devt), MINOR(devt)) > 0) if (request_module("block-major-%d-%d", MAJOR(devt), MINOR(devt)) > 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment