Skip to contentSkip to conversation

proper prototype for blk_dev_init()

PATCH New Adrian Bunk 1 participant 1 message Mar 1, 2008 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proper prototype for blk_dev_init()

This patch adds a proper prototye for blk_dev_init() in block/blk.h

---

 block/blk.h   |    2 ++
 block/genhd.c |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

4d1c0e77200be4790ad60d33cab6b4ed1956a71d foobar

block/blk.h +2 -0
index ec898dd..ec9120f 100644
@@ -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
block/genhd.c +2 -2
index 53f2238..abc6fed 100644
@@ -17,6 +17,8 @@
 #include <linux/buffer_head.h>
 #include <linux/mutex.h>
 
+#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)