xen: mm: make xen_mm_init static
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Tue, 22 Oct 2019 12:52:51 +0000 (13:52 +0100)
committerJuergen Gross <jgross@suse.com>
Thu, 7 Nov 2019 11:03:33 +0000 (12:03 +0100)
The xen_mm_init is not exported or used outside of the file
it is declared in, so make it static. This fixes the following
sparse warning:

arch/arm/xen/mm.c:136:12: warning: symbol 'xen_mm_init' was not declared. Should it be static?

Signed-off-by: Ben Dooks (Codethink) <ben.dooks@codethink.co.uk>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/arm/xen/mm.c

index 6feb6b7..3c7645d 100644 (file)
@@ -134,7 +134,7 @@ void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order)
        return;
 }
 
-int __init xen_mm_init(void)
+static int __init xen_mm_init(void)
 {
        struct gnttab_cache_flush cflush;
        if (!xen_initial_domain())