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

platform/x86: acer-wmi: Don't use ACPI_EXCEPTION()

ACPI_EXCEPTION is only intended for internal use by the ACPICA code.

ACPI_EXCEPTION was being used here to change the apci_status code into
something human-readable, use acpi_format_exception() for this instead,
which is the proper way to do this outside of ACPICA.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210204140205.268344-1-hdegoede@redhat.com

+2 -2
+2 -2
drivers/platform/x86/acer-wmi.c
··· 30 30 #include <linux/input/sparse-keymap.h> 31 31 #include <acpi/video.h> 32 32 33 - ACPI_MODULE_NAME(KBUILD_MODNAME); 34 33 MODULE_AUTHOR("Carlos Corbacho"); 35 34 MODULE_DESCRIPTION("Acer Laptop WMI Extras Driver"); 36 35 MODULE_LICENSE("GPL"); ··· 1604 1605 1605 1606 status = wmi_evaluate_method(WMID_GUID3, 0, 0x2, &input_buf, &output_buf); 1606 1607 if (ACPI_FAILURE(status)) { 1607 - ACPI_EXCEPTION((AE_INFO, status, "Error getting keyboard-dock initial status")); 1608 + pr_err("Error getting keyboard-dock initial status: %s\n", 1609 + acpi_format_exception(status)); 1608 1610 return; 1609 1611 } 1610 1612