[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xen: mm: make xen_mm_init static



On Tue, 22 Oct 2019, Ben Dooks (Codethink) wrote:
> 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@xxxxxxxxxxxxxxx>

Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>


> ---
> Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> Cc: Russell King <linux@xxxxxxxxxxxxxxx>
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
> Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
> ---
>  arch/arm/xen/mm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/xen/mm.c b/arch/arm/xen/mm.c
> index 6feb6b78b13c..3c7645d7b9b4 100644
> --- a/arch/arm/xen/mm.c
> +++ b/arch/arm/xen/mm.c
> @@ -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())
> -- 
> 2.23.0
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.