Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI, APEI, Remove table not found message

Because APEI tables are optional, these message may confuse users, for
example,

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/599715

Reported-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Huang Ying and committed by
Len Brown
ad686154 46b91e37

+6 -9
+2 -3
drivers/acpi/apei/einj.c
··· 466 466 467 467 status = acpi_get_table(ACPI_SIG_EINJ, 0, 468 468 (struct acpi_table_header **)&einj_tab); 469 - if (status == AE_NOT_FOUND) { 470 - pr_info(EINJ_PFX "Table is not found!\n"); 469 + if (status == AE_NOT_FOUND) 471 470 return -ENODEV; 472 - } else if (ACPI_FAILURE(status)) { 471 + else if (ACPI_FAILURE(status)) { 473 472 const char *msg = acpi_format_exception(status); 474 473 pr_err(EINJ_PFX "Failed to get table, %s\n", msg); 475 474 return -EINVAL;
+2 -3
drivers/acpi/apei/erst.c
··· 1125 1125 1126 1126 status = acpi_get_table(ACPI_SIG_ERST, 0, 1127 1127 (struct acpi_table_header **)&erst_tab); 1128 - if (status == AE_NOT_FOUND) { 1129 - pr_info(ERST_PFX "Table is not found!\n"); 1128 + if (status == AE_NOT_FOUND) 1130 1129 goto err; 1131 - } else if (ACPI_FAILURE(status)) { 1130 + else if (ACPI_FAILURE(status)) { 1132 1131 const char *msg = acpi_format_exception(status); 1133 1132 pr_err(ERST_PFX "Failed to get table, %s\n", msg); 1134 1133 rc = -EINVAL;
+2 -3
drivers/acpi/apei/hest.c
··· 221 221 222 222 status = acpi_get_table(ACPI_SIG_HEST, 0, 223 223 (struct acpi_table_header **)&hest_tab); 224 - if (status == AE_NOT_FOUND) { 225 - pr_info(HEST_PFX "Table not found.\n"); 224 + if (status == AE_NOT_FOUND) 226 225 goto err; 227 - } else if (ACPI_FAILURE(status)) { 226 + else if (ACPI_FAILURE(status)) { 228 227 const char *msg = acpi_format_exception(status); 229 228 pr_err(HEST_PFX "Failed to get table, %s\n", msg); 230 229 rc = -EINVAL;