Linux-RISC-V Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] RISC-V: Fix sparse warnings
@ 2024-01-31 12:05 Andrew Jones
  2024-01-31 12:05 ` [PATCH 1/3] RISC-V: paravirt: steal_time should be static Andrew Jones
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Andrew Jones @ 2024-01-31 12:05 UTC (permalink / raw)
  To: kvm-riscv, linux-riscv; +Cc: anup, atishp, paul.walmsley, palmer, aou

After the steal-time series was merged, LKP sent me mail with sparse
warnings for the lack of using appropriate restricted types and a
local variable not being static. This series makes the fixups
necessary to appease sparse for 64-bit compiles. Changes to
__get_user_8() and __put_user_8() are needed to completely quiet
sparse for 32-bit compiles. I'll address those 32-bit sparse warnings
separately, since it's not 100% clear how best to approach a couple of
them.

Thanks,
drew


Andrew Jones (3):
  RISC-V: paravirt: steal_time should be static
  RISC-V: paravirt: Use correct restricted types
  RISC-V: KVM: Use correct restricted types

 arch/riscv/kernel/paravirt.c  |  6 +++---
 arch/riscv/kvm/vcpu_sbi_sta.c | 20 ++++++++++++--------
 2 files changed, 15 insertions(+), 11 deletions(-)

-- 
2.43.0


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-02-02 15:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 12:05 [PATCH 0/3] RISC-V: Fix sparse warnings Andrew Jones
2024-01-31 12:05 ` [PATCH 1/3] RISC-V: paravirt: steal_time should be static Andrew Jones
2024-01-31 19:44   ` Atish Patra
2024-01-31 12:05 ` [PATCH 2/3] RISC-V: paravirt: Use correct restricted types Andrew Jones
2024-01-31 19:45   ` Atish Patra
2024-01-31 12:05 ` [PATCH 3/3] RISC-V: KVM: " Andrew Jones
2024-01-31 19:46   ` Atish Patra
2024-02-02 15:57 ` [PATCH 0/3] RISC-V: Fix sparse warnings Anup Patel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox