[PATCH 16/16] arch: x86: xen: Mark internal functions static in setup.c

From: Darshana Padmadas
Date: Wed Mar 04 2015 - 08:35:32 EST


setup.c defines xen_pvmmu_arch_setup and xen_ignore_unusable
used only in this file. So mark them static.

This eliminates the following gcc warnings:
arch/x86/xen/setup.c:561:6: warning: no previous prototype for âxen_ignore_unusableâ [-Wmissing-prototypes]
arch/x86/xen/setup.c:831:13: warning: no previous prototype for âxen_pvmmu_arch_setupâ [-Wmissing-prototypes]

Signed-off-by: Darshana Padmadas <darshanapadmadas@xxxxxxxxx>
---
arch/x86/xen/setup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
index 865e56c..2b3f935 100644
--- a/arch/x86/xen/setup.c
+++ b/arch/x86/xen/setup.c
@@ -558,7 +558,7 @@ static void xen_align_and_add_e820_region(u64 start, u64 size, int type)
e820_add_region(start, end - start, type);
}

-void xen_ignore_unusable(struct e820entry *list, size_t map_size)
+static void xen_ignore_unusable(struct e820entry *list, size_t map_size)
{
struct e820entry *entry;
unsigned int i;
@@ -828,7 +828,7 @@ void xen_enable_syscall(void)
#endif /* CONFIG_X86_64 */
}

-void __init xen_pvmmu_arch_setup(void)
+static void __init xen_pvmmu_arch_setup(void)
{
HYPERVISOR_vm_assist(VMASST_CMD_enable, VMASST_TYPE_4gb_segments);
HYPERVISOR_vm_assist(VMASST_CMD_enable, VMASST_TYPE_writable_pagetables);
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/