ACPI_DEBUG_PRINT() will replaced with empty when ACPI_DEBUG_OUTPUT is not defined, so #ifdef ACPI_DEBUG_OUTPUT is redundant and can be removed.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- drivers/acpi/numa.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index 8b407fc..b217333 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c @@ -87,16 +87,12 @@ int acpi_map_pxm_to_node(int pxm) static void __init acpi_table_print_srat_entry(struct acpi_subtable_header *header) { - - ACPI_FUNCTION_NAME("acpi_table_print_srat_entry"); - if (!header) return;
switch (header->type) {
case ACPI_SRAT_TYPE_CPU_AFFINITY: -#ifdef ACPI_DEBUG_OUTPUT { struct acpi_srat_cpu_affinity *p = (struct acpi_srat_cpu_affinity *)header; @@ -107,11 +103,9 @@ acpi_table_print_srat_entry(struct acpi_subtable_header *header) (p->flags & ACPI_SRAT_CPU_ENABLED)? "enabled" : "disabled")); } -#endif /* ACPI_DEBUG_OUTPUT */ break;
case ACPI_SRAT_TYPE_MEMORY_AFFINITY: -#ifdef ACPI_DEBUG_OUTPUT { struct acpi_srat_mem_affinity *p = (struct acpi_srat_mem_affinity *)header; @@ -127,11 +121,9 @@ acpi_table_print_srat_entry(struct acpi_subtable_header *header) (p->flags & ACPI_SRAT_MEM_NON_VOLATILE)? " non-volatile" : "")); } -#endif /* ACPI_DEBUG_OUTPUT */ break;
case ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY: -#ifdef ACPI_DEBUG_OUTPUT { struct acpi_srat_x2apic_cpu_affinity *p = (struct acpi_srat_x2apic_cpu_affinity *)header; @@ -143,8 +135,8 @@ acpi_table_print_srat_entry(struct acpi_subtable_header *header) (p->flags & ACPI_SRAT_CPU_ENABLED) ? "enabled" : "disabled")); } -#endif /* ACPI_DEBUG_OUTPUT */ break; + default: pr_warn("Found unsupported SRAT entry (type = 0x%x)\n", header->type);