Skip to contentSkip to conversation

x86/xen: make xen_reservation_lock static

PATCH New Juergen Gross 2 participants 2 messages Sep 5, 2018 – Sep 6, 2018

Subsystems (2)
lore
Share & tools
lore

Juergen Gross

author maintainer
#0 lore raw

PATCH 1/1 x86/xen: make xen_reservation_lock static

tip.git f030aade9165 ("x86/xen: Move pv specific parts of arch/x86/xen/mmu.c to mmu_pv.c") missed to make xen_reservation_lock static.

---
 arch/x86/xen/mmu_pv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/xen/mmu_pv.c +1 -1
index 12180e7283b7..3a2729b83299 100644
@@ -104,7 +104,7 @@ static pud_t level3_user_vsyscall[PTRS_PER_PUD] __page_aligned_bss;
  * Protects atomic reservation decrease/increase against concurrent increases.
  * Also protects non-atomic updates of current_pages and balloon lists.
  */
-DEFINE_SPINLOCK(xen_reservation_lock);
+static DEFINE_SPINLOCK(xen_reservation_lock);
 
 /*
  * Note about cr3 (pagetable base) values:
Signature · 1 line
2.16.4
#1 lore raw

[tip:x86/paravirt] x86/xen: Make xen_reservation_lock static

x86/xen: Make xen_reservation_lock static
Commit-ID:  4f2d7af70256b258a6a5729a1d33d5ecb2330f8f
Gitweb:     https://git.kernel.org/tip/4f2d7af70256b258a6a5729a1d33d5ecb2330f8f
Author:     Juergen Gross <[email protected]>
AuthorDate: Wed, 5 Sep 2018 07:36:34 +0200
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Thu, 6 Sep 2018 14:37:37 +0200

x86/xen: Make xen_reservation_lock static

No users outside of that file.

Fixes f030aade9165 ("x86/xen: Move pv specific parts of arch/x86/xen/mmu.c to mmu_pv.c")
---
 arch/x86/xen/mmu_pv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/xen/mmu_pv.c +1 -1
index bf30fa03582e..7ada9e489f65 100644
@@ -104,7 +104,7 @@ static pud_t level3_user_vsyscall[PTRS_PER_PUD] __page_aligned_bss;
  * Protects atomic reservation decrease/increase against concurrent increases.
  * Also protects non-atomic updates of current_pages and balloon lists.
  */
-DEFINE_SPINLOCK(xen_reservation_lock);
+static DEFINE_SPINLOCK(xen_reservation_lock);
 
 /*
  * Note about cr3 (pagetable base) values: