riscv: checkpatch: Fix alignment should match open parenthesis

It is reported by checkpatch.pl.
CHECK: Alignment should match open parenthesis

Signed-off-by: Rick Chen <rick@andestech.com>
Signed-off-by: Rick Chen <rickchen36@gmail.com>
master
Rick Chen 7 years ago committed by Andes
parent 40717eb849
commit 45fc937576
  1. 23
      arch/riscv/include/asm/io.h
  2. 9
      arch/riscv/include/asm/ptrace.h

@ -416,19 +416,17 @@ static inline void writesl(unsigned int *addr, const void *data, int longlen)
#define eth_io_copy_and_sum(s, c, l, b) \ #define eth_io_copy_and_sum(s, c, l, b) \
eth_copy_and_sum((s), __mem_pci(c), (l), (b)) eth_copy_and_sum((s), __mem_pci(c), (l), (b))
static inline int static inline int check_signature(ulong io_addr, const uchar *s, int len)
check_signature(unsigned long io_addr, const unsigned char *signature,
int length)
{ {
int retval = 0; int retval = 0;
do { do {
if (readb(io_addr) != *signature) if (readb(io_addr) != *s)
goto out; goto out;
io_addr++; io_addr++;
signature++; s++;
length--; len--;
} while (length); } while (len);
retval = 1; retval = 1;
out: out:
return retval; return retval;
@ -455,18 +453,17 @@ out:
eth_copy_and_sum((a), __mem_isa(b), (c), (d)) eth_copy_and_sum((a), __mem_isa(b), (c), (d))
static inline int static inline int
isa_check_signature(unsigned long io_addr, const unsigned char *signature, isa_check_signature(ulong io_addr, const uchar *s, int len)
int length)
{ {
int retval = 0; int retval = 0;
do { do {
if (isa_readb(io_addr) != *signature) if (isa_readb(io_addr) != *s)
goto out; goto out;
io_addr++; io_addr++;
signature++; s++;
length--; len--;
} while (length); } while (len);
retval = 1; retval = 1;
out: out:
return retval; return retval;

@ -65,8 +65,7 @@ static inline unsigned long instruction_pointer(struct pt_regs *regs)
return GET_IP(regs); return GET_IP(regs);
} }
static inline void instruction_pointer_set(struct pt_regs *regs, static inline void instruction_pointer_set(struct pt_regs *regs, ulong val)
unsigned long val)
{ {
SET_IP(regs, val); SET_IP(regs, val);
} }
@ -82,8 +81,7 @@ static inline unsigned long user_stack_pointer(struct pt_regs *regs)
return GET_USP(regs); return GET_USP(regs);
} }
static inline void user_stack_pointer_set(struct pt_regs *regs, static inline void user_stack_pointer_set(struct pt_regs *regs, ulong val)
unsigned long val)
{ {
SET_USP(regs, val); SET_USP(regs, val);
} }
@ -97,8 +95,7 @@ static inline unsigned long frame_pointer(struct pt_regs *regs)
return GET_FP(regs); return GET_FP(regs);
} }
static inline void frame_pointer_set(struct pt_regs *regs, static inline void frame_pointer_set(struct pt_regs *regs, ulong val)
unsigned long val)
{ {
SET_FP(regs, val); SET_FP(regs, val);
} }

Loading…
Cancel
Save