Re: [PATCH v5] ACPI / APEI: fix the regression of synchronous external aborts occur in user-mode

2021-04-10 Thread Xiaofei Tan
Hi James, Boris a friendly ping.. any comments for this ? On 2021/2/5 20:55, Rafael J. Wysocki wrote: On Tue, Jan 26, 2021 at 2:32 PM tanxiaofei wrote: @James Hi James, please help to review this patch. Thank you very much. :) James, Boris, any comments? On 2020/12/10 20:09, Xiaofei Tan

[PATCH v3 06/10] tty: tty_ldisc: Fix an issue of code indent should use tabs

2021-04-07 Thread Xiaofei Tan
Fix an issue of code indent should use tabs, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 1ba74d6..2992319 100644 --- a/drivers/tty

[PATCH v3 08/10] tty: tty_ldisc: Fix coding style issues of block comments

2021-04-07 Thread Xiaofei Tan
Fix coding style issues of block comments, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index df0b589

[PATCH v3 10/10] tty: tty_ldisc: Remove the repeated word 'the'

2021-04-07 Thread Xiaofei Tan
Remove the repeated word 'the' following advice of checkpatch.pl Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 56e67f7..fdc4fa3 100644 --- a/drivers/tty

[PATCH v3 04/10] tty: tty_jobctrl: Fix coding style issues of block comments

2021-04-07 Thread Xiaofei Tan
Fix coding style issues of block comments, reported by checkpatch.pl. Besides, do some expression optimization for the sentenses. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/tty

[PATCH v3 09/10] tty: tty_ldisc: Do not use assignment in if condition

2021-04-07 Thread Xiaofei Tan
Do not use assignment in if condition following the advice of checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 874d238..56e67f7 100644 --- a/drivers

[PATCH v3 05/10] tty: tty_jobctrl: Remove spaces before tabs

2021-04-07 Thread Xiaofei Tan
Remove spaces before tabs following the advice of checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/tty_jobctrl.c b/drivers/tty/tty_jobctrl.c index 5b4ab16..72df97b 100644 --- a/drivers

[PATCH v3 07/10] tty: tty_ldisc: Add a blank line after declarations

2021-04-07 Thread Xiaofei Tan
Add a blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 2992319..df0b589 100644 --- a/drivers/tty/tty_ldisc.c +++ b

[PATCH v3 02/10] tty/sysrq: Fix issues of code indent should use tabs

2021-04-07 Thread Xiaofei Tan
Fix issues of code indent should use tabs, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/sysrq.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 0372ed7..6628792

[PATCH v3 01/10] tty/sysrq: Add a blank line after declarations

2021-04-07 Thread Xiaofei Tan
Add a blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/sysrq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 959f9e1..0372ed7 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c

[PATCH v3 00/10] tty: Fix some coding style issues

2021-04-07 Thread Xiaofei Tan
optimization for some sentenses following - Jiri's advice for the patch 04/10. Xiaofei Tan (10): tty/sysrq: Add a blank line after declarations tty/sysrq: Fix issues of code indent should use tabs tty: tty_jobctrl: Add a blank line after declarations tty: tty_jobctrl: Fix coding style issues of block

[PATCH v3 03/10] tty: tty_jobctrl: Add a blank line after declarations

2021-04-07 Thread Xiaofei Tan
Add a blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/tty/tty_jobctrl.c b/drivers/tty/tty_jobctrl.c index 4b751b9..86070f7 100644 --- a/drivers/tty/tty_jobctrl.c

Re: [PATCH v2 04/10] tty: tty_jobctrl: Fix coding style issues of block comments

2021-04-07 Thread Xiaofei Tan
Hi Jiri, On 2021/4/7 13:26, Jiri Slaby wrote: On 06. 04. 21, 13:24, Xiaofei Tan wrote: Fix coding style issues of block comments, reported by checkpatch.pl. Besides, do some expression optimization for the sentenses. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 16

[PATCH v2 09/10] tty: tty_ldisc: Do not use assignment in if condition

2021-04-06 Thread Xiaofei Tan
Do not use assignment in if condition following the advice of checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 874d238..56e67f7 100644 --- a/drivers

[PATCH v2 02/10] tty/sysrq: Fix issues of code indent should use tabs

