summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-11-17 17:31:34 +0100
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-11-18 16:33:10 +0100
commitf9c7ec1649607d68a47ab99e2ebb3379a2016157 (patch)
tree25df216193ea0dc3f84723d90db8c3f6e7b411ff /arch
parentarm/xen: Export phys_to_mach to fix Xen module link errors (diff)
downloadlinux-f9c7ec1649607d68a47ab99e2ebb3379a2016157.tar.xz
linux-f9c7ec1649607d68a47ab99e2ebb3379a2016157.zip
xen/arm: p2m_init and p2m_lock should be static
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/xen/p2m.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/xen/p2m.c b/arch/arm/xen/p2m.c
index 0f842e858790..b31ee1b275b0 100644
--- a/arch/arm/xen/p2m.c
+++ b/arch/arm/xen/p2m.c
@@ -25,7 +25,7 @@ struct xen_p2m_entry {
struct rb_node rbnode_phys;
};
-rwlock_t p2m_lock;
+static rwlock_t p2m_lock;
struct rb_root phys_to_mach = RB_ROOT;
EXPORT_SYMBOL_GPL(phys_to_mach);
static struct rb_root mach_to_phys = RB_ROOT;
@@ -201,7 +201,7 @@ bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn)
}
EXPORT_SYMBOL_GPL(__set_phys_to_machine);
-int p2m_init(void)
+static int p2m_init(void)
{
rwlock_init(&p2m_lock);
return 0;