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
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
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
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
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
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
)
| ^
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
‘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
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
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
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 --
11 matches
Mail list logo