Thread (19 messages) 19 messages, 6 authors, 2024-08-21

Re: [PATCH v2 1/4] mm: Add optional close() to struct vm_special_mapping

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2024-08-20 06:26:50
Also in: linux-mm, linux-sh, linux-um, lkml

Linus Torvalds [off-list ref] writes:
On Mon, 19 Aug 2024 at 13:15, Linus Torvalds
[off-list ref] wrote:
quoted
Ok, I did a quick hack-job to remove that disgusting
install_special_mapping() legacy case.

With this [..]
I forgot to actually attach that "this". Here it is. For real, this time.

                   Linus
 arch/csky/kernel/vdso.c            | 28 +++++++++++++++++++++-------
 arch/hexagon/kernel/vdso.c         | 14 ++++++++++----
 arch/nios2/mm/init.c               | 12 ++++++++----
 arch/sh/kernel/vsyscall/vsyscall.c | 14 +++++++++++---
 arch/x86/um/vdso/vma.c             | 12 ++++++++----
 include/linux/mm.h                 |  4 ----
 mm/mmap.c                          | 32 +++++---------------------------
 7 files changed, 63 insertions(+), 53 deletions(-)
...
quoted hunk ↗ jump to hunk
index 1bd85a6949c4..5e68ab7a8898 100644
--- a/arch/sh/kernel/vsyscall/vsyscall.c
+++ b/arch/sh/kernel/vsyscall/vsyscall.c
@@ -36,6 +36,10 @@ __setup("vdso=", vdso_setup);
  */
 extern const char vsyscall_trapa_start, vsyscall_trapa_end;
 static struct page *syscall_pages[1];
+static struct vm_special_mapping vdso_mapping = {
+	.name = "[vdso]",
+	.pages = syscall_pages;
                              ^
                              should be ,
+};
cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help