The patch titled Subject: mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-checkpatch-fixes has been added to the -mm tree. Its filename is mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-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-checkpatch-fixes.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-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-checkpatch-fixes ERROR: code indent should use tabs where possible #102: FILE: include/linux/mm.h:1506: +^I^I ^I struct mmu_notifier_range *range,$ WARNING: please, no space before tabs #102: 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 #117: 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 #922: FILE: mm/memory.c:4122: +^I^I ^I struct mmu_notifier_range *range,$ WARNING: please, no space before tabs #922: FILE: mm/memory.c:4122: +^I^I ^I struct mmu_notifier_range *range,$ WARNING: line over 80 characters #1033: FILE: mm/mmu_notifier.c:183: + !range->blockable ? "non-" : ""); WARNING: line over 80 characters #1170: FILE: mm/oom_kill.c:539: + if (mmu_notifier_invalidate_range_start_nonblock(&range)) { WARNING: line over 80 characters #1178: FILE: mm/oom_kill.c:544: + unmap_page_range(&tlb, vma, range.start, range.end, NULL); total: 2 errors, 6 warnings, 1133 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.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: Jerome Glisse <jglisse@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- --- a/include/linux/mm.h~mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-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-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-checkpatch-fixes +++ a/mm/memory.c @@ -4119,8 +4119,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; _ 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-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-checkpatch-fixes.patch mm-dont-break-integrity-writeback-on-writepage-error-fix.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-replace-all-open-encodings-for-numa_no_node-fix.patch mm-convert-pg_balloon-to-pg_offline-fix.patch fs-remove-caller-signal_pending-branch-predictions-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch slab-leaks3-default-y.patch