Thread (5 messages) 5 messages, 4 authors, 2023-09-13

Re: [PATCH] lsm: constify the 'mm' parameter in security_vm_enough_memory_mm()

From: Matthew Wilcox <willy@infradead.org>
Date: 2023-08-23 12:08:17
Also in: linux-mm, lkml, selinux

On Wed, Aug 23, 2023 at 11:53:57AM +0500, Khadija Kamran wrote:
quoted hunk ↗ jump to hunk
+++ b/include/linux/mm.h
@@ -3064,7 +3064,7 @@ void anon_vma_interval_tree_verify(struct anon_vma_chain *node);
 	     avc; avc = anon_vma_interval_tree_iter_next(avc, start, last))
 
 /* mmap.c */
-extern int __vm_enough_memory(struct mm_struct *mm, long pages, int cap_sys_admin);
+extern int __vm_enough_memory(const struct mm_struct *mm, long pages, int cap_sys_admin);
Could you remove the 'extern' when you touch a function prototype?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help