2021-04-06 Thread Xiaofei Tan
Fix issues of code indent should use tabs, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/sysrq.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 0372ed7..6628792

[PATCH v2 07/10] tty: tty_ldisc: Add a blank line after declarations

2021-04-06 Thread Xiaofei Tan
Add a blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 2992319..df0b589 100644 --- a/drivers/tty/tty_ldisc.c +++ b

[PATCH v2 03/10] tty: tty_jobctrl: Add a blank line after declarations

2021-04-06 Thread Xiaofei Tan
Add a blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/tty/tty_jobctrl.c b/drivers/tty/tty_jobctrl.c index 4b751b9..86070f7 100644 --- a/drivers/tty/tty_jobctrl.c

[PATCH v2 10/10] tty: tty_ldisc: Remove the repeated word 'the'

2021-04-06 Thread Xiaofei Tan
Remove the repeated word 'the' following advice of checkpatch.pl Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 56e67f7..fdc4fa3 100644 --- a/drivers/tty

[PATCH v2 08/10] tty: tty_ldisc: Fix coding style issues of block comments

2021-04-06 Thread Xiaofei Tan
Fix coding style issues of block comments, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index df0b589

[PATCH v2 01/10] tty/sysrq: Add a blank line after declarations

2021-04-06 Thread Xiaofei Tan
Add a blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/sysrq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 959f9e1..0372ed7 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c

[PATCH v2 04/10] tty: tty_jobctrl: Fix coding style issues of block comments

2021-04-06 Thread Xiaofei Tan
Fix coding style issues of block comments, reported by checkpatch.pl. Besides, do some expression optimization for the sentenses. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/tty

[PATCH v2 00/10] tty: Fix some coding style issues

2021-04-06 Thread Xiaofei Tan
Fix some issues reported by checkpatch.pl. All of them are coding style issues, no function changes. Differences from v1 to v2: - Remove one redundant tab for the patch 02/10. - Add some expression optimization for some sentenses following - Jiri's advice for the patch 04/10. Xiaofei Tan (10

[PATCH v2 06/10] tty: tty_ldisc: Fix an issue of code indent should use tabs

2021-04-06 Thread Xiaofei Tan
Fix an issue of code indent should use tabs, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 1ba74d6..2992319 100644 --- a/drivers/tty

[PATCH v2 05/10] tty: tty_jobctrl: Remove spaces before tabs

2021-04-06 Thread Xiaofei Tan
Remove spaces before tabs following the advice of checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/tty_jobctrl.c b/drivers/tty/tty_jobctrl.c index 7003b6b..9cbb08a 100644 --- a/drivers

Re: [PATCH 04/10] tty: tty_jobctrl: Fix coding style issues of block comments

2021-04-06 Thread Xiaofei Tan
Hi Jiri, On 2021/4/6 12:42, Jiri Slaby wrote: On 05. 04. 21, 5:34, Xiaofei Tan wrote: Fix coding style issues of block comments, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions

Re: [PATCH 02/10] tty/sysrq: Fix issues of code indent should use tabs

2021-04-05 Thread Xiaofei Tan
On 2021/4/5 11:34, Xiaofei Tan wrote: Fix issues of code indent should use tabs, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/sysrq.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/tty/sysrq.c b

[PATCH 10/10] tty: tty_ldisc: Remove the repeated word 'the'

2021-04-04 Thread Xiaofei Tan
Remove the repeated word 'the' following advice of checkpatch.pl Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 56e67f7..fdc4fa3 100644 --- a/drivers/tty

[PATCH 06/10] tty: tty_ldisc: Fix an issue of code indent should use tabs

2021-04-04 Thread Xiaofei Tan
Fix an issue of code indent should use tabs, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 1ba74d6..2992319 100644 --- a/drivers/tty

[PATCH 08/10] tty: tty_ldisc: Fix coding style issues of block comments

2021-04-04 Thread Xiaofei Tan
Fix coding style issues of block comments, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index df0b589

[PATCH 09/10] tty: tty_ldisc: Do not use assignment in if condition

2021-04-04 Thread Xiaofei Tan
Do not use assignment in if condition following the advice of checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 874d238..56e67f7 100644 --- a/drivers

[PATCH 01/10] tty/sysrq: Add a blank line after declarations

