ACPICA: Fix indentation
Subsystems (2)
PATCH 1/1 ACPICA: Fix indentation
This patch avoids that smatch reports the following:drivers/acpi/acpica/exdump.c:623 acpi_ex_dump_operand() warn: inconsistent indenting
--- drivers/acpi/acpica/exdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/acpi/acpica/exdump.c +2 -2
@@ -619,8 +619,8 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth)ACPI_FUNCTION_NAME (ex_dump_operand) -/* Check if debug output enabled */ - if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_EXEC, _COMPONENT)) { +/* Check if debug output enabled */ + if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_EXEC, _COMPONENT)) {return ; }
Signature · 1 line
1.9.1
Rafael J. Wysocki
maintainerQuoted 4 lines · Vasyl Gomonovych
This patch avoids that smatch reports the following:
drivers/acpi/acpica/exdump.c:623acpi_ex_dump_operand()warn: inconsistent indentingSigned-off-by Vasyl Gomonovych <gomonovych(a)gmail.com>
This is ACPICA code, so changes like this should go in via the upstream.
Erik may want to pick this up, however.
Quoted 20 lines
--- drivers/acpi/acpica/exdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/acpi/acpica/exdump.c +2
-3@@ -619,8 +619,8 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth)ACPI_FUNCTION_NAME (ex_dump_operand) -/* Check if debug output enabled */ - if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_EXEC, _COMPONENT)) { +/* Check if debug output enabled */ + if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_EXEC, _COMPONENT)) {return ; } --
This type of thing more often than not is caused by running the code through indent (lindent).
Original ACPICA code:
ACPI_FUNCTION_NAME (ExDumpOperand)
/* Check if debug output enabled */
if (!ACPI_IS_DEBUG_ENABLED (ACPI_LV_EXEC, _COMPONENT))
{
return;
}Raw "linuxized" code:
ACPI_FUNCTION_NAME (ex_dump_operand)
/* Check if debug output enabled */
if (!ACPI_IS_DEBUG_ENABLED (ACPI_LV_EXEC, _COMPONENT)) {
return;
}Quoted 45 lines
-----Original Message-----
From: rjwysocki(a)gmail.com [mailto:rjwysocki(a)gmail.com] On Behalf Of Rafael J. Wysocki
Sent: Friday, December 8, 2017 9:06 AM
To: Vasyl Gomonovych <gomonovych(a)gmail.com>
Cc: Moore, Robert <robert.moore(a)intel.com>; Zheng, Lv <lv.zheng(a)intel.com>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com>; Len Brown <lenb(a)kernel.org>; ACPI Devel Maling List <linux- acpi(a)vger.kernel.org>; devel(a)acpica.org; Linux Kernel Mailing List <linux-kernel(a)vger.kernel.org>; Schmauss, Erik <erik.schmauss(a)intel.com>
Subject: Re: [PATCH] ACPICA: Fix indentationQuoted 5 lines · Vasyl Gomonovych
This patch avoids that smatch reports the following:
drivers/acpi/acpica/exdump.c:623acpi_ex_dump_operand()warn:
inconsistent indentingSigned-off-by Vasyl Gomonovych <gomonovych(a)gmail.com>This is ACPICA code, so changes like this should go in via the upstream.
Erik may want to pick this up, however.
Quoted 21 lines
--- drivers/acpi/acpica/exdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/acpi/acpica/exdump.cindex 83398dc..f43d3d7 100644drivers/acpi/acpica/exdump.c +2
-3@@ -619,8 +619,8 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth) ACPI_FUNCTION_NAME(ex_dump_operand) - /* Check if debug output enabled */ - if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_EXEC, _COMPONENT)) { + /* Check if debug output enabled */ + if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_EXEC, _COMPONENT)) {return ; } --
Quoted 15 lines
-----Original Message-----
From: rjwysocki(a)gmail.com [mailto:rjwysocki(a)gmail.com] On Behalf Of Rafael J. Wysocki
Sent: Friday, December 8, 2017 9:06 AM
To: Vasyl Gomonovych <gomonovych(a)gmail.com>
Cc: Moore, Robert <robert.moore(a)intel.com>; Zheng, Lv <lv.zheng(a)intel.com>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com>; Len Brown <lenb(a)kernel.org>; ACPI Devel Maling List <linux-acpi(a)vger.kernel.org>; devel(a)acpica.org; Linux Kernel Mailing List <linux-kernel(a)vger.kernel.org>; Schmauss, Erik <erik.schmauss(a)intel.com>
Subject: Re: [PATCH] ACPICA: Fix indentationOn Fri, Dec 8, 2017 at 5:29 PM, Vasyl Gomonovych <gomonovych(a)gmail.com> wrote:
Quoted 8 lines
Quoted 5 lines
This patch avoids that smatch reports the following:
drivers/acpi/acpica/exdump.c:623acpi_ex_dump_operand()warn:
inconsistent indentingSigned-off-by Vasyl Gomonovych <gomonovych(a)gmail.com>This is ACPICA code, so changes like this should go in via the upstream.
Hi,
Quoted 2 lines
Erik may want to pick this up, however.
Thanks for pointing this out. I found solution to fix the indentation issue. It will be in the next release. Erik
Quoted 21 lines
Quoted 21 lines
--- drivers/acpi/acpica/exdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/acpi/acpica/exdump.cindex 83398dc..f43d3d7 100644drivers/acpi/acpica/exdump.c +2
-3@@ -619,8 +619,8 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth) ACPI_FUNCTION_NAME(ex_dump_operand) - /* Check if debug output enabled */ - if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_EXEC, _COMPONENT)) { + /* Check if debug output enabled */ + if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_EXEC, _COMPONENT)) {return ; } --
Rafael J. Wysocki
maintainerQuoted 21 lines · Erik
Quoted 21 lines
-----Original Message-----
From: rjwysocki(a)gmail.com [mailto:rjwysocki(a)gmail.com] On Behalf Of Rafael J. Wysocki
Sent: Friday, December 8, 2017 9:06 AM
To: Vasyl Gomonovych <gomonovych(a)gmail.com>
Cc: Moore, Robert <robert.moore(a)intel.com>; Zheng, Lv <lv.zheng(a)intel.com>; Wysocki, Rafael J <rafael.j.wysocki(a)intel.com>; Len Brown <lenb(a)kernel.org>; ACPI Devel Maling List <linux-acpi(a)vger.kernel.org>; devel(a)acpica.org; Linux Kernel Mailing List <linux-kernel(a)vger.kernel.org>; Schmauss, Erik <erik.schmauss(a)intel.com>
Subject: Re: [PATCH] ACPICA: Fix indentationQuoted 5 lines · Vasyl Gomonovych
This patch avoids that smatch reports the following:
drivers/acpi/acpica/exdump.c:623acpi_ex_dump_operand()warn:
inconsistent indentingSigned-off-by Vasyl Gomonovych <gomonovych(a)gmail.com>
Quoted 8 lines
Quoted 2 lines
This is ACPICA code, so changes like this should go in via the upstream.
Hi,
Quoted 2 lines
Erik may want to pick this up, however.
Thanks for pointing this out. I found solution to fix the indentation issue. It will be in the next release.
Cool, thanks!