提交 82a13a00 编写于 作者: D Dan Williams 提交者: Greg Kroah-Hartman

nfit/ars: Remove ars_start_flags

commit 317a992ab9266b86b774b9f6b0f87eb4f59879a1 upstream.

The ars_start_flags property of 'struct acpi_nfit_desc' is no longer
used since ARS_REQ_SHORT and ARS_REQ_LONG were added.
Reviewed-by: NToshi Kani <toshi.kani@hpe.com>
Signed-off-by: NDan Williams <dan.j.williams@intel.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
上级 cd37fd46
...@@ -2539,11 +2539,11 @@ static int ars_continue(struct acpi_nfit_desc *acpi_desc) ...@@ -2539,11 +2539,11 @@ static int ars_continue(struct acpi_nfit_desc *acpi_desc)
struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc;
struct nd_cmd_ars_status *ars_status = acpi_desc->ars_status; struct nd_cmd_ars_status *ars_status = acpi_desc->ars_status;
memset(&ars_start, 0, sizeof(ars_start)); ars_start = (struct nd_cmd_ars_start) {
ars_start.address = ars_status->restart_address; .address = ars_status->restart_address,
ars_start.length = ars_status->restart_length; .length = ars_status->restart_length,
ars_start.type = ars_status->type; .type = ars_status->type,
ars_start.flags = acpi_desc->ars_start_flags; };
rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_START, &ars_start, rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_START, &ars_start,
sizeof(ars_start), &cmd_rc); sizeof(ars_start), &cmd_rc);
if (rc < 0) if (rc < 0)
......
...@@ -194,7 +194,6 @@ struct acpi_nfit_desc { ...@@ -194,7 +194,6 @@ struct acpi_nfit_desc {
struct list_head idts; struct list_head idts;
struct nvdimm_bus *nvdimm_bus; struct nvdimm_bus *nvdimm_bus;
struct device *dev; struct device *dev;
u8 ars_start_flags;
struct nd_cmd_ars_status *ars_status; struct nd_cmd_ars_status *ars_status;
struct nfit_spa *scrub_spa; struct nfit_spa *scrub_spa;
struct delayed_work dwork; struct delayed_work dwork;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册