From: YueHaibing Date: Sat, 10 Jun 2023 10:19:56 +0000 (+0800) Subject: mm: remove unused vma_init_lock() X-Git-Tag: xarray-6.6~271^2~73 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e4d86756159b5794edad5b0d0d19c6f3d9888240;p=users%2Fwilly%2Fxarray.git mm: remove unused vma_init_lock() commit c7f8f31c00d1 ("mm: separate vma->lock from vm_area_struct") left this behind. Link: https://lkml.kernel.org/r/20230610101956.20592-1-yuehaibing@huawei.com Signed-off-by: YueHaibing Reviewed-by: David Hildenbrand Signed-off-by: Andrew Morton --- diff --git a/include/linux/mm.h b/include/linux/mm.h index ab04756b2240..f20ac57b634d 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -725,7 +725,6 @@ struct vm_area_struct *lock_vma_under_rcu(struct mm_struct *mm, #else /* CONFIG_PER_VMA_LOCK */ -static inline void vma_init_lock(struct vm_area_struct *vma) {} static inline bool vma_start_read(struct vm_area_struct *vma) { return false; } static inline void vma_end_read(struct vm_area_struct *vma) {}