summaryrefslogtreecommitdiffstats
path: root/mm/init-mm.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjguzik@gmail.com>2023-08-07 01:16:11 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-08-21 22:37:46 +0200
commit9a9d0b829901125553c36b9512b2a5da4505be31 (patch)
treeff5cf3036648d6be88fbd088e64127e82231abf8 /mm/init-mm.c
parentmm: move vma locking out of vma_prepare and dup_anon_vma (diff)
downloadlinux-9a9d0b829901125553c36b9512b2a5da4505be31.tar.xz
linux-9a9d0b829901125553c36b9512b2a5da4505be31.zip
mm: move dummy_vm_ops out of a header
Otherwise the kernel ends up with multiple copies: $ nm vmlinux | grep dummy_vm_ops ffffffff81e4ea00 d dummy_vm_ops.2 ffffffff81e11760 d dummy_vm_ops.254 ffffffff81e406e0 d dummy_vm_ops.4 ffffffff81e3c780 d dummy_vm_ops.7 While here prefix it with vma_. Link: https://lkml.kernel.org/r/20230806231611.1395735-1-mjguzik@gmail.com Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/init-mm.c')
-rw-r--r--mm/init-mm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/init-mm.c b/mm/init-mm.c
index efa97b57acfd..cfd367822cdd 100644
--- a/mm/init-mm.c
+++ b/mm/init-mm.c
@@ -17,6 +17,8 @@
#define INIT_MM_CONTEXT(name)
#endif
+const struct vm_operations_struct vma_dummy_vm_ops;
+
/*
* For dynamically allocated mm_structs, there is a dynamically sized cpumask
* at the end of the structure, the size of which depends on the maximum CPU