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: 622c9a5ba9 ("x86/mm: accurately track which vCPU page-tables are loaded")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger@xenproject.org>
This commit is contained in:
Jan Beulich committed 2026-10-14 09:27:00 +02:00
1 parent e028aac940
commit 7d50aaad10
1 file changed
+2 -2
+2 -2
View File
@@ -20,8 +20,8 @@
static inline struct vcpu *mapcache_current_vcpu(void) static inline struct vcpu *mapcache_current_vcpu(void)
{ {
struct vcpu *v = this_cpu(pgtable_vcpu); const struct vcpu *v = this_cpu(pgtable_vcpu);
struct vcpu *curr = current; const struct vcpu *curr = current;
/* /*
* During early boot pgtable_vcpu is not set, callers must handle NULL. * During early boot pgtable_vcpu is not set, callers must handle NULL.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.