Skip to contentSkip to conversation

mm-move-anon_vma-declarations-to-linux-mm_inlineh.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 20, 2022

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: move anon_vma declarations to linux/mm_inline.h
has been removed from the -mm tree. Its filename was
mm-move-anon_vma-declarations-to-linux-mm_inlineh.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Arnd Bergmann <[email protected]>
Subject: mm: move anon_vma declarations to linux/mm_inline.h

The patch to add anonymous vma names causes a build failure in some configurations:

include/linux/mm_types.h: In function 'is_same_vma_anon_name':
include/linux/mm_types.h:924:37: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
924 | return name && vma_name && !strcmp(name, vma_name);
| ^~~~~~
include/linux/mm_types.h:22:1: note: 'strcmp' is defined in header '<string.h>'; did you forget to '#include <string.h>'?

This should not really be part of linux/mm_types.h in the first place, as that header is meant to only contain structure defintions and need a minimum set of indirect includes itself. While the header clearly includes more than it should at this point, let's not make it worse by including string.h as well, which would pull in the expensive (compile-speed wise) fortify-string logic.

Move the new functions into a separate header that only needs to be included in a couple of locations.

Fixes "mm: add a field to store names for private anonymous memory"
Cc Al Viro <[email protected]>
Cc Colin Cross <[email protected]>
Cc Eric Biederman <[email protected]>
Cc Kees Cook <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Peter Xu <[email protected]>
Cc Peter Zijlstra (Intel) <[email protected]>
Cc Stephen Rothwell <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Yu Zhao <[email protected]>

---

 fs/proc/task_mmu.c        |    1 
 fs/userfaultfd.c          |    1 
 include/linux/mm_inline.h |   50 ++++++++++++++++++++++++++++++++++++
 include/linux/mm_types.h  |   48 ----------------------------------
 kernel/fork.c             |    1 
 mm/madvise.c              |    1 
 mm/mmap.c                 |    1 
 7 files changed, 55 insertions(+), 48 deletions(-)
fs/proc/task_mmu.c renamed from fs/proc/task_mmu.c~mm-move-anon_vma-declarations-to-linux-mm_inlineh +1 -0
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <linux/pagewalk.h>
 #include <linux/vmacache.h>
+#include <linux/mm_inline.h>
 #include <linux/hugetlb.h>
 #include <linux/huge_mm.h>
 #include <linux/mount.h>
fs/userfaultfd.c renamed from fs/userfaultfd.c~mm-move-anon_vma-declarations-to-linux-mm_inlineh +1 -0
@@ -15,6 +15,7 @@
 #include <linux/sched/signal.h>
 #include <linux/sched/mm.h>
 #include <linux/mm.h>
+#include <linux/mm_inline.h>
 #include <linux/mmu_notifier.h>
 #include <linux/poll.h>
 #include <linux/slab.h>
include/linux/mm_inline.h renamed from include/linux/mm_inline.h~mm-move-anon_vma-declarations-to-linux-mm_inlineh +50 -0

60 lines not on this page · raw message

include/linux/mm_types.h renamed from include/linux/mm_types.h~mm-move-anon_vma-declarations-to-linux-mm_inlineh +0 -48

52 lines not on this page · raw message

kernel/fork.c renamed from kernel/fork.c~mm-move-anon_vma-declarations-to-linux-mm_inlineh +1 -0
@@ -42,6 +42,7 @@
 #include <linux/mmu_notifier.h>
 #include <linux/fs.h>
 #include <linux/mm.h>
+#include <linux/mm_inline.h>
 #include <linux/vmacache.h>
 #include <linux/nsproxy.h>
 #include <linux/capability.h>
mm/madvise.c renamed from mm/madvise.c~mm-move-anon_vma-declarations-to-linux-mm_inlineh +1 -0
@@ -18,6 +18,7 @@
 #include <linux/fadvise.h>
 #include <linux/sched.h>
 #include <linux/sched/mm.h>
+#include <linux/mm_inline.h>
 #include <linux/string.h>
 #include <linux/uio.h>
 #include <linux/ksm.h>
mm/mmap.c renamed from mm/mmap.c~mm-move-anon_vma-declarations-to-linux-mm_inlineh +1 -0
@@ -13,6 +13,7 @@
 #include <linux/slab.h>
 #include <linux/backing-dev.h>
 #include <linux/mm.h>
+#include <linux/mm_inline.h>
 #include <linux/vmacache.h>
 #include <linux/shm.h>
 #include <linux/mman.h>

_

Patches currently in -mm which might be from [email protected] are

fs-move-inode-sysctls-to-its-own-file-fix.patch fs-move-dcache-sysctls-to-its-own-file-fix-2.patch