Commit e7e22a3a authored by Pekka Enberg's avatar Pekka Enberg Committed by Linus Torvalds

[PATCH] noop iosched: make code static

This patch makes code static in drivers/block/noop-iosched.c and adds
__init and __exit for module initialization and cleanup functions.
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 920e3328
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
/* /*
* See if we can find a request that this buffer can be coalesced with. * See if we can find a request that this buffer can be coalesced with.
*/ */
int elevator_noop_merge(request_queue_t *q, struct request **req, static int elevator_noop_merge(request_queue_t *q, struct request **req,
struct bio *bio) struct bio *bio)
{ {
struct list_head *entry = &q->queue_head; struct list_head *entry = &q->queue_head;
struct request *__rq; struct request *__rq;
...@@ -50,14 +50,14 @@ int elevator_noop_merge(request_queue_t *q, struct request **req, ...@@ -50,14 +50,14 @@ int elevator_noop_merge(request_queue_t *q, struct request **req,
return ELEVATOR_NO_MERGE; return ELEVATOR_NO_MERGE;
} }
void elevator_noop_merge_requests(request_queue_t *q, struct request *req, static void elevator_noop_merge_requests(request_queue_t *q, struct request *req,
struct request *next) struct request *next)
{ {
list_del_init(&next->queuelist); list_del_init(&next->queuelist);
} }
void elevator_noop_add_request(request_queue_t *q, struct request *rq, static void elevator_noop_add_request(request_queue_t *q, struct request *rq,
int where) int where)
{ {
struct list_head *insert = q->queue_head.prev; struct list_head *insert = q->queue_head.prev;
...@@ -75,7 +75,7 @@ void elevator_noop_add_request(request_queue_t *q, struct request *rq, ...@@ -75,7 +75,7 @@ void elevator_noop_add_request(request_queue_t *q, struct request *rq,
q->last_merge = rq; q->last_merge = rq;
} }
struct request *elevator_noop_next_request(request_queue_t *q) static struct request *elevator_noop_next_request(request_queue_t *q)
{ {
if (!list_empty(&q->queue_head)) if (!list_empty(&q->queue_head))
return list_entry_rq(q->queue_head.next); return list_entry_rq(q->queue_head.next);
...@@ -94,12 +94,12 @@ static struct elevator_type elevator_noop = { ...@@ -94,12 +94,12 @@ static struct elevator_type elevator_noop = {
.elevator_owner = THIS_MODULE, .elevator_owner = THIS_MODULE,
}; };
int noop_init(void) static int __init noop_init(void)
{ {
return elv_register(&elevator_noop); return elv_register(&elevator_noop);
} }
void noop_exit(void) static void __exit noop_exit(void)
{ {
elv_unregister(&elevator_noop); elv_unregister(&elevator_noop);
} }
......
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