lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <8ef63e3296f5628896f373d696a078f8@208suo.com>
Date:   Mon, 17 Jul 2023 15:48:37 +0800
From:   hanyu001@...suo.com
To:     paul.walmsley@...ive.com, palmer@...belt.com,
        aou@...s.berkeley.edu, liaochang1@...wei.com,
        heiko.stuebner@...ll.eu, conor.dooley@...rochip.com
Cc:     linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH] riscv: kernel: remove space before ')'

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@...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)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