linuxkpi: Define might_alloc()

... as a no-op.

Reviewed by:	manu
Approved by:	manu
Differential Revision:	https://reviews.freebsd.org/D38146
This commit is contained in:
Jean-Sébastien Pédron 2023-01-19 01:15:35 +01:00
parent e400b69599
commit 19be627cfd
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC

View File

@ -348,6 +348,11 @@ void lkpi_unmap_mapping_range(void *obj, loff_t const holebegin __unused,
void vma_set_file(struct vm_area_struct *vma, struct linux_file *file);
static inline void
might_alloc(gfp_t gfp_mask __unused)
{
}
#define is_cow_mapping(flags) (false)
#endif /* _LINUXKPI_LINUX_MM_H_ */