diff options
author | Christoph Hellwig <hch@lst.de> | 2022-11-29 14:32:54 +0100 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2022-12-02 20:21:01 +0100 |
commit | d57d9d6965502fd0ca95f17180d655f6dc196002 (patch) | |
tree | 10a0a7a2e813525998ce1fcfd7ffb3db7bea3c3f /drivers/md/md.c | |
parent | md: remove lock_bdev / unlock_bdev (diff) | |
download | linux-d57d9d6965502fd0ca95f17180d655f6dc196002.tar.xz linux-d57d9d6965502fd0ca95f17180d655f6dc196002.zip |
md: mark md_kick_rdev_from_array static
md_kick_rdev_from_array is only used in md.c, so unexport it and mark
the symbol static.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 27ce98b018af..94adb4039465 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -2508,12 +2508,11 @@ static void export_rdev(struct md_rdev *rdev) kobject_put(&rdev->kobj); } -void md_kick_rdev_from_array(struct md_rdev *rdev) +static void md_kick_rdev_from_array(struct md_rdev *rdev) { unbind_rdev_from_array(rdev); export_rdev(rdev); } -EXPORT_SYMBOL_GPL(md_kick_rdev_from_array); static void export_array(struct mddev *mddev) { |