diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-01-13 11:59:13 +0100 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-01-13 11:59:13 +0100 |
commit | 436fa4a5352cea7fc8eeafe2fc078031d731b471 (patch) | |
tree | 658f2bb222914030916c46e1cc4d81b8466ded30 /libdde_linux26/contrib/block | |
parent | 1b030ec21564529f29c2e557c2254b9f17e762ba (diff) |
Remove the static declaration of initcall functions.
Diffstat (limited to 'libdde_linux26/contrib/block')
-rw-r--r-- | libdde_linux26/contrib/block/blk-ioc.c | 2 | ||||
-rw-r--r-- | libdde_linux26/contrib/block/blk-settings.c | 2 | ||||
-rw-r--r-- | libdde_linux26/contrib/block/blk-softirq.c | 2 | ||||
-rw-r--r-- | libdde_linux26/contrib/block/noop-iosched.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/libdde_linux26/contrib/block/blk-ioc.c b/libdde_linux26/contrib/block/blk-ioc.c index e067a82a..b3292405 100644 --- a/libdde_linux26/contrib/block/blk-ioc.c +++ b/libdde_linux26/contrib/block/blk-ioc.c @@ -171,7 +171,7 @@ void copy_io_context(struct io_context **pdst, struct io_context **psrc) } EXPORT_SYMBOL(copy_io_context); -static int __init blk_ioc_init(void) +int __init blk_ioc_init(void) { iocontext_cachep = kmem_cache_create("blkdev_ioc", sizeof(struct io_context), 0, SLAB_PANIC, NULL); diff --git a/libdde_linux26/contrib/block/blk-settings.c b/libdde_linux26/contrib/block/blk-settings.c index ad0af33c..2178202f 100644 --- a/libdde_linux26/contrib/block/blk-settings.c +++ b/libdde_linux26/contrib/block/blk-settings.c @@ -463,7 +463,7 @@ void blk_queue_update_dma_alignment(struct request_queue *q, int mask) } EXPORT_SYMBOL(blk_queue_update_dma_alignment); -static int __init blk_settings_init(void) +int __init blk_settings_init(void) { blk_max_low_pfn = max_low_pfn - 1; blk_max_pfn = max_pfn - 1; diff --git a/libdde_linux26/contrib/block/blk-softirq.c b/libdde_linux26/contrib/block/blk-softirq.c index e9a18af7..34041d14 100644 --- a/libdde_linux26/contrib/block/blk-softirq.c +++ b/libdde_linux26/contrib/block/blk-softirq.c @@ -161,7 +161,7 @@ void blk_complete_request(struct request *req) } EXPORT_SYMBOL(blk_complete_request); -static __init int blk_softirq_init(void) +__init int blk_softirq_init(void) { int i; diff --git a/libdde_linux26/contrib/block/noop-iosched.c b/libdde_linux26/contrib/block/noop-iosched.c index e78234a9..a7618fdb 100644 --- a/libdde_linux26/contrib/block/noop-iosched.c +++ b/libdde_linux26/contrib/block/noop-iosched.c @@ -101,7 +101,7 @@ static struct elevator_type elevator_noop = { .elevator_owner = THIS_MODULE, }; -static int __init noop_init(void) +int __init noop_init(void) { DEBUG_MSG("here!"); elv_register(&elevator_noop); |