diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-08-28 03:27:42 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:11 -0400 |
commit | aeb3d3a81e81c6323a17fe914e91eb228b3f1aa1 (patch) | |
tree | 9cacfa989eaad1611f61e5707fd432e7f1fde685 /block/blk-settings.c | |
parent | 01cfcddd98f09e05a2e36031654ed46643b76f23 (diff) |
block: kmalloc args reversed, small function definition fixes
Noticed by sparse:
block/blk-softirq.c:156:12: warning: symbol 'blk_softirq_init' was not declared. Should it be static?
block/genhd.c:583:28: warning: function 'bdget_disk' with external linkage has definition
block/genhd.c:659:17: warning: incorrect type in argument 1 (different base types)
block/genhd.c:659:17: expected unsigned int [unsigned] [usertype] size
block/genhd.c:659:17: got restricted gfp_t
block/genhd.c:659:29: warning: incorrect type in argument 2 (different base types)
block/genhd.c:659:29: expected restricted gfp_t [usertype] flags
block/genhd.c:659:29: got unsigned int
block: kmalloc args reversed
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk-settings.c')
-rw-r--r-- | block/blk-settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index a60e959a12c4..d70692badcdb 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c | |||
@@ -443,7 +443,7 @@ void blk_queue_update_dma_alignment(struct request_queue *q, int mask) | |||
443 | } | 443 | } |
444 | EXPORT_SYMBOL(blk_queue_update_dma_alignment); | 444 | EXPORT_SYMBOL(blk_queue_update_dma_alignment); |
445 | 445 | ||
446 | int __init blk_settings_init(void) | 446 | static int __init blk_settings_init(void) |
447 | { | 447 | { |
448 | blk_max_low_pfn = max_low_pfn - 1; | 448 | blk_max_low_pfn = max_low_pfn - 1; |
449 | blk_max_pfn = max_pfn - 1; | 449 | blk_max_pfn = max_pfn - 1; |