The patch titled Subject: mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2-checkpatch-fixes has been added to the -mm tree. Its filename is mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2-checkpatch-fixes.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2-checkpatch-fixes.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2-checkpatch-fixes.patch 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 and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2-checkpatch-fixes Cc: Christian König <christian.koenig@xxxxxxx> ERROR: code indent should use tabs where possible #116: FILE: include/linux/mm.h:1506: +^I^I ^I struct mmu_notifier_range *range,$ WARNING: please, no space before tabs #116: FILE: include/linux/mm.h:1506: +^I^I ^I struct mmu_notifier_range *range,$ WARNING: function definition argument 'struct mmu_notifier_range *' should also have an identifier name #131: FILE: include/linux/mmu_notifier.h:223: +extern int __mmu_notifier_invalidate_range_start(struct mmu_notifier_range *); ERROR: code indent should use tabs where possible #951: FILE: mm/memory.c:4111: +^I^I ^I struct mmu_notifier_range *range,$ WARNING: please, no space before tabs #951: FILE: mm/memory.c:4111: +^I^I ^I struct mmu_notifier_range *range,$ WARNING: line over 80 characters #1057: FILE: mm/mmu_notifier.c:183: + !range->blockable ? "non-" : ""); WARNING: line over 80 characters #1191: FILE: mm/oom_kill.c:537: + if (mmu_notifier_invalidate_range_start_nonblock(&range)) { WARNING: line over 80 characters #1199: FILE: mm/oom_kill.c:542: + unmap_page_range(&tlb, vma, range.start, range.end, NULL); total: 2 errors, 6 warnings, 1132 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. NOTE: Whitespace errors detected. You may wish to use scripts/cleanpatch or scripts/cleanfile ./patches/mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2.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: Christian König <christian.koenig@xxxxxxx> Cc: Dan Williams <dan.j.williams@xxxxxxxxx> Cc: Felix Kuehling <felix.kuehling@xxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Cc: Jérôme Glisse <jglisse@xxxxxxxxxx> Cc: John Hubbard <jhubbard@xxxxxxxxxx> Cc: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx> Cc: Radim Krcmar <rkrcmar@xxxxxxxxxx> Cc: Ralph Campbell <rcampbell@xxxxxxxxxx> Cc: Ross Zwisler <zwisler@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/mm.h | 4 ++-- include/linux/mmu_notifier.h | 2 +- mm/memory.c | 4 ++-- mm/mmu_notifier.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) --- a/include/linux/mm.h~mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2-checkpatch-fixes +++ a/include/linux/mm.h @@ -1503,8 +1503,8 @@ void free_pgd_range(struct mmu_gather *t int copy_page_range(struct mm_struct *dst, struct mm_struct *src, struct vm_area_struct *vma); int follow_pte_pmd(struct mm_struct *mm, unsigned long address, - struct mmu_notifier_range *range, - pte_t **ptepp, pmd_t **pmdpp, spinlock_t **ptlp); + struct mmu_notifier_range *range, + pte_t **ptepp, pmd_t **pmdpp, spinlock_t **ptlp); int follow_pfn(struct vm_area_struct *vma, unsigned long address, unsigned long *pfn); int follow_phys(struct vm_area_struct *vma, unsigned long address, --- a/include/linux/mmu_notifier.h~mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2-checkpatch-fixes +++ a/include/linux/mmu_notifier.h @@ -220,7 +220,7 @@ extern int __mmu_notifier_test_young(str unsigned long address); extern void __mmu_notifier_change_pte(struct mm_struct *mm, unsigned long address, pte_t pte); -extern int __mmu_notifier_invalidate_range_start(struct mmu_notifier_range *); +extern int __mmu_notifier_invalidate_range_start(struct mmu_notifier_range *r); extern void __mmu_notifier_invalidate_range_end(struct mmu_notifier_range *r, bool only_end); extern void __mmu_notifier_invalidate_range(struct mm_struct *mm, --- a/mm/memory.c~mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2-checkpatch-fixes +++ a/mm/memory.c @@ -4108,8 +4108,8 @@ static inline int follow_pte(struct mm_s } int follow_pte_pmd(struct mm_struct *mm, unsigned long address, - struct mmu_notifier_range *range, - pte_t **ptepp, pmd_t **pmdpp, spinlock_t **ptlp) + struct mmu_notifier_range *range, + pte_t **ptepp, pmd_t **pmdpp, spinlock_t **ptlp) { int res; --- a/mm/mmu_notifier.c~mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2-checkpatch-fixes +++ a/mm/mmu_notifier.c @@ -179,8 +179,8 @@ int __mmu_notifier_invalidate_range_star int _ret = mn->ops->invalidate_range_start(mn, range); if (_ret) { pr_info("%pS callback failed with %d in %sblockable context.\n", - mn->ops->invalidate_range_start, _ret, - !range->blockable ? "non-" : ""); + mn->ops->invalidate_range_start, _ret, + !range->blockable ? "non-" : ""); ret = _ret; } } _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are arm-arch-arm-include-asm-pageh-needs-personalityh.patch ocfs2-clear-zero-in-unaligned-direct-io-checkpatch-fixes.patch mm.patch mm-slab-remove-unnecessary-unlikely-fix.patch mm-slub-record-final-state-of-slub-action-in-deactivate_slab-fix.patch mm-slub-improve-performance-by-skipping-checked-node-in-get_any_partial-fix.patch mm-page_owner-clamp-read-count-to-page_size-fix.patch mm-hotplug-optimize-clear_hwpoisoned_pages-fix.patch mm-ksm-do-not-block-on-page-lock-when-searching-stable-tree-fix.patch mm-memory_hotplug-print-reason-for-the-offlining-failure-fix.patch mm-memory_hotplug-be-more-verbose-for-memory-offline-failures-fix.patch mm-convert-totalram_pages-and-totalhigh_pages-variables-to-atomic-checkpatch-fixes.patch mm-page_alloc-free-order-0-pages-through-pcp-in-page_frag_free-fix.patch mm-dont-break-integrity-writeback-on-writepage-error-fix.patch mm-use-common-iterator-for-deferred_init_pages-and-deferred_free_pages-fix.patch mm-kmemleak-little-optimization-while-scanning-fix.patch mm-mmu_notifier-use-structure-for-invalidate_range_start-end-callback-fix.patch mm-mmu_notifier-use-structure-for-invalidate_range_start-end-callback-fix-fix.patch mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2-checkpatch-fixes.patch memory_hotplug-free-pages-as-higher-order-fix.patch memory_hotplug-free-pages-as-higher-order-fix-fix.patch fs-epoll-deal-with-wait_queue-only-once-fix.patch autofs-improve-ioctl-sbi-checks-fix.patch exec-separate-mm_anonpages-and-rlimit_stack-accounting-checkpatch-fixes.patch ipc-allow-boot-time-extension-of-ipcmni-from-32k-to-8m-checkpatch-fixes.patch scripts-atomic-check-atomicssh-dont-assume-that-scripts-are-executable.patch mm-convert-pg_balloon-to-pg_offline-fix.patch mm-convert-pg_balloon-to-pg_offline-fix-fix.patch fs-remove-caller-signal_pending-branch-predictions-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch slab-leaks3-default-y.patch