|
@@ -642,7 +642,7 @@ static int __erst_write_to_storage(u64 offset)
|
|
|
int rc;
|
|
|
|
|
|
erst_exec_ctx_init(&ctx);
|
|
|
- rc = apei_exec_run(&ctx, ACPI_ERST_BEGIN_WRITE);
|
|
|
+ rc = apei_exec_run_optional(&ctx, ACPI_ERST_BEGIN_WRITE);
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
apei_exec_ctx_set_input(&ctx, offset);
|
|
@@ -666,7 +666,7 @@ static int __erst_write_to_storage(u64 offset)
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
val = apei_exec_ctx_get_output(&ctx);
|
|
|
- rc = apei_exec_run(&ctx, ACPI_ERST_END);
|
|
|
+ rc = apei_exec_run_optional(&ctx, ACPI_ERST_END);
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
|
|
@@ -681,7 +681,7 @@ static int __erst_read_from_storage(u64 record_id, u64 offset)
|
|
|
int rc;
|
|
|
|
|
|
erst_exec_ctx_init(&ctx);
|
|
|
- rc = apei_exec_run(&ctx, ACPI_ERST_BEGIN_READ);
|
|
|
+ rc = apei_exec_run_optional(&ctx, ACPI_ERST_BEGIN_READ);
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
apei_exec_ctx_set_input(&ctx, offset);
|
|
@@ -709,7 +709,7 @@ static int __erst_read_from_storage(u64 record_id, u64 offset)
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
val = apei_exec_ctx_get_output(&ctx);
|
|
|
- rc = apei_exec_run(&ctx, ACPI_ERST_END);
|
|
|
+ rc = apei_exec_run_optional(&ctx, ACPI_ERST_END);
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
|
|
@@ -724,7 +724,7 @@ static int __erst_clear_from_storage(u64 record_id)
|
|
|
int rc;
|
|
|
|
|
|
erst_exec_ctx_init(&ctx);
|
|
|
- rc = apei_exec_run(&ctx, ACPI_ERST_BEGIN_CLEAR);
|
|
|
+ rc = apei_exec_run_optional(&ctx, ACPI_ERST_BEGIN_CLEAR);
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
apei_exec_ctx_set_input(&ctx, record_id);
|
|
@@ -748,7 +748,7 @@ static int __erst_clear_from_storage(u64 record_id)
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
val = apei_exec_ctx_get_output(&ctx);
|
|
|
- rc = apei_exec_run(&ctx, ACPI_ERST_END);
|
|
|
+ rc = apei_exec_run_optional(&ctx, ACPI_ERST_END);
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
|