Thread (37 messages) 37 messages, 7 authors, 2024-12-11
STALE546d LANDED

[PATCH 02/28] csky/vdso: Remove arch_vma_name()

From: Thomas Weißschuh <hidden>
Date: 2024-10-10 07:02:02
Also in: linux-arm-kernel, linux-mips, linux-riscv, linux-s390, lkml, loongarch
Subsystem: c-sky architecture, the rest · Maintainers: Guo Ren, Linus Torvalds

All callers of arch_vma_name() also get the name via vm_ops, which for
these VMAs will use the name from 'struct vma_special_mapping'.
Therefore the custom implementation is unnecessary and can be removed in
favor of the default implementation from kernel/signal.c.

Signed-off-by: Thomas Weißschuh <redacted>
---
 arch/csky/kernel/vdso.c | 7 -------
 1 file changed, 7 deletions(-)
diff --git a/arch/csky/kernel/vdso.c b/arch/csky/kernel/vdso.c
index 92ab8ac6a5960e30b660530ae9b10137d5872369..c54d019d66bcaf8ac4633067076679d83b67a8f8 100644
--- a/arch/csky/kernel/vdso.c
+++ b/arch/csky/kernel/vdso.c
@@ -82,10 +82,3 @@ int arch_setup_additional_pages(struct linux_binprm *bprm,
 	mmap_write_unlock(mm);
 	return ret;
 }
-
-const char *arch_vma_name(struct vm_area_struct *vma)
-{
-	if (vma->vm_mm && (vma->vm_start == (long)vma->vm_mm->context.vdso))
-		return "[vdso]";
-	return NULL;
-}
-- 
2.47.0

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help