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 <andrew.cooper3@citrix.com>
---
CC: Anthony PERARD <anthony.perard@vates.tech>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Julien Grall <julien@xen.org>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
CC: Bertrand Marquis <bertrand.marquis@arm.com>
CC: Oleksii Kurochko <oleksii.kurochko@gmail.com>
CC: Shawn Anastasio <sanastasio@raptorengineering.com>
#ifndef __XEN_MM_H__
#define __XEN_MM_H__
+#include <xen/bitops.h>
#include <xen/bug.h>
#include <xen/compiler.h>
#include <xen/list.h>
/* 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,