Skip to content

Commit

Permalink
Added 2 functions from Linux 6.3 for driver compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelochus authored Apr 20, 2024
1 parent 8968e14 commit 13d1baf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,16 @@ static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm)
INIT_LIST_HEAD(&vma->anon_vma_chain);
}

static inline void vm_flags_set(struct vm_area_struct *vma, vm_flags_t flags)
{
vma->vm_flags |= flags;
}

static inline void vm_flags_clear(struct vm_area_struct *vma, vm_flags_t flags)
{
vma->vm_flags &= ~flags;
}

static inline void vma_set_anonymous(struct vm_area_struct *vma)
{
vma->vm_ops = NULL;
Expand Down

0 comments on commit 13d1baf

Please sign in to comment.