mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
libnvdimm: Remove unused nd_attach_ndns
nd_attach_ndns() hasn't been used since 2017's
commit 452bae0aed
("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>
This commit is contained in:
parent
878a8e1ecb
commit
2318fa87f8
@ -56,17 +56,6 @@ bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach,
|
||||
struct nd_namespace_common **_ndns)
|
||||
{
|
||||
bool claimed;
|
||||
|
||||
nvdimm_bus_lock(&attach->dev);
|
||||
claimed = __nd_attach_ndns(dev, attach, _ndns);
|
||||
nvdimm_bus_unlock(&attach->dev);
|
||||
return claimed;
|
||||
}
|
||||
|
||||
static bool is_idle(struct device *dev, struct nd_namespace_common *ndns)
|
||||
{
|
||||
struct nd_region *nd_region = to_nd_region(dev->parent);
|
||||
|
@ -134,8 +134,6 @@ void get_ndd(struct nvdimm_drvdata *ndd);
|
||||
resource_size_t __nvdimm_namespace_capacity(struct nd_namespace_common *ndns);
|
||||
void nd_detach_ndns(struct device *dev, struct nd_namespace_common **_ndns);
|
||||
void __nd_detach_ndns(struct device *dev, struct nd_namespace_common **_ndns);
|
||||
bool nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach,
|
||||
struct nd_namespace_common **_ndns);
|
||||
bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach,
|
||||
struct nd_namespace_common **_ndns);
|
||||
ssize_t nd_namespace_store(struct device *dev,
|
||||
|
Loading…
Reference in New Issue
Block a user