Skip to contentSkip to conversation

x86/memshr: Fix build in copy_vcpu_settings()

PATCH In review Andrew Cooper 3 participants 3 messages Oct 6, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/memshr: Fix build in copy_vcpu_settings()

The last user of this variable was dropped.

Fixes 295514ff7550 ("common: convert vCPU info area registration")

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
CC: Tamas K Lengyel <[email protected]>
CC: Henry Wang <[email protected]>

I expect Gitlab randconfig to find this eventually, but it does depend on CONFIG_MEM_SHARING being active to manifest.

---
 xen/arch/x86/mm/mem_sharing.c | 1 -
 1 file changed, 1 deletion(-)
xen/arch/x86/mm/mem_sharing.c +0 -1
index 5217c755a299..94b6b782ef2e 100644
@@ -1706,7 +1706,6 @@ static int copy_vcpu_settings(struct domain *cd, const struct domain *d)
 {
     unsigned int i;
     int ret = -EINVAL;
-    mfn_t vcpu_info_mfn;
 
     for ( i = 0; i < cd->max_vcpus; i++ )
     {
Signature · 1 line
2.30.2
#1 lore raw

Hi Andrew,

Quoted 6 lines · Andrew Cooper

The last user of this variable was dropped.

Fixes 295514ff7550 ("common: convert vCPU info area registration")

Kind regards,
Henry

Quoted 28 lines

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
CC: Tamas K Lengyel <[email protected]>
CC: Henry Wang <[email protected]>

I expect Gitlab randconfig to find this eventually, but it does depend on CONFIG_MEM_SHARING being active to manifest.
---
xen/arch/x86/mm/mem_sharing.c | 1 -

1 file changed, 1 deletion(-)
xen/arch/x86/mm/mem_sharing.c +0 -1
index 5217c755a299..94b6b782ef2e 100644
@@ -1706,7 +1706,6 @@ static int copy_vcpu_settings(struct domain *cd, const struct domain *d)
 {
    unsigned int i;
    int ret = -EINVAL;
-    mfn_t vcpu_info_mfn;
 
    for ( i = 0; i < cd->max_vcpus; i++ )
    {
Signature · 1 line
2.30.2