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

ACPI: sysfs: Get rid of ACPICA message printing

Replace the only ACPI_EXCEPTION() instance in sysfs.c with a
pr_warn() call, drop the _COMPONENT and ACPI_MODULE_NAME()
definitions that are not used any more and drop the
ACPI_SYSTEM_COMPONENT definition that would not be used any
more in a meaningful way after the above changes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>

+1 -8
-1
Documentation/firmware-guide/acpi/debug.rst
··· 55 55 ACPI_SBS_COMPONENT 0x00100000 56 56 ACPI_FAN_COMPONENT 0x00200000 57 57 ACPI_CONTAINER_COMPONENT 0x01000000 58 - ACPI_SYSTEM_COMPONENT 0x02000000 59 58 ACPI_MEMORY_DEVICE_COMPONENT 0x08000000 60 59 61 60 debug_level
+1 -6
drivers/acpi/sysfs.c
··· 12 12 13 13 #include "internal.h" 14 14 15 - #define _COMPONENT ACPI_SYSTEM_COMPONENT 16 - ACPI_MODULE_NAME("sysfs"); 17 - 18 15 #ifdef CONFIG_ACPI_DEBUG 19 16 /* 20 17 * ACPI debug sysfs I/F, including: ··· 52 55 ACPI_DEBUG_INIT(ACPI_SBS_COMPONENT), 53 56 ACPI_DEBUG_INIT(ACPI_FAN_COMPONENT), 54 57 ACPI_DEBUG_INIT(ACPI_CONTAINER_COMPONENT), 55 - ACPI_DEBUG_INIT(ACPI_SYSTEM_COMPONENT), 56 58 ACPI_DEBUG_INIT(ACPI_MEMORY_DEVICE_COMPONENT), 57 59 }; 58 60 ··· 646 650 if (index < num_gpes) { 647 651 status = acpi_get_gpe_device(index, handle); 648 652 if (ACPI_FAILURE(status)) { 649 - ACPI_EXCEPTION((AE_INFO, AE_NOT_FOUND, 650 - "Invalid GPE 0x%x", index)); 653 + pr_warn("Invalid GPE 0x%x", index); 651 654 return -ENXIO; 652 655 } 653 656 status = acpi_get_gpe_status(*handle, index, ret);
-1
include/acpi/acpi_drivers.h
··· 18 18 #define ACPI_SBS_COMPONENT 0x00100000 19 19 #define ACPI_FAN_COMPONENT 0x00200000 20 20 #define ACPI_CONTAINER_COMPONENT 0x01000000 21 - #define ACPI_SYSTEM_COMPONENT 0x02000000 22 21 #define ACPI_MEMORY_DEVICE_COMPONENT 0x08000000 23 22 24 23 /*