|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86: constify local variables in mapcache_current_vcpu()
commit 7d50aaad10e9ca0cac41a1f0ad09f0861ea6da16
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Wed Oct 14 09:27:00 2026 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Oct 14 09:27:00 2026 +0200
x86: constify local variables in mapcache_current_vcpu()
As of the referenced commit v won't be returned from the function anymore.
Yet that was the sole reason for it to not be pointer-to-const. curr,
which was introduced by that change, had no reason to be pointer-to-non-
const from the start.
Amends: 622c9a5ba95d ("x86/mm: accurately track which vCPU page-tables are
loaded")
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: Roger Pau Monné <roger@xxxxxxxxxxxxxx>
---
xen/arch/x86/domain_page.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/arch/x86/domain_page.c b/xen/arch/x86/domain_page.c
index 72c00194f3..5744754f11 100644
--- a/xen/arch/x86/domain_page.c
+++ b/xen/arch/x86/domain_page.c
@@ -20,8 +20,8 @@
static inline struct vcpu *mapcache_current_vcpu(void)
{
- struct vcpu *v = this_cpu(pgtable_vcpu);
- struct vcpu *curr = current;
+ const struct vcpu *v = this_cpu(pgtable_vcpu);
+ const struct vcpu *curr = current;
/*
* During early boot pgtable_vcpu is not set, callers must handle NULL.
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |