* [PATCH] block: Fix building error
@ 2020-09-02 1:36 Baolin Wang
2020-09-02 1:39 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Baolin Wang @ 2020-09-02 1:36 UTC (permalink / raw)
To: axboe; +Cc: ming.lei, hch, baolin.wang, baolin.wang7, linux-block, linux-kernel
The disk argument has been removed by commit 3b843c0bda28
("block: remove the disk argument to delete_partition"), thus
fix a building error caused by an incorrect argument.
Fixes: 3b843c0bda28 ("block: remove the disk argument to delete_partition")
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
---
block/partitions/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/partitions/core.c b/block/partitions/core.c
index cf6229b..dd68114 100644
--- a/block/partitions/core.c
+++ b/block/partitions/core.c
@@ -557,7 +557,7 @@ int bdev_del_partition(struct block_device *bdev, int partno)
sync_blockdev(bdevp);
invalidate_bdev(bdevp);
- delete_partition(bdev->bd_disk);
+ delete_partition(part);
ret = 0;
out_unlock:
mutex_unlock(&bdev->bd_mutex);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] block: Fix building error
2020-09-02 1:36 [PATCH] block: Fix building error Baolin Wang
@ 2020-09-02 1:39 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2020-09-02 1:39 UTC (permalink / raw)
To: Baolin Wang; +Cc: ming.lei, hch, baolin.wang7, linux-block, linux-kernel
On 9/1/20 7:36 PM, Baolin Wang wrote:
> The disk argument has been removed by commit 3b843c0bda28
> ("block: remove the disk argument to delete_partition"), thus
> fix a building error caused by an incorrect argument.
That's my fault, after shuffling things around a bit. I've fixed it up,
thanks for letting me know!
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-02 1:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-02 1:36 [PATCH] block: Fix building error Baolin Wang
2020-09-02 1:39 ` Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.