]> xenbits.xensource.com Git - xen.git/commitdiff
x86/mm: Make virt_to_xen_l1e() static
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 26 Jul 2024 15:21:49 +0000 (17:21 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 30 Jul 2024 16:36:51 +0000 (17:36 +0100)
There are no callers outside the translation unit where it's defined, so make
the function static.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/include/asm/mm.h
xen/arch/x86/mm.c

index 98b66edaca5e3c36ccb6e5ef6fc398c77910b706..b3853ae734fad3e16e92a65f84931e76fb99121e 100644 (file)
@@ -567,8 +567,6 @@ mfn_t alloc_xen_pagetable(void);
 void free_xen_pagetable(mfn_t mfn);
 void *alloc_mapped_pagetable(mfn_t *pmfn);
 
-l1_pgentry_t *virt_to_xen_l1e(unsigned long v);
-
 int __sync_local_execstate(void);
 
 /* Arch-specific portion of memory_op hypercall. */
index 6ffacab341ad44a466108127278b8a2287443967..38e0bfec4331b0f04b3a1203bf0d10e630372e9a 100644 (file)
@@ -5081,7 +5081,7 @@ static l2_pgentry_t *virt_to_xen_l2e(unsigned long v)
     return map_l2t_from_l3e(l3e) + l2_table_offset(v);
 }
 
-l1_pgentry_t *virt_to_xen_l1e(unsigned long v)
+static l1_pgentry_t *virt_to_xen_l1e(unsigned long v)
 {
     l2_pgentry_t *pl2e, l2e;