mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] riscv: kernel: remove space before ')'
       [not found] <tencent_6B88A6697F6AB7CEBD04EEABA52ACDC66909@qq.com>
@ 2023-07-17  7:48 ` hanyu001
  2023-07-17  8:03   ` Conor Dooley
  0 siblings, 1 reply; 2+ messages in thread
From: hanyu001 @ 2023-07-17  7:48 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, liaochang1, heiko.stuebner, conor.dooley
  Cc: linux-riscv, linux-kernel

Fixes checkpatch errors:

riscv/kernel/probes:ERROR:space prohibited before that close parenthesis 
')'
riscv/kernel/probes:ERROR:space prohibited before that close parenthesis 
')'
riscv/kernel/probes:ERROR:space prohibited before that close parenthesis 
')'

Signed-off-by: ztt <1549089851@qq.com>
---
  arch/riscv/kernel/probes/simulate-insn.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/riscv/kernel/probes/simulate-insn.c 
b/arch/riscv/kernel/probes/simulate-insn.c
index 7441ac8a6843..60792c79b42e 100644
--- a/arch/riscv/kernel/probes/simulate-insn.c
+++ b/arch/riscv/kernel/probes/simulate-insn.c
@@ -128,10 +128,10 @@ bool __kprobes simulate_auipc(u32 opcode, unsigned 
long addr, struct pt_regs *re
      (((opcode) >> 12) & 0x7)

  #define branch_imm(opcode) \
-    (((((opcode) >>  8) & 0xf ) <<  1) | \
+    (((((opcode) >>  8) & 0xf) <<  1) | \
       ((((opcode) >> 25) & 0x3f) <<  5) | \
-     ((((opcode) >>  7) & 0x1 ) << 11) | \
-     ((((opcode) >> 31) & 0x1 ) << 12))
+     ((((opcode) >>  7) & 0x1) << 11) | \
+     ((((opcode) >> 31) & 0x1) << 12))

  #define branch_offset(opcode) \
      sign_extend32((branch_imm(opcode)), 12)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] riscv: kernel: remove space before ')'
  2023-07-17  7:48 ` [PATCH] riscv: kernel: remove space before ')' hanyu001
@ 2023-07-17  8:03   ` Conor Dooley
  0 siblings, 0 replies; 2+ messages in thread
From: Conor Dooley @ 2023-07-17  8:03 UTC (permalink / raw)
  To: hanyu001
  Cc: paul.walmsley, palmer, aou, liaochang1, heiko.stuebner,
	linux-riscv, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1866 bytes --]

Hey,

On Mon, Jul 17, 2023 at 03:48:37PM +0800, hanyu001@208suo.com wrote:
> Fixes checkpatch errors:
> 
> riscv/kernel/probes:ERROR:space prohibited before that close parenthesis ')'
> riscv/kernel/probes:ERROR:space prohibited before that close parenthesis ')'
> riscv/kernel/probes:ERROR:space prohibited before that close parenthesis ')'
> 
> Signed-off-by: ztt <1549089851@qq.com>

Checkpatch complaints that this does not match the email you sent the
patch from. "ztt" is not a known identity either, so that's insufficient
for DCO purposes.

Thirdly, the patch is corrupted, with tabs replaced by spaces.
I've seen a lot of "checkpatch -f" fix patches from 208suo.com people
across various subsystems over the last few weeks that are all corrupted
and do not apply. Please don't send any more for arch/riscv until you
figure out how to send them without corruption.

Thanks,
Conor.

> ---
>  arch/riscv/kernel/probes/simulate-insn.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/riscv/kernel/probes/simulate-insn.c
> b/arch/riscv/kernel/probes/simulate-insn.c
> index 7441ac8a6843..60792c79b42e 100644
> --- a/arch/riscv/kernel/probes/simulate-insn.c
> +++ b/arch/riscv/kernel/probes/simulate-insn.c
> @@ -128,10 +128,10 @@ bool __kprobes simulate_auipc(u32 opcode, unsigned
> long addr, struct pt_regs *re
>      (((opcode) >> 12) & 0x7)
> 
>  #define branch_imm(opcode) \
> -    (((((opcode) >>  8) & 0xf ) <<  1) | \
> +    (((((opcode) >>  8) & 0xf) <<  1) | \
>       ((((opcode) >> 25) & 0x3f) <<  5) | \
> -     ((((opcode) >>  7) & 0x1 ) << 11) | \
> -     ((((opcode) >> 31) & 0x1 ) << 12))
> +     ((((opcode) >>  7) & 0x1) << 11) | \
> +     ((((opcode) >> 31) & 0x1) << 12))
> 
>  #define branch_offset(opcode) \
>      sign_extend32((branch_imm(opcode)), 12)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-17  8:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <tencent_6B88A6697F6AB7CEBD04EEABA52ACDC66909@qq.com>
2023-07-17  7:48 ` [PATCH] riscv: kernel: remove space before ')' hanyu001
2023-07-17  8:03   ` Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®