The patch titled Subject: mm-remove-legacy-install_special_mapping-code-checkpatch-fixes has been added to the -mm mm-unstable branch. Its filename is mm-remove-legacy-install_special_mapping-code-checkpatch-fixes.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-remove-legacy-install_special_mapping-code-checkpatch-fixes.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-remove-legacy-install_special_mapping-code-checkpatch-fixes Date: Tue Aug 20 06:23:03 PM PDT 2024 WARNING: nested (un)?likely() calls, IS_ERR already uses unlikely() internally #83: FILE: arch/csky/kernel/vdso.c:81: + if (unlikely(IS_ERR(vma))) { WARNING: nested (un)?likely() calls, IS_ERR already uses unlikely() internally #97: FILE: arch/csky/kernel/vdso.c:92: + if (unlikely(IS_ERR(vma))) { WARNING: nested (un)?likely() calls, IS_ERR already uses unlikely() internally #213: FILE: arch/sh/kernel/vsyscall/vsyscall.c:84: + if (unlikely(IS_ERR(vma))) total: 0 errors, 3 warnings, 249 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/mm-remove-legacy-install_special_mapping-code.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Anton Ivanov <anton.ivanov@xxxxxxxxxxxxxxxxxx> Cc: Brian Cain <bcain@xxxxxxxxxxx> Cc: Christophe Leroy <christophe.leroy@xxxxxxxxxx> Cc: Dinh Nguyen <dinguyen@xxxxxxxxxx> Cc: Guo Ren <guoren@xxxxxxxxxx> Cc: Jeff Xu <jeffxu@xxxxxxxxxx> Cc: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> Cc: John Paul Adrian Glaubitz <glaubitz@xxxxxxxxxxxxxxxxxxx> Cc: Liam R. Howlett <Liam.Howlett@xxxxxxxxxx> Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx> Cc: Nathan Chancellor <nathan@xxxxxxxxxx> Cc: Nicholas Piggin <npiggin@xxxxxxxxx> Cc: Pedro Falcato <pedro.falcato@xxxxxxxxx> Cc: Richard Weinberger <richard@xxxxxx> Cc: Rich Felker <dalias@xxxxxxxx> Cc: Rob Landley <rob@xxxxxxxxxxx> Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/csky/kernel/vdso.c | 4 ++-- arch/sh/kernel/vsyscall/vsyscall.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/arch/csky/kernel/vdso.c~mm-remove-legacy-install_special_mapping-code-checkpatch-fixes +++ a/arch/csky/kernel/vdso.c @@ -78,7 +78,7 @@ int arch_setup_additional_pages(struct l (VM_READ | VM_EXEC | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC), &vdso_mapping); - if (unlikely(IS_ERR(vma))) { + if (IS_ERR(vma)) { ret = PTR_ERR(vma); mm->context.vdso = NULL; goto end; @@ -89,7 +89,7 @@ int arch_setup_additional_pages(struct l vma = _install_special_mapping(mm, vdso_base, PAGE_SIZE, (VM_READ | VM_MAYREAD), &vvar_mapping); - if (unlikely(IS_ERR(vma))) { + if (IS_ERR(vma)) { ret = PTR_ERR(vma); mm->context.vdso = NULL; goto end; --- a/arch/sh/kernel/vsyscall/vsyscall.c~mm-remove-legacy-install_special_mapping-code-checkpatch-fixes +++ a/arch/sh/kernel/vsyscall/vsyscall.c @@ -81,7 +81,7 @@ int arch_setup_additional_pages(struct l VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC, &vdso_mapping); ret = PTR_ERR(vma); - if (unlikely(IS_ERR(vma))) + if (IS_ERR(vma)) goto up_fail; current->mm->context.vdso = (void *)addr; _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are include-linux-mmzoneh-clean-up-watermark-accessors.patch mm-remove-legacy-install_special_mapping-code-checkpatch-fixes.patch mm-memory_hotplug-remove-head-variable-in-do_migrate_range-fix.patch fault-inject-improve-build-for-config_fault_injection=n-fix.patch fault-inject-improve-build-for-config_fault_injection=n-fix-2.patch fault-inject-improve-build-for-config_fault_injection=n-fix-3.patch