Skip to content

misc warning cleanup in arch/risc-v

Conor Dooley kvm kvm-riscv linux-riscv lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4riscv: kvm: vcpu_timer: fix unused variable warningsarch/riscv/kvm/vcpu_timer.c+0 -42 replies
2/4riscv: kvm: move extern sbi_ext declarations to a headerarch/riscv/include/asm/kvm_vcpu_sbi.h arch/riscv/kvm/vcpu_sbi.c+13 -111 reply
3/4riscv: signal: fix missing prototype warningarch/riscv/include/asm/signal.h arch/riscv/kernel/signal.c+13 -00 replies
4/4riscv: traps: add missing prototypearch/riscv/include/asm/thread_info.h arch/riscv/kernel/traps.c+4 -10 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPalmer Dabbelt
SeriesR-b A-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] misc warning cleanup in arch/risc-v

From: Conor Dooley <[email protected]>

Hey all,
Couple fixes here for most of what's left of the {sparse,} warnings in arch/riscv that are still in need of patches. Ben has sent patches for the VDSO issue already (although they seem to need rework).

VDSO aside, With this patchset applied, we are left with:
- cpuinfo_ops missing prototype: this likely needs to go into an asm-generic header & I'll send a separate patch for that.
- Complaints about an error in mm/init.c:
"error inarch/riscv/mm/init.c:819:2: error: "setup_vm() is <trunc> I think this can be ignored.
- 600+ -Woverride-init warnings for syscall table setup where overriding seems to be the whole point of the macro.
- Warnings about imported kvm core code.
- Flexible array member warnings that look like common KVM code patterns
- An unexpected unlock in kvm_riscv_check_vcpu_requests that was added intentionally:
https://lore.kernel.org/all/20220710151105.687193-1-apatel at ventanamicro.com/ Is it worth looking into whether that's a false positive or not?

Thanks,
Conor.

Conor Dooley (4):
riscv: kvm: vcpu_timer: fix unused variable warnings
riscv: kvm: move extern sbi_ext declarations to a header
riscv: signal: fix missing prototype warning
riscv: traps: add missing prototype

 arch/riscv/include/asm/kvm_vcpu_sbi.h | 12 ++++++++++++
 arch/riscv/include/asm/signal.h       | 12 ++++++++++++
 arch/riscv/include/asm/thread_info.h  |  2 ++
 arch/riscv/kernel/signal.c            |  1 +
 arch/riscv/kernel/traps.c             |  3 ++-
 arch/riscv/kvm/vcpu_sbi.c             | 12 +-----------
 arch/riscv/kvm/vcpu_timer.c           |  4 ----
 7 files changed, 30 insertions(+), 16 deletions(-)
 create mode 100644 arch/riscv/include/asm/signal.h
Signature · 1 line
2.37.1