mbox series

[0/9] riscv: misc cleanup

Message ID 20210305113332.428048-1-sunnanyong@huawei.com (mailing list archive)
Headers show
Series riscv: misc cleanup | expand

Message

Nanyong Sun March 5, 2021, 11:33 a.m. UTC
Fix some compilation warnings,improve code style

Nanyong Sun (9):
  riscv: traps: Fix no prototype warnings
  riscv: irq: Fix no prototype warning
  riscv: sbi: Fix comment of __sbi_set_timer_v01
  riscv: ptrace: Fix no prototype warnings
  riscv: time: Fix no prototype for time_init
  riscv: syscall_table: Reduce W=1 compilation warnings noise
  riscv: process: Fix no prototype for show_regs
  riscv: ftrace: Use ftrace_get_regs helper
  riscv: process: Fix no prototype for arch_dup_task_struct

 arch/riscv/include/asm/asm-prototypes.h | 16 ++++++++++++++++
 arch/riscv/include/asm/irq.h            |  2 ++
 arch/riscv/include/asm/processor.h      |  1 +
 arch/riscv/include/asm/ptrace.h         |  5 +++++
 arch/riscv/include/asm/timex.h          |  2 ++
 arch/riscv/kernel/Makefile              |  1 +
 arch/riscv/kernel/probes/ftrace.c       | 16 +++++++++-------
 arch/riscv/kernel/process.c             |  1 +
 arch/riscv/kernel/sbi.c                 |  2 +-
 arch/riscv/kernel/time.c                |  1 +
 arch/riscv/kernel/traps.c               |  1 +
 11 files changed, 40 insertions(+), 8 deletions(-)

Comments

Palmer Dabbelt March 10, 2021, 4:47 a.m. UTC | #1
On Fri, 05 Mar 2021 03:33:23 PST (-0800), sunnanyong@huawei.com wrote:
> Fix some compilation warnings,improve code style
>
> Nanyong Sun (9):
>   riscv: traps: Fix no prototype warnings
>   riscv: irq: Fix no prototype warning
>   riscv: sbi: Fix comment of __sbi_set_timer_v01
>   riscv: ptrace: Fix no prototype warnings
>   riscv: time: Fix no prototype for time_init
>   riscv: syscall_table: Reduce W=1 compilation warnings noise
>   riscv: process: Fix no prototype for show_regs
>   riscv: ftrace: Use ftrace_get_regs helper
>   riscv: process: Fix no prototype for arch_dup_task_struct
>
>  arch/riscv/include/asm/asm-prototypes.h | 16 ++++++++++++++++
>  arch/riscv/include/asm/irq.h            |  2 ++
>  arch/riscv/include/asm/processor.h      |  1 +
>  arch/riscv/include/asm/ptrace.h         |  5 +++++
>  arch/riscv/include/asm/timex.h          |  2 ++
>  arch/riscv/kernel/Makefile              |  1 +
>  arch/riscv/kernel/probes/ftrace.c       | 16 +++++++++-------
>  arch/riscv/kernel/process.c             |  1 +
>  arch/riscv/kernel/sbi.c                 |  2 +-
>  arch/riscv/kernel/time.c                |  1 +
>  arch/riscv/kernel/traps.c               |  1 +
>  11 files changed, 40 insertions(+), 8 deletions(-)

Thanks.  I fixed the checkpatch warning, these are all on fixes.