diff --git a/mm/vma_init.c b/mm/vma_init.c index bbab1c8169851a..217eb675b43bf0 100644 --- a/mm/vma_init.c +++ b/mm/vma_init.c @@ -75,7 +75,7 @@ static void vm_area_init_from(const struct vm_area_struct *src, #ifdef __HAVE_PFNMAP_TRACKING dest->pfnmap_track_ctx = NULL; #endif -#ifdef CONFIG_CHERI_KERNEL +#ifdef CONFIG_CHERI_PURECAP_UABI if (reserv_is_supported(dest->vm_mm)) reserv_vma_set_reserv_data(dest, &src->reserv_data); #endif