Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen: mm: include <xen/xen-ops.h> for missing declarations

Include <xen/xen-ops.h> for xen_{create,destroy}_contigous_region
call declarations. Fixes the following sparse warnings:

arch/arm/xen/mm.c:119:5: warning: symbol 'xen_create_contiguous_region' was not declared. Should it be static?
arch/arm/xen/mm.c:131:6: warning: symbol 'xen_destroy_contiguous_region' 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>

authored by

Ben Dooks (Codethink) and committed by
Juergen Gross
e8d255e4 4dd58158

+1
+1
arch/arm/xen/mm.c
··· 15 15 #include <xen/interface/grant_table.h> 16 16 #include <xen/interface/memory.h> 17 17 #include <xen/page.h> 18 + #include <xen/xen-ops.h> 18 19 #include <xen/swiotlb-xen.h> 19 20 20 21 #include <asm/cacheflush.h>