[PATCH] selftests: mm: fix the incorrect usage() info of khugepaged

2024-10-14 Thread Nanyong Sun
The mount option of tmpfs should be huge=advise, not madvise which is not supported and may mislead the users. Fixes: 1b03d0d558a2 ("selftests/vm: add thp collapse file and tmpfs testing") Signed-off-by: Nanyong Sun --- tools/testing/selftests/mm/khugepaged.c | 2 +- 1 file changed, 1

[PATCH 5/9] riscv: time: Fix no prototype for time_init

2021-03-05 Thread Nanyong Sun
Fix the following W=1 compilation warning: arch/riscv/kernel/time.c:16:13: warning: no previous prototype for ‘time_init’ [-Wmissing-prototypes] 16 | void __init time_init(void) | ^ Reported-by: Hulk Robot Signed-off-by: Nanyong Sun --- arch/riscv/include/asm

[PATCH 9/9] riscv: process: Fix no prototype for arch_dup_task_struct

2021-03-05 Thread Nanyong Sun
Robot Signed-off-by: Nanyong Sun --- arch/riscv/include/asm/processor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/include/asm/processor.h b/arch/riscv/include/asm/processor.h index 3a240037bde2..021ed64ee608 100644 --- a/arch/riscv/include/asm/processor.h +++ b/arch/riscv

[PATCH 3/9] riscv: sbi: Fix comment of __sbi_set_timer_v01

2021-03-05 Thread Nanyong Sun
Fix the comment of __sbi_set_timer_v01, the function name in comment is missing '__' Signed-off-by: Nanyong Sun --- arch/riscv/kernel/sbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/sbi.c b/arch/riscv/kernel/sbi.c index f4a7db3d309e..d3

[PATCH 7/9] riscv: process: Fix no prototype for show_regs

2021-03-05 Thread Nanyong Sun
Include header file to fix the following W=1 compilation warning: arch/riscv/kernel/process.c:78:6: warning: no previous prototype for ‘show_regs’ [-Wmissing-prototypes] 78 | void show_regs(struct pt_regs *regs) | ^ Reported-by: Hulk Robot Signed-off-by: Nanyong Sun

[PATCH 2/9] riscv: irq: Fix no prototype warning

2021-03-05 Thread Nanyong Sun
Fix the following W=1 kernel compilation warning: arch/riscv/kernel/irq.c:19:13: warning: no previous prototype for ‘init_IRQ’ [-Wmissing-prototypes] 19 | void __init init_IRQ(void) | ^~~~ Reported-by: Hulk Robot Signed-off-by: Nanyong Sun --- arch/riscv/include/asm

[PATCH 6/9] riscv: syscall_table: Reduce W=1 compilation warnings noise

2021-03-05 Thread Nanyong Sun
) | ^ arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten [-Woverride-init] ... Since we intentionally build the syscall tables this way,ignore the warning. Reported-by: Hulk Robot Signed-off-by: Nanyong Sun --- arch/riscv/kernel/Makefile | 1 + 1 file changed

[PATCH 4/9] riscv: ptrace: Fix no prototype warnings

2021-03-05 Thread Nanyong Sun
‘do_syscall_trace_exit’ [-Wmissing-prototypes] 262 | __visible void do_syscall_trace_exit(struct pt_regs *regs) |^ Reported-by: Hulk Robot Signed-off-by: Nanyong Sun --- arch/riscv/include/asm/ptrace.h | 5 + 1 file changed, 5 insertions(+) diff --git a

[PATCH 0/9] riscv: misc cleanup

2021-03-05 Thread Nanyong Sun
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

[PATCH 8/9] riscv: ftrace: Use ftrace_get_regs helper

2021-03-05 Thread Nanyong Sun
Use ftrace_get_regs() helper call to get pt_regs from ftrace_regs struct, this makes the code simpler. Signed-off-by: Nanyong Sun --- arch/riscv/kernel/probes/ftrace.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/riscv/kernel/probes/ftrace.c b/arch

[PATCH 1/9] riscv: traps: Fix no prototype warnings

2021-03-05 Thread Nanyong Sun
5: warning: no previous prototype for ‘do_trap_insn_fault’ [-Wmissing-prototypes] ... Reported-by: Hulk Robot Signed-off-by: Nanyong Sun --- arch/riscv/include/asm/asm-prototypes.h | 16 arch/riscv/kernel/traps.c | 1 + 2 files changed, 17 insertions(+) diff --