]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/mem_access: make function static
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Tue, 21 Nov 2023 09:09:17 +0000 (10:09 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Nov 2023 09:09:17 +0000 (10:09 +0100)
The function is used only within this file, and therefore can be static.

No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/mm/mem_access.c

index 3449e0ee85ffe1f202abd03021e191fd7db5839a..60a0cce68aa325c3bcdf543be154c23f375b43d8 100644 (file)
@@ -249,9 +249,9 @@ bool p2m_mem_access_check(paddr_t gpa, unsigned long gla,
     return (p2ma != p2m_access_n2rwx);
 }
 
-int p2m_set_altp2m_mem_access(struct domain *d, struct p2m_domain *hp2m,
-                              struct p2m_domain *ap2m, p2m_access_t a,
-                              gfn_t gfn)
+static int p2m_set_altp2m_mem_access(struct domain *d, struct p2m_domain *hp2m,
+                                     struct p2m_domain *ap2m, p2m_access_t a,
+                                     gfn_t gfn)
 {
     mfn_t mfn;
     p2m_type_t t;