* [resend][PATCH 1/2] arm64: kvm: sys_regs: use string choices helper
@ 2025-07-18 1:50 Kuninori Morimoto
2025-07-24 6:49 ` Oliver Upton
0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2025-07-18 1:50 UTC (permalink / raw)
To: rmk+kernel, Catalin Marinas, Joey Gouly, Marc Zyngier,
Oliver Upton, Suzuki K Poulose, Will Deacon, Zenghui Yu, kvmarm,
linux-arm-kernel
We can use string choices helper, let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
arch/arm64/kvm/sys_regs.c | 2 +-
arch/arm64/kvm/sys_regs.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c
index 76c2f0da821f..c131d6b0d35b 100644
--- a/arch/arm64/kvm/sys_regs.c
+++ b/arch/arm64/kvm/sys_regs.c
@@ -4475,7 +4475,7 @@ static bool kvm_esr_cp10_id_to_sys64(u64 esr, struct sys_reg_params *params)
return true;
kvm_pr_unimpl("Unhandled cp10 register %s: %u\n",
- params->is_write ? "write" : "read", reg_id);
+ str_write_read(params->is_write), reg_id);
return false;
}
diff --git a/arch/arm64/kvm/sys_regs.h b/arch/arm64/kvm/sys_regs.h
index ef97d9fc67cc..317abc490368 100644
--- a/arch/arm64/kvm/sys_regs.h
+++ b/arch/arm64/kvm/sys_regs.h
@@ -108,7 +108,7 @@ inline void print_sys_reg_msg(const struct sys_reg_params *p,
/* Look, we even formatted it for you to paste into the table! */
kvm_pr_unimpl("%pV { Op0(%2u), Op1(%2u), CRn(%2u), CRm(%2u), Op2(%2u), func_%s },\n",
&(struct va_format){ fmt, &va },
- p->Op0, p->Op1, p->CRn, p->CRm, p->Op2, p->is_write ? "write" : "read");
+ p->Op0, p->Op1, p->CRn, p->CRm, p->Op2, str_write_read(p->is_write));
va_end(va);
}
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [resend][PATCH 1/2] arm64: kvm: sys_regs: use string choices helper
2025-07-18 1:50 [resend][PATCH 1/2] arm64: kvm: sys_regs: use string choices helper Kuninori Morimoto
@ 2025-07-24 6:49 ` Oliver Upton
0 siblings, 0 replies; 2+ messages in thread
From: Oliver Upton @ 2025-07-24 6:49 UTC (permalink / raw)
To: rmk+kernel, Catalin Marinas, Joey Gouly, Marc Zyngier,
Suzuki K Poulose, Will Deacon, Zenghui Yu, kvmarm,
linux-arm-kernel, Kuninori Morimoto
Cc: Oliver Upton
On Fri, 18 Jul 2025 01:50:24 +0000, Kuninori Morimoto wrote:
> We can use string choices helper, let's use it.
>
>
Applied to next, thanks!
[1/2] arm64: kvm: sys_regs: use string choices helper
https://git.kernel.org/kvmarm/kvmarm/c/30a597e19f24
--
Best,
Oliver
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-24 6:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-18 1:50 [resend][PATCH 1/2] arm64: kvm: sys_regs: use string choices helper Kuninori Morimoto
2025-07-24 6:49 ` Oliver Upton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox