Xen: drop exports of {set,clear}_foreign_p2m_mapping()

They're only used internally, and the layering violation they contain
(x86) or imply (Arm) of calling HYPERVISOR_grant_table_op() strongly
advise against any (uncontrolled) use from a module. The functions also
never had users except the ones from drivers/xen/grant-table.c forever
since their introduction in 3.15.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Link: https://lore.kernel.org/r/746a5cd6-1446-eda4-8b23-03c1cac30b8d@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>

authored by Jan Beulich and committed by Boris Ostrovsky 0f9b05b9 b6622798

-4
-2
arch/arm/xen/p2m.c
··· 130 130 131 131 return 0; 132 132 } 133 - EXPORT_SYMBOL_GPL(set_foreign_p2m_mapping); 134 133 135 134 int clear_foreign_p2m_mapping(struct gnttab_unmap_grant_ref *unmap_ops, 136 135 struct gnttab_unmap_grant_ref *kunmap_ops, ··· 144 145 145 146 return 0; 146 147 } 147 - EXPORT_SYMBOL_GPL(clear_foreign_p2m_mapping); 148 148 149 149 bool __set_phys_to_machine_multi(unsigned long pfn, 150 150 unsigned long mfn, unsigned long nr_pages)
-2
arch/x86/xen/p2m.c
··· 776 776 out: 777 777 return ret; 778 778 } 779 - EXPORT_SYMBOL_GPL(set_foreign_p2m_mapping); 780 779 781 780 int clear_foreign_p2m_mapping(struct gnttab_unmap_grant_ref *unmap_ops, 782 781 struct gnttab_unmap_grant_ref *kunmap_ops, ··· 801 802 802 803 return ret; 803 804 } 804 - EXPORT_SYMBOL_GPL(clear_foreign_p2m_mapping); 805 805 806 806 #ifdef CONFIG_XEN_DEBUG_FS 807 807 #include <linux/debugfs.h>