diff options
author | Andrew Morton <akpm@osdl.org> | 2006-10-31 01:07:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-31 11:06:58 -0500 |
commit | 36a561d6a95c4b89ae4845bf91456b4f784b6eec (patch) | |
tree | 62155a2c11ac0097c0f0a1ca1dfdb636625424cb /fs | |
parent | ae99a78af33f00565a05dbbc6ca9b247fed002c5 (diff) |
[PATCH] find_bd_holder() fix
fs/block_dev.c: In function 'find_bd_holder':
fs/block_dev.c:666: warning: return makes integer from pointer without a cast
fs/block_dev.c:669: warning: return makes integer from pointer without a cast
fs/block_dev.c: In function 'add_bd_holder':
fs/block_dev.c:685: warning: unused variable 'tmp'
fs/block_dev.c: In function 'bd_claim_by_kobject':
fs/block_dev.c:773: warning: assignment makes pointer from integer without a cast
Acked-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/block_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index aaa8301f43f1..36c0e7af9d0f 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -651,7 +651,8 @@ static void free_bd_holder(struct bd_holder *bo) | |||
651 | * If found, increment the reference count and return the pointer. | 651 | * If found, increment the reference count and return the pointer. |
652 | * If not found, returns NULL. | 652 | * If not found, returns NULL. |
653 | */ | 653 | */ |
654 | static int find_bd_holder(struct block_device *bdev, struct bd_holder *bo) | 654 | static struct bd_holder *find_bd_holder(struct block_device *bdev, |
655 | struct bd_holder *bo) | ||
655 | { | 656 | { |
656 | struct bd_holder *tmp; | 657 | struct bd_holder *tmp; |
657 | 658 | ||
@@ -677,7 +678,6 @@ static int find_bd_holder(struct block_device *bdev, struct bd_holder *bo) | |||
677 | */ | 678 | */ |
678 | static int add_bd_holder(struct block_device *bdev, struct bd_holder *bo) | 679 | static int add_bd_holder(struct block_device *bdev, struct bd_holder *bo) |
679 | { | 680 | { |
680 | struct bd_holder *tmp; | ||
681 | int ret; | 681 | int ret; |
682 | 682 | ||
683 | if (!bo) | 683 | if (!bo) |