2021-04-04 Thread Xiaofei Tan
Add a blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/sysrq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 959f9e1..0372ed7 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c

[PATCH 05/10] tty: tty_jobctrl: Remove spaces before tabs

2021-04-04 Thread Xiaofei Tan
Remove spaces before tabs following the advice of checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/tty_jobctrl.c b/drivers/tty/tty_jobctrl.c index 4d78422..2f7d4ba 100644 --- a/drivers

[PATCH 04/10] tty: tty_jobctrl: Fix coding style issues of block comments

2021-04-04 Thread Xiaofei Tan
Fix coding style issues of block comments, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/tty/tty_jobctrl.c b/drivers/tty/tty_jobctrl.c index 86070f7..4d78422

[PATCH 07/10] tty: tty_ldisc: Add a blank line after declarations

2021-04-04 Thread Xiaofei Tan
Add a blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_ldisc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 2992319..df0b589 100644 --- a/drivers/tty/tty_ldisc.c +++ b

[PATCH 02/10] tty/sysrq: Fix issues of code indent should use tabs

2021-04-04 Thread Xiaofei Tan
Fix issues of code indent should use tabs, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/sysrq.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 0372ed7..1ece100

[PATCH 00/10] tty: Fix some coding style issues

2021-04-04 Thread Xiaofei Tan
Fix some issues reported by checkpatch.pl. All of them are coding style issues, no function changes. Xiaofei Tan (10): tty/sysrq: Add a blank line after declarations tty/sysrq: Fix issues of code indent should use tabs tty: tty_jobctrl: Add a blank line after declarations tty: tty_jobctrl

[PATCH 03/10] tty: tty_jobctrl: Add a blank line after declarations

2021-04-04 Thread Xiaofei Tan
Add a blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/tty/tty_jobctrl.c b/drivers/tty/tty_jobctrl.c index 4b751b9..86070f7 100644 --- a/drivers/tty/tty_jobctrl.c

[PATCH] tty: pty: Add a blank line after declarations

2021-04-02 Thread Xiaofei Tan
Add a blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/pty.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c index 5e23745..106265a 100644 --- a/drivers/tty/pty.c +++ b/drivers/tty/pty.c @@ -159,6

[PATCH RFC for-next 1/1] arm64: sve: Fix some compile errors about sve_cond_update_zcr_vq

2021-03-31 Thread Xiaofei Tan
); ^~ kvm_pmu_update_run The root cause is that sve_cond_update_zcr_vq is not defined when ARM64_SVE is not selected. Fix it by adding an empty definition when CONFIG_ARM64_SVE=n. Signed-off-by: Xiaofei Tan --- arch/arm64/include/asm/fpsimd.h | 2 ++ 1 file changed, 2 insertions

Re: [PATCH v2 04/15] ACPI: table: replace __attribute__((packed)) by __packed

2021-03-29 Thread Xiaofei Tan
Hi David, On 2021/3/29 18:09, David Laight wrote: From: Xiaofei Tan Sent: 27 March 2021 07:46 Replace __attribute__((packed)) by __packed following the advice of checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_fpdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

Re: [Linuxarm] Re: [PATCH v3 00/12] acpi: fix some coding style issues

2021-03-29 Thread Xiaofei Tan
Hi Rafael, On 2021/3/29 20:50, Rafael J. Wysocki wrote: On Sat, Mar 27, 2021 at 1:11 PM Xiaofei Tan wrote: Fix some coding style issues reported by checkpatch.pl. Only cleanup and no function changes. Differences from v2 to v3: - Remove the modifications that may cause function change

[PATCH v3 04/12] ACPI: LPSS: add a missed blank line after declarations

2021-03-27 Thread Xiaofei Tan
Add a missed blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_lpss.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c index be73974..ca742f1 100644 --- a/drivers/acpi/acpi_lpss.c

