Commit 337c628a authored by Juergen Gross's avatar Juergen Gross

x86/xen: make some functions static

Some functions and variables in arch/x86/xen are used locally only,
make them static.
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Message-ID: <20240710093718.14552-2-jgross@suse.com>
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
parent 942d917c
...@@ -17,10 +17,6 @@ bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn); ...@@ -17,10 +17,6 @@ bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
void set_pte_mfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags); void set_pte_mfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags);
pte_t xen_ptep_modify_prot_start(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep);
void xen_ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr,
pte_t *ptep, pte_t pte);
unsigned long xen_read_cr2_direct(void); unsigned long xen_read_cr2_direct(void);
extern void xen_init_mmu_ops(void); extern void xen_init_mmu_ops(void);
......
...@@ -128,7 +128,7 @@ static DEFINE_SPINLOCK(xen_reservation_lock); ...@@ -128,7 +128,7 @@ static DEFINE_SPINLOCK(xen_reservation_lock);
* looking at another vcpu's cr3 value, it should use this variable. * looking at another vcpu's cr3 value, it should use this variable.
*/ */
DEFINE_PER_CPU(unsigned long, xen_cr3); /* cr3 stored as physaddr */ DEFINE_PER_CPU(unsigned long, xen_cr3); /* cr3 stored as physaddr */
DEFINE_PER_CPU(unsigned long, xen_current_cr3); /* actual vcpu cr3 */ static DEFINE_PER_CPU(unsigned long, xen_current_cr3); /* actual vcpu cr3 */
static phys_addr_t xen_pt_base, xen_pt_size __initdata; static phys_addr_t xen_pt_base, xen_pt_size __initdata;
...@@ -305,7 +305,7 @@ static void xen_set_pte(pte_t *ptep, pte_t pteval) ...@@ -305,7 +305,7 @@ static void xen_set_pte(pte_t *ptep, pte_t pteval)
__xen_set_pte(ptep, pteval); __xen_set_pte(ptep, pteval);
} }
pte_t xen_ptep_modify_prot_start(struct vm_area_struct *vma, static pte_t xen_ptep_modify_prot_start(struct vm_area_struct *vma,
unsigned long addr, pte_t *ptep) unsigned long addr, pte_t *ptep)
{ {
/* Just return the pte as-is. We preserve the bits on commit */ /* Just return the pte as-is. We preserve the bits on commit */
...@@ -313,7 +313,8 @@ pte_t xen_ptep_modify_prot_start(struct vm_area_struct *vma, ...@@ -313,7 +313,8 @@ pte_t xen_ptep_modify_prot_start(struct vm_area_struct *vma,
return *ptep; return *ptep;
} }
void xen_ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr, static void xen_ptep_modify_prot_commit(struct vm_area_struct *vma,
unsigned long addr,
pte_t *ptep, pte_t pte) pte_t *ptep, pte_t pte)
{ {
struct mmu_update u; struct mmu_update u;
......
...@@ -23,7 +23,6 @@ void xen_copy_trap_info(struct trap_info *traps); ...@@ -23,7 +23,6 @@ void xen_copy_trap_info(struct trap_info *traps);
DECLARE_PER_CPU_ALIGNED(struct vcpu_info, xen_vcpu_info); DECLARE_PER_CPU_ALIGNED(struct vcpu_info, xen_vcpu_info);
DECLARE_PER_CPU(unsigned long, xen_cr3); DECLARE_PER_CPU(unsigned long, xen_cr3);
DECLARE_PER_CPU(unsigned long, xen_current_cr3);
extern struct start_info *xen_start_info; extern struct start_info *xen_start_info;
extern struct shared_info xen_dummy_shared_info; extern struct shared_info xen_dummy_shared_info;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment