summaryrefslogtreecommitdiff
path: root/include/linux/raid_class.h
diff options
context:
space:
mode:
authorZhu Wang <wangzhu9@huawei.com>2023-08-22 01:52:54 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-30 16:35:16 +0200
commita6a0e8e39435ede8f307070eb86b6ade50fa383e (patch)
tree45eba82d9ee46af4d2e73dd73d04627d359f87cc /include/linux/raid_class.h
parent284bbc1a85a0679247cbec40f0eb62d483f88c3f (diff)
scsi: core: raid_class: Remove raid_component_add()
commit 60c5fd2e8f3c42a5abc565ba9876ead1da5ad2b7 upstream. The raid_component_add() function was added to the kernel tree via patch "[SCSI] embryonic RAID class" (2005). Remove this function since it never has had any callers in the Linux kernel. And also raid_component_release() is only used in raid_component_add(), so it is also removed. Signed-off-by: Zhu Wang <wangzhu9@huawei.com> Link: https://lore.kernel.org/r/20230822015254.184270-1-wangzhu9@huawei.com Reviewed-by: Bart Van Assche <bvanassche@acm.org> Fixes: 04b5b5cb0136 ("scsi: core: Fix possible memory leak if device_add() fails") Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/raid_class.h')
-rw-r--r--include/linux/raid_class.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/raid_class.h b/include/linux/raid_class.h
index 31e1ff69efc8..5c0700a3d1df 100644
--- a/include/linux/raid_class.h
+++ b/include/linux/raid_class.h
@@ -77,7 +77,3 @@ DEFINE_RAID_ATTRIBUTE(enum raid_state, state)
struct raid_template *raid_class_attach(struct raid_function_template *);
void raid_class_release(struct raid_template *);
-
-int __must_check raid_component_add(struct raid_template *, struct device *,
- struct device *);
-