put_page_alloc_ref(), the final function in xen/mm.h uses test_and_clear_bit() which is picked up transitively by all architectures. RISC-V gets it only via flushtlb.h, hence why it notices here.
ARM and x86 will be cleaned up in subsequent patches. Signed-off-by: Andrew Cooper <[email protected]> --- CC: Anthony PERARD <[email protected]> CC: Michal Orzel <[email protected]> CC: Jan Beulich <[email protected]> CC: Julien Grall <[email protected]> CC: Roger Pau Monné <[email protected]> CC: Stefano Stabellini <[email protected]> CC: Volodymyr Babchuk <[email protected]> CC: Bertrand Marquis <[email protected]> CC: Oleksii Kurochko <[email protected]> CC: Shawn Anastasio <[email protected]> --- xen/include/xen/mm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h index fff36ff903d6..154e649db9e4 100644 --- a/xen/include/xen/mm.h +++ b/xen/include/xen/mm.h @@ -61,6 +61,7 @@ #ifndef __XEN_MM_H__ #define __XEN_MM_H__ +#include <xen/bitops.h> #include <xen/bug.h> #include <xen/compiler.h> #include <xen/list.h> @@ -586,7 +587,9 @@ void destroy_ring_for_helper(void **_va, struct page_info *page); /* Return the upper bound of MFNs, including hotplug memory. */ unsigned long get_upper_mfn_bound(void); +#if defined(CONFIG_X86) || defined(CONFIG_ARM) #include <asm/flushtlb.h> +#endif enum XENSHARE_flags { SHARE_rw, -- 2.39.5
