Skip to content

Commit 2318fa8

Browse files
Dr. David Alan Gilbertweiny2
authored andcommitted
libnvdimm: Remove unused nd_attach_ndns
nd_attach_ndns() hasn't been used since 2017's commit 452bae0 ("libnvdimm: fix nvdimm_bus_lock() vs device_lock() ordering") Remove it. Note the __ version is still used and has been left. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Link: https://patch.msgid.link/20250220004538.84585-3-linux@treblig.org Signed-off-by: Ira Weiny <ira.weiny@intel.com>
1 parent 878a8e1 commit 2318fa8

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

drivers/nvdimm/claim.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,6 @@ bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach,
5656
return true;
5757
}
5858

59-
bool nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach,
60-
struct nd_namespace_common **_ndns)
61-
{
62-
bool claimed;
63-
64-
nvdimm_bus_lock(&attach->dev);
65-
claimed = __nd_attach_ndns(dev, attach, _ndns);
66-
nvdimm_bus_unlock(&attach->dev);
67-
return claimed;
68-
}
69-
7059
static bool is_idle(struct device *dev, struct nd_namespace_common *ndns)
7160
{
7261
struct nd_region *nd_region = to_nd_region(dev->parent);

drivers/nvdimm/nd-core.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ void get_ndd(struct nvdimm_drvdata *ndd);
134134
resource_size_t __nvdimm_namespace_capacity(struct nd_namespace_common *ndns);
135135
void nd_detach_ndns(struct device *dev, struct nd_namespace_common **_ndns);
136136
void __nd_detach_ndns(struct device *dev, struct nd_namespace_common **_ndns);
137-
bool nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach,
138-
struct nd_namespace_common **_ndns);
139137
bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach,
140138
struct nd_namespace_common **_ndns);
141139
ssize_t nd_namespace_store(struct device *dev,

0 commit comments

Comments
 (0)