[PATCH v3 09/12] ACPI: custom_method: fix a coding style issue

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl ERROR: "foo * bar" should be "foo *bar" FILE: drivers/acpi/custom_method.c:22: +static ssize_t cm_write(struct file *file, const char __user * user_buf, Signed-off-by: Xiaofei Tan --- drivers/acpi/custom_met

[PATCH v3 01/12] ACPI: APD: fix a block comment align issue

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl. WARNING: Block comments should align the * on each line +/** +* Create platform device during acpi scan attach handle. Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_apd.c | 8 1 file changed, 4 insertions(+), 4

[PATCH v3 03/12] ACPI: ipmi: remove useless return statement for void function

2021-03-27 Thread Xiaofei Tan
Remove useless return statement for void function, reported by checkpatch.pl. WARNING: void function return statements are not generally useful FILE: drivers/acpi/acpi_ipmi.c:482: + return; +} Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_ipmi.c | 1 - 1 file changed, 1 deletion

[PATCH v3 05/12] ACPI: acpi_pad: add a missed blank line after declarations

2021-03-27 Thread Xiaofei Tan
Add a missed blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_pad.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index b84ab72..df4adeb 100644 --- a/drivers/acpi/acpi_pad.c

[PATCH v3 11/12] ACPI: sysfs: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: Missing a blank line after declarations WARNING: Block comments should align the * on each line ERROR: open brace '{' following function definitions go on the next line Signed-off-by: Xiaofei Tan

[PATCH v3 06/12] ACPI: battery: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
ERROR: spaces required around that '?' (ctx:WxV) WARNING: Block comments should align the * on each line Signed-off-by: Xiaofei Tan --- drivers/acpi/battery.c | 63 +++--- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/drivers/acpi

[PATCH v3 12/12] ACPI: dock: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: Missing a blank line after declarations ERROR: spaces required around that ':' WARNING: Statements should start on a tabstop Signed-off-by: Xiaofei Tan --- drivers/acpi/dock.c | 7 +-- 1 file

[PATCH v3 10/12] ACPI: PM: add a missed blank line after declarations

2021-03-27 Thread Xiaofei Tan
Add a missed blank line after declarations, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/acpi/device_pm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index 0961537..16c0fe8 100644 --- a/drivers/acpi/device_pm.c

[PATCH v3 00/12] acpi: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
module name for some patch names. Xiaofei Tan (12): ACPI: APD: fix a block comment align issue ACPI: processor: fix some coding style issues ACPI: ipmi: remove useless return statement for void function ACPI: LPSS: add a missed blank line after declarations ACPI: acpi_pad: add a missed

[PATCH v3 08/12] ACPI: CPPC: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
off-by: Xiaofei Tan --- drivers/acpi/cppc_acpi.c | 71 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c index ae53740..3dbaf47 100644 --- a/drivers/acpi/cppc_acpi.c +++ b/drivers/a

[PATCH v3 02/12] ACPI: processor: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
-by: Xiaofei Tan --- drivers/acpi/acpi_processor.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c index fc89f3a..2d5bd2a 100644 --- a/drivers/acpi/acpi_processor.c +++ b/drivers/acpi/acpi_processor.c

[PATCH v3 07/12] ACPI: button: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: Block comments use * on subsequent lines WARNING: Block comments use a trailing */ on a separate line ERROR: code indent should use tabs where possible Signed-off-by: Xiaofei Tan --- drivers/acpi

Re: [PATCH 00/15] acpi: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
OK. thanks for reviewing this patch set. On 2021/3/27 16:21, Andy Shevchenko wrote: On Saturday, March 27, 2021, Xiaofei Tan mailto:tanxiao...@huawei.com>> wrote: Fix some coding style issues reported by checkpatch.pl <http://checkpatch.pl>. NAK until it’s proven t

Re: [PATCH v2 06/15] ACPI: LPSS: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Hi Andy, On 2021/3/27 16:19, Andy Shevchenko wrote: On Saturday, March 27, 2021, Xiaofei Tan mailto:tanxiao...@huawei.com>> wrote: Fix some coding style issues reported by checkpatch.pl <http://checkpatch.pl>, including following types: WARNING: simple_strtol

Re: [PATCH v2 06/15] ACPI: LPSS: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Hi Andy, On 2021/3/27 16:17, Andy Shevchenko wrote: On Saturday, March 27, 2021, Xiaofei Tan mailto:tanxiao...@huawei.com>> wrote: Fix some coding style issues reported by checkpatch.pl <http://checkpatch.pl>, including following types: WARNING: simple_strtol

[PATCH v2 02/15] ACPI: processor: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
-by: Xiaofei Tan --- drivers/acpi/acpi_processor.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c index fc89f3a..2d5bd2a 100644 --- a/drivers/acpi/acpi_processor.c +++ b/drivers/acpi/acpi_processor.c

[PATCH v2 10/15] ACPI: button: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: Block comments use * on subsequent lines WARNING: Block comments use a trailing */ on a separate line ERROR: code indent should use tabs where possible Signed-off-by: Xiaofei Tan --- drivers/acpi

[PATCH v2 11/15] ACPI: CPPC: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
off-by: Xiaofei Tan --- drivers/acpi/cppc_acpi.c | 71 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c index ae53740..3dbaf47 100644 --- a/drivers/acpi/cppc_acpi.c +++ b/drivers/a

[PATCH v2 13/15] ACPI: PM: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl WARNING: Missing a blank line after declarations Signed-off-by: Xiaofei Tan --- drivers/acpi/device_pm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index 0961537

[PATCH v2 09/15] ACPI: battery: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
ERROR: spaces required around that '?' (ctx:WxV) WARNING: Block comments should align the * on each line Signed-off-by: Xiaofei Tan --- drivers/acpi/battery.c | 64 ++ 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/drivers/acpi

[PATCH v2 06/15] ACPI: LPSS: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: simple_strtol is obsolete, use kstrtol instead WARNING: Missing a blank line after declarations Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_lpss.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH v2 12/15] ACPI: custom_method: fix a coding style issue

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl ERROR: "foo * bar" should be "foo *bar" FILE: drivers/acpi/custom_method.c:22: +static ssize_t cm_write(struct file *file, const char __user * user_buf, Signed-off-by: Xiaofei Tan --- drivers/acpi/custom_met

[PATCH v2 07/15] ACPI: memhotplug: fix a coding style issue

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl WARNING: __initdata should be placed after acpi_no_memhotplug FILE: drivers/acpi/acpi_memhotplug.c:326: +static bool __initdata acpi_no_memhotplug; Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_memhotplug.c | 2 +- 1 file

[PATCH v2 08/15] ACPI: acpi_pad: fix a coding style issue

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl WARNING: Missing a blank line after declarations Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_pad.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index b84ab72

[PATCH v2 15/15] ACPI: dock: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: Missing a blank line after declarations ERROR: spaces required around that ':' WARNING: Statements should start on a tabstop Signed-off-by: Xiaofei Tan --- drivers/acpi/dock.c | 7 +-- 1 file

[PATCH v2 14/15] ACPI: sysfs: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: Missing a blank line after declarations WARNING: Block comments should align the * on each line ERROR: open brace '{' following function definitions go on the next line Signed-off-by: Xiaofei Tan

[PATCH v2 01/15] ACPI: APD: fix a block comment align issue

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl. WARNING: Block comments should align the * on each line +/** +* Create platform device during acpi scan attach handle. Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_apd.c | 8 1 file changed, 4 insertions(+), 4

[PATCH v2 04/15] ACPI: table: replace __attribute__((packed)) by __packed

2021-03-27 Thread Xiaofei Tan
Replace __attribute__((packed)) by __packed following the advice of checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_fpdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpi_fpdt.c b/drivers/acpi/acpi_fpdt.c index a89a806..690a88a 100644

[PATCH v2 03/15] ACPI: debug: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: space prohibited between function name and open parenthesis WARNING: else is not generally useful after a break or return Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_dbg.c | 40

[PATCH v2 05/15] ACPI: ipmi: remove useless return statement for void function

2021-03-27 Thread Xiaofei Tan
Remove useless return statement for void function, reported by checkpatch.pl. WARNING: void function return statements are not generally useful FILE: drivers/acpi/acpi_ipmi.c:482: + return; +} Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_ipmi.c | 1 - 1 file changed, 1 deletion

[PATCH v2 00/15] acpi: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl. Differences from v1 to v2: - Add subsystem and module name in the name of patch 05/15. - Change to use more proper module name for some patch names. Xiaofei Tan (15): ACPI: APD: fix a block comment align issue ACPI: processor: fix some

Re: [PATCH 00/15] acpi: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Please ignore this patch set. thanks. On 2021/3/27 14:40, Xiaofei Tan wrote: Fix some coding style issues reported by checkpatch.pl. Xiaofei Tan (15): ACPI: APD: fix a block comment align issue ACPI: processor: fix some coding style issues ACPI: acpi_dbg: fix some coding style issues

Re: [PATCH 05/15] remove useless return statement for void function

2021-03-27 Thread Xiaofei Tan
Oh, sorry, the title doesn't contain subsystem and module name. I'll send v2 later. Please ignore this one. thanks. On 2021/3/27 14:40, Xiaofei Tan wrote: Remove useless return statement for void function, reported by checkpatch.pl. WARNING: void function return statements are not generally

[PATCH 07/15] ACPI: acpi_memhotplug: fix a coding style issue

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl WARNING: __initdata should be placed after acpi_no_memhotplug FILE: drivers/acpi/acpi_memhotplug.c:326: +static bool __initdata acpi_no_memhotplug; Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_memhotplug.c | 2 +- 1 file

[PATCH 09/15] ACPI: battery: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
ERROR: spaces required around that '?' (ctx:WxV) WARNING: Block comments should align the * on each line Signed-off-by: Xiaofei Tan --- drivers/acpi/battery.c | 64 ++ 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/drivers/acpi

[PATCH 03/15] ACPI: acpi_dbg: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: space prohibited between function name and open parenthesis WARNING: else is not generally useful after a break or return Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_dbg.c | 40

[PATCH 11/15] ACPI: cppc_acpi: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
off-by: Xiaofei Tan --- drivers/acpi/cppc_acpi.c | 71 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c index ae53740..3dbaf47 100644 --- a/drivers/acpi/cppc_acpi.c +++ b/drivers/a

[PATCH 02/15] ACPI: processor: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
-by: Xiaofei Tan --- drivers/acpi/acpi_processor.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c index fc89f3a..2d5bd2a 100644 --- a/drivers/acpi/acpi_processor.c +++ b/drivers/acpi/acpi_processor.c

[PATCH 08/15] ACPI: acpi_pad: fix a coding style issue

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl WARNING: Missing a blank line after declarations Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_pad.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index b84ab72

[PATCH 13/15] ACPI: device_pm: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl WARNING: Missing a blank line after declarations Signed-off-by: Xiaofei Tan --- drivers/acpi/device_pm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index 0961537

[PATCH 15/15] ACPI: dock: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: Missing a blank line after declarations ERROR: spaces required around that ':' WARNING: Statements should start on a tabstop Signed-off-by: Xiaofei Tan --- drivers/acpi/dock.c | 7 +-- 1 file

[PATCH 05/15] remove useless return statement for void function

2021-03-27 Thread Xiaofei Tan
Remove useless return statement for void function, reported by checkpatch.pl. WARNING: void function return statements are not generally useful FILE: drivers/acpi/acpi_ipmi.c:482: + return; +} Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_ipmi.c | 1 - 1 file changed, 1 deletion

[PATCH 10/15] ACPI: button: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: Block comments use * on subsequent lines WARNING: Block comments use a trailing */ on a separate line ERROR: code indent should use tabs where possible Signed-off-by: Xiaofei Tan --- drivers/acpi

[PATCH 12/15] ACPI: custom_method: fix a coding style issue

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl ERROR: "foo * bar" should be "foo *bar" FILE: drivers/acpi/custom_method.c:22: +static ssize_t cm_write(struct file *file, const char __user * user_buf, Signed-off-by: Xiaofei Tan --- drivers/acpi/custom_met

[PATCH 04/15] ACPI: acpi_fpdt: replace __attribute__((packed)) by __packed

2021-03-27 Thread Xiaofei Tan
Replace __attribute__((packed)) by __packed following the advice of checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_fpdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpi_fpdt.c b/drivers/acpi/acpi_fpdt.c index a89a806..690a88a 100644

[PATCH 06/15] ACPI: acpi_lpss: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: simple_strtol is obsolete, use kstrtol instead WARNING: Missing a blank line after declarations Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_lpss.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH 14/15] ACPI: device_sysfs: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: Missing a blank line after declarations WARNING: Block comments should align the * on each line ERROR: open brace '{' following function definitions go on the next line Signed-off-by: Xiaofei Tan

[PATCH 00/15] acpi: fix some coding style issues

2021-03-27 Thread Xiaofei Tan
Fix some coding style issues reported by checkpatch.pl. Xiaofei Tan (15): ACPI: APD: fix a block comment align issue ACPI: processor: fix some coding style issues ACPI: acpi_dbg: fix some coding style issues ACPI: acpi_fpdt: replace __attribute__((packed)) by __packed remove useless

[PATCH 01/15] ACPI: APD: fix a block comment align issue

2021-03-27 Thread Xiaofei Tan
Fix the following coding style issue reported by checkpatch.pl. WARNING: Block comments should align the * on each line +/** +* Create platform device during acpi scan attach handle. Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_apd.c | 8 1 file changed, 4 insertions(+), 4

[PATCH v2] ACPI: AC: fix some coding style issues

2021-03-26 Thread Xiaofei Tan
for single statement blocks WARNING: void function return statements are not generally useful WARNING: CVS style keyword markers, these will _not_ be updated Signed-off-by: Xiaofei Tan --- drivers/acpi/ac.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git

Re: [PATCH] ACPI: AC: fix some errors and warnings reported by checkpatch.pl

2021-03-24 Thread Xiaofei Tan
, these will _not_ be updated #3: FILE: drivers/acpi/ac.c:3: + * acpi_ac.c - ACPI AC Adapter Driver ($Revision: 27 $) On 2021/3/25 9:26, Xiaofei Tan wrote: Hi Rafael, On 2021/3/24 23:57, Rafael J. Wysocki wrote: On Tue, Mar 23, 2021 at 2:01 PM Xiaofei Tan wrote: Fix some errors and warnings reported

Re: [PATCH] ACPI: AC: fix some errors and warnings reported by checkpatch.pl

2021-03-24 Thread Xiaofei Tan
Hi Rafael, On 2021/3/24 23:57, Rafael J. Wysocki wrote: On Tue, Mar 23, 2021 at 2:01 PM Xiaofei Tan wrote: Fix some errors and warnings reported by checkpatch.pl, including following five types: Well, they are coding style issues rather than errors. Right, i could change the description

[PATCH] ACPI: AC: fix some errors and warnings reported by checkpatch.pl

2021-03-23 Thread Xiaofei Tan
for single statement blocks WARNING: void function return statements are not generally useful Signed-off-by: Xiaofei Tan --- drivers/acpi/ac.c | 32 +--- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index b86e

Re: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-24 Thread Xiaofei Tan
Hi Geert, On 2021/2/24 17:41, Geert Uytterhoeven wrote: Hi Xiaofei, On Sun, Feb 7, 2021 at 12:46 PM Xiaofei Tan wrote: Replace spin_lock_irqsave with spin_lock in hard IRQ of SCSI drivers. There are no function changes, but may speed up if interrupt happen too often. I'll bite: how much

Re: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-18 Thread Xiaofei Tan
...@vger.kernel.org; linux-kernel@vger.kernel.org; linux...@openeuler.org Subject: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers On Sun, 7 Feb 2021, Xiaofei Tan wrote: Replace spin_lock_irqsave with spin_lock in hard IRQ of SCSI drivers. There are no function

[PATCH for-next 19/32] scsi: mvumi: Replace spin_lock_irqsave with spin_lock in hard IRQ

2021-02-07 Thread Xiaofei Tan
It is redundant to do irqsave and irqrestore in hardIRQ context, where it has been in a irq-disabled context. Signed-off-by: Xiaofei Tan --- drivers/scsi/mvumi.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c index 71b6a1f

[PATCH for-next 27/32] scsi: qlogicpti: Replace spin_lock_irqsave with spin_lock in hard IRQ

2021-02-07 Thread Xiaofei Tan
It is redundant to do irqsave and irqrestore in hardIRQ context, where it has been in a irq-disabled context. Signed-off-by: Xiaofei Tan --- drivers/scsi/qlogicpti.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c

[PATCH for-next 21/32] scsi: myrs: Replace spin_lock_irqsave with spin_lock in hard IRQ

2021-02-07 Thread Xiaofei Tan
It is redundant to do irqsave and irqrestore in hardIRQ context, where it has been in a irq-disabled context. Signed-off-by: Xiaofei Tan --- drivers/scsi/myrs.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/myrs.c b/drivers/scsi/myrs.c index

  1   2   >